Question about 'for_each_kernel_tracepoint(...)' function

From: richard clark
Date: Thu Oct 20 2022 - 05:33:46 EST


Hi,
Can this function only find the trace points defined in the kernel
image? I want to define a trace event in my kernel module A, then B
module to register a probe callback function for that event TP in A. I
want to kick off a timer in A and call the traced function
periodically, thus I can monitor the events happening in A from B.

Can I do that, is it possible?

Richard