tracing: Add TRACE_EVENT_FN example
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Mon, 9 Feb 2015 21:32:19 +0000 (16:32 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 9 Feb 2015 23:05:39 +0000 (18:05 -0500)
commit6adc13f8c096736957444ffa2aa11421b5671aef
tree705f6ba74c25d29405f80e339a6562c81d145018
parentc4c7eb29382c456b9be9858c357a490ae0ccd0f6
tracing: Add TRACE_EVENT_FN example

If a function should be called before a tracepoint is enabled
and/or after it is disabled, the TRACE_EVENT_FN() serves this
purpose. But it is not well documented. Having it as a sample would
help developers to know how to use it.

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