Need help with tracepoints

Matwey V. Kornilov matwey.kornilov at gmail.com
Sat Apr 29 08:50:46 EDT 2017


29.04.2017 13:52, Matwey V. Kornilov пишет:
> Hello,
> 
> I am following trace/tracepoints.txt guide to add some tracepoints to
> already existing kernel module.
> 
> I've created include/trace/events/mysubsys.h
> and added
> 
> #include <trace/events/mysubsys.h>
> 
> #define CREATE_TRACE_POINTS
> DEFINE_TRACE(mysubsys_event1);
> EXPORT_TRACEPOINT_SYMBOL_GPL(mysubsys_event1);
> 
> to the module sources. There are symbols *_mysubsys_event1 in module ko
> file.
> 
> The issue is that I don't see my events in /sys/kernel/debug/tracing/events
> Not even ./mysubsys path here.
> 

Ok. I found. I had to use TRACE_EVENT() macro to use
/sys/kernel/debug/tracing/events interface




More information about the Kernelnewbies mailing list