aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-04-04 10:27:51 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-04-20 22:06:41 -0400
commit1a48df0041c2756194e700affb0e2ff084092e28 (patch)
treea01a385fc939edce96bd61bb7bce51caacfb9220 /kernel/trace/trace_functions.c
parent02b77e2afb492420cabb117f3bbd7452d4b4ed06 (diff)
ftrace: Remove data field from ftrace_func_probe structure
No users of the function probes uses the data field anymore. Remove it, and change the init function to take a void *data parameter instead of a void **data, because the init will just get the data that the registering function was received, and there's no state after it is called. The other functions for ftrace_probe_ops still take the data parameter, but it will currently only be passed NULL. It will stay as a parameter for future data to be passed to these functions. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_functions.c')
-rw-r--r--kernel/trace/trace_functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c
index d9cbde8575a8..56d0fe1e4ea1 100644
--- a/kernel/trace/trace_functions.c
+++ b/kernel/trace/trace_functions.c
@@ -509,11 +509,11 @@ ftrace_cpudump_print(struct seq_file *m, unsigned long ip,
509 509
510static int 510static int
511ftrace_count_init(struct ftrace_probe_ops *ops, unsigned long ip, 511ftrace_count_init(struct ftrace_probe_ops *ops, unsigned long ip,
512 void **data) 512 void *data)
513{ 513{
514 struct ftrace_func_mapper *mapper = ops->private_data; 514 struct ftrace_func_mapper *mapper = ops->private_data;
515 515
516 return ftrace_func_mapper_add_ip(mapper, ip, *data); 516 return ftrace_func_mapper_add_ip(mapper, ip, data);
517} 517}
518 518
519static void 519static void