uprobes/tracing: Introduce uprobe_{trace,perf}_print() helpers
authorOleg Nesterov <oleg@redhat.com>
Sat, 30 Mar 2013 17:02:12 +0000 (18:02 +0100)
committerOleg Nesterov <oleg@redhat.com>
Sat, 13 Apr 2013 13:32:01 +0000 (15:32 +0200)
commita51cc6041773dd88ff35608f54274bfd6ac68652
treeb7969268db40338d42c29d8ffb1787041d7d6760
parent457d1772f1c1bcf37b2ae7fc8f1d6f303d1d5cf9
uprobes/tracing: Introduce uprobe_{trace,perf}_print() helpers

Extract the output code from uprobe_trace_func() and uprobe_perf_func()
into the new helpers, they will be used by ->ret_handler() too. We also
add the unused "unsigned long func" argument in advance, to simplify the
next changes.

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