uprobes/tracing: Make uprobe_{trace,perf}_print() uretprobe-friendly
authorOleg Nesterov <oleg@redhat.com>
Sat, 30 Mar 2013 17:46:22 +0000 (18:46 +0100)
committerOleg Nesterov <oleg@redhat.com>
Sat, 13 Apr 2013 13:32:03 +0000 (15:32 +0200)
commit393a736c280d555d9301fc5516d4d401544eb9db
treec0cb3385b47e0ecb38f7199b2a319e704abe9988
parentc1ae5c75e1034070b203dc9d4ad77ce196166a6c
uprobes/tracing: Make uprobe_{trace,perf}_print() uretprobe-friendly

Change uprobe_trace_print() and uprobe_perf_print() to check
is_ret_probe() and fill ring_buffer_event accordingly.

Also change uprobe_trace_func() and uprobe_perf_func() to not
_print() if is_ret_probe() is true. Note that we keep ->handler()
nontrivial even for uretprobe, we need this for filtering and for
other potential extensions.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Tested-by: Anton Arapov <anton@redhat.com>
kernel/trace/trace_uprobe.c