]> git.baikalelectronics.ru Git - kernel.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)
commitecda6e974bbfc662b18fd6007628f2bc6b007f02
treec129464e646cabd898b8c2ddde08f52f1afd6053
parent90e64d8c1d0190a243ecf0bce53cf9b643655d1a
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