]> 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)
commita3ad817936a03b3d182806035470d6c8e7ff64dc
tree1fc88b3e2cdeb598b5dfe03d9aa2766d1f8f8048
parent01b0c0ac4b0c2cc0108c16dc6188bc0e42460134
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