aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-08-11 11:42:52 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2009-08-11 14:35:29 -0400
commite8f9f4d79a677f55c8ec3acbe87b33a87e2df0de (patch)
tree3b20dcf2c7b49fe23e0641805ca7aaac921bc46d /include
parent0ac676fb50f5f8a22e5e80afc40bf38e31b77c00 (diff)
tracing: Add ftrace event call parameter to its field descriptor handler
Add the struct ftrace_event_call as a parameter of its show_format() callback. This way we can use it from the syscall trace events to retrieve the syscall name from the ftrace event call parameter and describe its fields using the syscalls metadata. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.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> Cc: Jason Baron <jbaron@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ftrace_event.h3
-rw-r--r--include/trace/ftrace.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index 8544f121d9f..189806b6e69 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -116,7 +116,8 @@ struct ftrace_event_call {
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 ftrace_event_call *call,
120 struct trace_seq *s);
120 int (*define_fields)(void); 121 int (*define_fields)(void);
121 struct list_head fields; 122 struct list_head fields;
122 int filter_active; 123 int filter_active;
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index 46d81b5e861..b250b061657 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -151,7 +151,8 @@
151#undef TRACE_EVENT 151#undef TRACE_EVENT
152#define TRACE_EVENT(call, proto, args, tstruct, func, print) \ 152#define TRACE_EVENT(call, proto, args, tstruct, func, print) \
153static int \ 153static int \
154ftrace_format_##call(struct trace_seq *s) \ 154ftrace_format_##call(struct ftrace_event_call *unused, \
155 struct trace_seq *s) \
155{ \ 156{ \
156 struct ftrace_raw_##call field __attribute__((unused)); \ 157 struct ftrace_raw_##call field __attribute__((unused)); \
157 int ret = 0; \ 158 int ret = 0; \