Re: [PATCH v2 4/5] perf: kretprobes: offset from reloc_sym if kernel supports it

From: Naveen N. Rao
Date: Thu Feb 23 2017 - 14:17:08 EST


On 2017/02/23 06:10PM, Masami Hiramatsu wrote:
> On Wed, 22 Feb 2017 19:23:40 +0530
> "Naveen N. Rao" <naveen.n.rao@xxxxxxxxxxxxxxxxxx> wrote:
>
> > We indicate support for accepting sym+offset with kretprobes through a
> > line in ftrace README. Parse the same to identify support and choose the
> > appropriate format for kprobe_events.
> >
> > Signed-off-by: Naveen N. Rao <naveen.n.rao@xxxxxxxxxxxxxxxxxx>
> > ---
> > tools/perf/util/probe-event.c | 47 ++++++++++++++++++++++++++++++++++++-------
> > tools/perf/util/probe-event.h | 2 ++
> > 2 files changed, 42 insertions(+), 7 deletions(-)
> >

[snip]

>
> Could you reuse (refactoring) probe_type_is_available() in probe-file.c to share
> opening README file?

Done. I've sent patches to do that, please review.

>
> Others looks good to me :)

Thanks. I hope that's an Ack for this patchset?

If so, and if Ingo/Michael agree, would it be ok to take the kernel bits
through the powerpc tree like we did for kprobe_exceptions_notify()
cleanup?


Regards,
Naveen