]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ftrace: Added ftrace_func_mapper for function probe triggers
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 4 Apr 2017 00:58:35 +0000 (20:58 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 21 Apr 2017 02:06:37 +0000 (22:06 -0400)
commit41794f190780c28784fa62b22001691e5876d149
tree6352cf32223ea0228c9c051e0f1acb6c0984a4f5
parentbca6c8d0480a8aa5c86f8f416db96c71f6b79e29
ftrace: Added ftrace_func_mapper for function probe triggers

In order to move the ops to the function probes directly, they need a way to
map function ips to their own data without depending on the infrastructure
of the function probes, as the data field will be going away.

New helper functions are added that are based on the ftrace_hash code.
ftrace_func_mapper functions are there to let the probes map ips to their
data. These can be allocated by the probe ops, and referenced in the
function callbacks.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c
kernel/trace/trace.h
kernel/trace/trace_events.c