diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-11-26 03:04:55 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-26 03:04:55 -0500 |
commit | 091ad3658e3c76c5fb05f65bfb64a0246f8f31b5 (patch) | |
tree | 90f67be68a31e2001a4a73e0325a2a7798240a51 /include/linux/tracepoint.h | |
parent | 28b4e0d86acf59ae3bc422921138a4958458326e (diff) |
events: Rename TRACE_EVENT_TEMPLATE() to DECLARE_EVENT_CLASS()
It is not quite obvious at first sight what TRACE_EVENT_TEMPLATE
does: does it define an event as well beyond defining a template?
To clarify this, rename it to DECLARE_EVENT_CLASS, which follows
the various 'DECLARE_*()' idioms we already have in the kernel:
DECLARE_EVENT_CLASS(class)
DEFINE_EVENT(class, event1)
DEFINE_EVENT(class, event2)
DEFINE_EVENT(class, event3)
To complete this logic we should also rename TRACE_EVENT() to:
DEFINE_SINGLE_EVENT(single_event)
... but in a more quiet moment of the kernel cycle.
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4B0E286A.2000405@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r-- | include/linux/tracepoint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index 7063383cca13..f59604ed0ec6 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h | |||
@@ -280,7 +280,7 @@ static inline void tracepoint_synchronize_unregister(void) | |||
280 | * TRACE_EVENT_FN to perform any (un)registration work. | 280 | * TRACE_EVENT_FN to perform any (un)registration work. |
281 | */ | 281 | */ |
282 | 282 | ||
283 | #define TRACE_EVENT_TEMPLATE(name, proto, args, tstruct, assign, print) | 283 | #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) |
284 | #define DEFINE_EVENT(template, name, proto, args) \ | 284 | #define DEFINE_EVENT(template, name, proto, args) \ |
285 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | 285 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) |
286 | #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ | 286 | #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ |