Skip to contentSkip to conversation

tracing: Fix doc mistakes in trace sample

PATCH New Wei Yang 1 participant 1 message Apr 28, 2020

lore
Share & tools
lore

Wei Yang

author
#0 lore raw

PATCH 1/1 tracing: Fix doc mistakes in trace sample

As the example below shows, DECLARE_EVENT_CLASS() is used instead of DEFINE_EVENT_CLASS().

---
 samples/trace_events/trace-events-sample.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
samples/trace_events/trace-events-sample.h +1 -1
index 80b4a70315b6..13a35f7cbe66 100644
@@ -416,7 +416,7 @@ TRACE_EVENT_FN(foo_bar_with_fn,
  * Note, TRACE_EVENT() itself is simply defined as:
  *
  * #define TRACE_EVENT(name, proto, args, tstruct, assign, printk)  \
- *  DEFINE_EVENT_CLASS(name, proto, args, tstruct, assign, printk); \
+ *  DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, printk); \
  *  DEFINE_EVENT(name, name, proto, args)
  *
  * The DEFINE_EVENT() also can be declared with conditions and reg functions:
Signature · 1 line
2.23.0