aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2009-08-10 16:52:44 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2009-08-11 14:35:27 -0400
commit69fd4f0eb2ececbf8ade55e31a933e174965745e (patch)
treebebe7f5b88b8e2c6c240390e4e546d0c3522e79b /kernel/trace/trace_events.c
parentf744bd576a827c5b02e756b81fc2578edf8179b8 (diff)
tracing: Add ftrace_event_call void * 'data' field
add an optional void * pointer to 'ftrace_event_call' that is passed in for regfunc and unregfunc. This prepares for syscall tracepoints creation by passing the name of the syscall we want to trace and then retrieve its number through our arch syscall table. Signed-off-by: Jason Baron <jbaron@redhat.com> Cc: Lai Jiangshan <laijs@cn.fujitsu.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Cc: Jiaying Zhang <jiayingz@google.com> Cc: Martin Bligh <mbligh@google.com> Cc: Li Zefan <lizf@cn.fujitsu.com> Cc: Masami Hiramatsu <mhiramat@redhat.com> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r--kernel/trace/trace_events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index f95f8470dd38..1d289e2d6693 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -86,14 +86,14 @@ static void ftrace_event_enable_disable(struct ftrace_event_call *call,
86 if (call->enabled) { 86 if (call->enabled) {
87 call->enabled = 0; 87 call->enabled = 0;
88 tracing_stop_cmdline_record(); 88 tracing_stop_cmdline_record();
89 call->unregfunc(); 89 call->unregfunc(call->data);
90 } 90 }
91 break; 91 break;
92 case 1: 92 case 1:
93 if (!call->enabled) { 93 if (!call->enabled) {
94 call->enabled = 1; 94 call->enabled = 1;
95 tracing_start_cmdline_record(); 95 tracing_start_cmdline_record();
96 call->regfunc(); 96 call->regfunc(call->data);
97 } 97 }
98 break; 98 break;
99 } 99 }