Need help with tracepoints
Peter Senna Tschudin
peter.senna at gmail.com
Sat Apr 29 07:47:26 EDT 2017
On Sat, Apr 29, 2017 at 1:46 PM, Peter Senna Tschudin
<peter.senna at gmail.com> wrote:
> Hello Matwey,
>
> This doesn't answer your question, but did you take a look at perf and
> it's ability to do trace points?
>
> See this link: http://www.brendangregg.com/perf.html#Tracepoints
I actually meant this one here:
http://www.brendangregg.com/perf.html#DynamicTracingEg
>
> On Sat, Apr 29, 2017 at 12:52 PM, Matwey V. Kornilov
> <matwey.kornilov at gmail.com> wrote:
>> 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.
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
> --
> Peter
--
Peter
More information about the Kernelnewbies
mailing list