Files
twx-linux/include/linux
Steven Rostedt f5abaa1bfc tracing: Add DEFINE_EVENT_FN() macro
Each TRACE_EVENT() adds several helper functions. If two or more trace events
share the same structure and print format, they can also share most of these
helper functions and save a lot of space from duplicate code. This is why the
DECLARE_EVENT_CLASS() and DEFINE_EVENT() were created.

Some events require a trigger to be called at registering and unregistering of
the event and to do so they use TRACE_EVENT_FN().

If multiple events require a trigger, they currently have no choice but to use
TRACE_EVENT_FN() as there's no DEFINE_EVENT_FN() available. This unfortunately
causes a lot of wasted duplicate code created.

By adding a DEFINE_EVENT_FN(), these events can still use a
DECLARE_EVENT_CLASS() and then define their own triggers.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/51C3236C.8030508@hds.com
Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2013-06-20 22:24:32 -07:00
..
…
2013-05-17 14:31:05 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-05-07 19:46:02 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-04-29 15:40:23 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-05-10 14:37:17 +01:00
…
…
…
…
…
…
2013-05-01 16:36:22 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-05-07 18:38:27 -07:00
…
…
…
…
2013-04-29 18:28:40 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-05-07 02:16:31 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-05-06 13:07:33 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-04-30 17:04:06 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-04-30 17:04:00 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-04-29 18:28:44 -07:00
…
…
…
…
…
…
…
…
…
…
2013-05-04 14:47:26 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-04-29 15:54:28 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-04-29 15:54:28 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-04-30 15:50:12 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-04-29 15:54:37 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…