]> git.baikalelectronics.ru Git - kernel.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)
commit50361c15c5762a16c84623d6b75eb66d8386dbe1
tree6352cf32223ea0228c9c051e0f1acb6c0984a4f5
parent046bf97ff90a570e5ac5126c9dbd628334fea398
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