aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-04-18 14:50:39 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-04-20 22:06:46 -0400
commit7b60f3d8761561d95d7e962522d6338143fc2329 (patch)
treec129464e646cabd898b8c2ddde08f52f1afd6053 /kernel/trace/trace_functions.c
parentb5f081b563a6cdcb85a543df8c851951a8978275 (diff)
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>
Diffstat (limited to 'kernel/trace/trace_functions.c')
-rw-r--r--kernel/trace/trace_functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c
index 797f087183c5..b95f56ba9744 100644
--- a/kernel/trace/trace_functions.c
+++ b/kernel/trace/trace_functions.c
@@ -597,7 +597,7 @@ ftrace_trace_probe_callback(struct trace_array *tr,
597 return -EINVAL; 597 return -EINVAL;
598 598
599 if (glob[0] == '!') 599 if (glob[0] == '!')
600 return unregister_ftrace_function_probe_func(glob+1, ops); 600 return unregister_ftrace_function_probe_func(glob+1, tr, ops);
601 601
602 if (!param) 602 if (!param)
603 goto out_reg; 603 goto out_reg;