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>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user