]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ftrace: Dynamically create the probe ftrace_ops for the trace_array
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 18 Apr 2017 18:50:39 +0000 (14:50 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 21 Apr 2017 02:06:46 +0000 (22:06 -0400)
commit7b60f3d8761561d95d7e962522d6338143fc2329
treec129464e646cabd898b8c2ddde08f52f1afd6053
parentb5f081b563a6cdcb85a543df8c851951a8978275
ftrace: Dynamically create the probe ftrace_ops for the trace_array

In order to eventually have each trace_array instance have its own unique
set of function probes (triggers), the trace array needs to hold the ops and
the filters for the probes.

This is the first step to accomplish this. Instead of having the private
data of the probe ops point to the trace_array, create a separate list that
the trace_array holds. There's only one private_data for a probe, we need
one per trace_array. The probe ftrace_ops will be dynamically created for
each instance, instead of being static.

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