diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-08-19 15:54:32 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-19 15:02:24 +0200 |
commit | e647d6b314266adb904d4b84973eda0afa856946 (patch) | |
tree | e4f18b57d37a25910b3d19b6c2461f87db0084a3 /kernel/trace/trace_export.c | |
parent | 14be96c9716cb8c46dca94bd890defd7856e0734 (diff) | |
download | kernel_goldelico_gta04-e647d6b314266adb904d4b84973eda0afa856946.zip kernel_goldelico_gta04-e647d6b314266adb904d4b84973eda0afa856946.tar.gz kernel_goldelico_gta04-e647d6b314266adb904d4b84973eda0afa856946.tar.bz2 |
tracing/events: Add trace_define_common_fields()
Extract duplicate code. Also prepare for the later patch.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A8BAFB8.1010304@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_export.c')
-rw-r--r-- | kernel/trace/trace_export.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c index cf2c752..7087530 100644 --- a/kernel/trace/trace_export.c +++ b/kernel/trace/trace_export.c @@ -189,11 +189,9 @@ ftrace_define_fields_##call(struct ftrace_event_call *event_call) \ struct args field; \ int ret; \ \ - __common_field(unsigned char, type, 0); \ - __common_field(unsigned char, flags, 0); \ - __common_field(unsigned char, preempt_count, 0); \ - __common_field(int, pid, 1); \ - __common_field(int, tgid, 1); \ + ret = trace_define_common_fields(event_call); \ + if (ret) \ + return ret; \ \ tstruct; \ \ |