]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1acdaacb2a6ad3a0f2f50f33a12751e337682039
tree705f6ba74c25d29405f80e339a6562c81d145018
parent3503f6222e77e7ae6e0fdfce85fc84b720957a84
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