ftrace: Pass ftrace_ops as third parameter to function trace callback
authorSteven Rostedt <srostedt@redhat.com>
Mon, 8 Aug 2011 20:57:47 +0000 (16:57 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 19 Jul 2012 17:17:35 +0000 (13:17 -0400)
commit2f5f6ad9390c1ebbf738d130dbfe80b60eaa167e
tree1a88c37725d3efbcde8fa0a3cf19490d793877f0
parent6e0f17be0361444862637e8986c8c1a3b3f8dcf8
ftrace: Pass ftrace_ops as third parameter to function trace callback

Currently the function trace callback receives only the ip and parent_ip
of the function that it traced. It would be more powerful to also return
the ops that registered the function as well. This allows the same function
to act differently depending on what ftrace_ops registered it.

Link: http://lkml.kernel.org/r/20120612225424.267254552@goodmis.org
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/include/asm/ftrace.h
arch/x86/kernel/entry_64.S
include/linux/ftrace.h
kernel/trace/ftrace.c
kernel/trace/trace_event_perf.c
kernel/trace/trace_events.c
kernel/trace/trace_functions.c
kernel/trace/trace_irqsoff.c
kernel/trace/trace_sched_wakeup.c
kernel/trace/trace_selftest.c
kernel/trace/trace_stack.c