]> git.baikalelectronics.ru Git - kernel.git/commit
trace/kprobes: Allow return probes with offsets and absolute addresses
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Wed, 22 Feb 2017 13:53:39 +0000 (19:23 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Mar 2017 22:07:18 +0000 (19:07 -0300)
commitd6aca32b8d0d1939656594fb20917a33f4e8a391
tree6769fa4039aed0459c4091c677dce024b8d46bb7
parenta300b631be34f790c0fbab7b9cc8837389d003a6
trace/kprobes: Allow return probes with offsets and absolute addresses

Since the kernel includes many non-global functions with same names, we
will need to use offsets from other symbols (typically _text/_stext) or
absolute addresses to place return probes on specific functions. Also,
the core register_kretprobe() API never forbid use of offsets or
absolute addresses with kretprobes.

Allow its use with the trace infrastructure. To distinguish kernels that
support this, update ftrace README to explicitly call this out.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/r/183e7ce2921a08c9c755ee9a5da3134febc6695b.1487770934.git.naveen.n.rao@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
kernel/trace/trace.c
kernel/trace/trace_kprobe.c