Re: [PATCH V7 03/15] kprobes: Add symbols for kprobe insn pages

2020-05-28 Thread Adrian Hunter
On 27/05/20 8:43 pm, Peter Zijlstra wrote: > On Tue, May 12, 2020 at 03:19:10PM +0300, Adrian Hunter wrote: >> @@ -2179,6 +2181,49 @@ int kprobe_add_area_blacklist(unsigned long start, >> unsigned long end) >> return 0; >> } >> >> +int kprobe_cache_get_kallsym(struct kprobe_insn_cache *c,

Re: [PATCH V7 03/15] kprobes: Add symbols for kprobe insn pages

2020-05-27 Thread Masami Hiramatsu
On Wed, 27 May 2020 19:43:45 +0200 Peter Zijlstra wrote: > On Tue, May 12, 2020 at 03:19:10PM +0300, Adrian Hunter wrote: > > @@ -2179,6 +2181,49 @@ int kprobe_add_area_blacklist(unsigned long start, > > unsigned long end) > > return 0; > > } > > > > +int kprobe_cache_get_kallsym(struct k

Re: [PATCH V7 03/15] kprobes: Add symbols for kprobe insn pages

2020-05-27 Thread Masami Hiramatsu
On Tue, 12 May 2020 15:19:10 +0300 Adrian Hunter wrote: > Symbols are needed for tools to describe instruction addresses. Pages > allocated for kprobe's purposes need symbols to be created for them. > Add such symbols to be visible via /proc/kallsyms. > > Note: kprobe insn pages are not used if

Re: [PATCH V7 03/15] kprobes: Add symbols for kprobe insn pages

2020-05-27 Thread Peter Zijlstra
On Tue, May 12, 2020 at 03:19:10PM +0300, Adrian Hunter wrote: > @@ -2179,6 +2181,49 @@ int kprobe_add_area_blacklist(unsigned long start, > unsigned long end) > return 0; > } > > +int kprobe_cache_get_kallsym(struct kprobe_insn_cache *c, unsigned int > *symnum, > +

[PATCH V7 03/15] kprobes: Add symbols for kprobe insn pages

2020-05-12 Thread Adrian Hunter
Symbols are needed for tools to describe instruction addresses. Pages allocated for kprobe's purposes need symbols to be created for them. Add such symbols to be visible via /proc/kallsyms. Note: kprobe insn pages are not used if ftrace is configured. To see the effect of this patch, the kernel mu