I followed the tutorial at https://www.kernel.org/doc/Documentation/trace/tracepoints.txt to create a custom tracepoint in the kernel core (i.e. not in a loadable module).
But, I don't see the tracepoint listed in the outputs of perf list
or tplist
(from bcc tools).
And so, I don't know how to use the tracepoint.
Question: How do I make the tracepoint appear in perf list
/tplist
output?
Thanks.
I resolved the issue by using the
TRACE_EVENT()
macro (see details in this LWN article) instead ofDECLARE_TRACE()
. I can now see the tracepoint inperf list
andtplist
outputs.Thanks to @Qeole for the insight that led to the resolution.