Skip to content

Commit f094a23

Browse files
RichardWeiYangrostedt
authored andcommitted
tracing: Fix doc mistakes in trace sample
As the example below shows, DECLARE_EVENT_CLASS() is used instead of DEFINE_EVENT_CLASS(). Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Wei Yang <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 386c82a commit f094a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/trace_events/trace-events-sample.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ TRACE_EVENT_FN(foo_bar_with_fn,
416416
* Note, TRACE_EVENT() itself is simply defined as:
417417
*
418418
* #define TRACE_EVENT(name, proto, args, tstruct, assign, printk) \
419-
* DEFINE_EVENT_CLASS(name, proto, args, tstruct, assign, printk); \
419+
* DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, printk); \
420420
* DEFINE_EVENT(name, name, proto, args)
421421
*
422422
* The DEFINE_EVENT() also can be declared with conditions and reg functions:

0 commit comments

Comments
 (0)