]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add samples of DECLARE_EVENT_CLASS() and DEFINE_EVENT()
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Mon, 9 Feb 2015 22:14:04 +0000 (17:14 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 9 Feb 2015 23:05:51 +0000 (18:05 -0500)
commitea7298b588d26a5725b9799fdd32a1533700afa5
tree1fc88b3e2cdeb598b5dfe03d9aa2766d1f8f8048
parent1acdaacb2a6ad3a0f2f50f33a12751e337682039
tracing: Add samples of DECLARE_EVENT_CLASS() and DEFINE_EVENT()

Add to samples/trace_events/ the macros DECLARE_EVENT_CLASS() and
DEFINE_EVENT() and recommend using them over multiple TRACE_EVENT()
macros if the multiple events have the same format.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
samples/trace_events/trace-events-sample.c
samples/trace_events/trace-events-sample.h