]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit7496946a88ab48830f3101c08f8e770cc0902bbb
tree1fc88b3e2cdeb598b5dfe03d9aa2766d1f8f8048
parent6adc13f8c096736957444ffa2aa11421b5671aef
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