summaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-04-03 18:18:47 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-04-20 22:06:37 -0400
commitbca6c8d0480a8aa5c86f8f416db96c71f6b79e29 (patch)
treeaef6cd660ec1b1bf9c25f109cb282b6fcb190353 /kernel/trace/ftrace.c
parente51a9896794bbb819d89b803e5a8446199034853 (diff)
downloadlinux-bca6c8d0480a8aa5c86f8f416db96c71f6b79e29.tar.gz
linux-bca6c8d0480a8aa5c86f8f416db96c71f6b79e29.tar.bz2
linux-bca6c8d0480a8aa5c86f8f416db96c71f6b79e29.zip
ftrace: Pass probe ops to probe function
In preparation to cleaning up the probe function registration code, the "data" parameter will eventually be removed from the probe->func() call. Instead it will receive its own "ops" function, in which it can set up its own data that it needs to map. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index b6dc29583c86..d8873079bed4 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -3739,7 +3739,7 @@ static void function_trace_probe_call(unsigned long ip, unsigned long parent_ip,
preempt_disable_notrace();
hlist_for_each_entry_rcu_notrace(entry, hhd, node) {
if (entry->ip == ip)
- entry->ops->func(ip, parent_ip, &entry->data);
+ entry->ops->func(ip, parent_ip, entry->ops, &entry->data);
}
preempt_enable_notrace();
}