diff options
author | Jason Baron <jbaron@redhat.com> | 2009-08-10 16:52:44 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2009-08-11 14:35:27 -0400 |
commit | 69fd4f0eb2ececbf8ade55e31a933e174965745e (patch) | |
tree | bebe7f5b88b8e2c6c240390e4e546d0c3522e79b /include/linux/ftrace_event.h | |
parent | f744bd576a827c5b02e756b81fc2578edf8179b8 (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 'include/linux/ftrace_event.h')
-rw-r--r-- | include/linux/ftrace_event.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index ac8c6f8cf242..8544f121d9f1 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
@@ -112,8 +112,8 @@ struct ftrace_event_call { | |||
112 | struct dentry *dir; | 112 | struct dentry *dir; |
113 | struct trace_event *event; | 113 | struct trace_event *event; |
114 | int enabled; | 114 | int enabled; |
115 | int (*regfunc)(void); | 115 | int (*regfunc)(void *); |
116 | void (*unregfunc)(void); | 116 | void (*unregfunc)(void *); |
117 | int id; | 117 | int id; |
118 | int (*raw_init)(void); | 118 | int (*raw_init)(void); |
119 | int (*show_format)(struct trace_seq *s); | 119 | int (*show_format)(struct trace_seq *s); |
@@ -122,6 +122,7 @@ struct ftrace_event_call { | |||
122 | int filter_active; | 122 | int filter_active; |
123 | struct event_filter *filter; | 123 | struct event_filter *filter; |
124 | void *mod; | 124 | void *mod; |
125 | void *data; | ||
125 | 126 | ||
126 | atomic_t profile_count; | 127 | atomic_t profile_count; |
127 | int (*profile_enable)(struct ftrace_event_call *); | 128 | int (*profile_enable)(struct ftrace_event_call *); |