[ltt-dev] the problem of register the probe function for irq_enty
Mathieu Desnoyers
compudj at krystal.dyndns.org
Thu Mar 5 13:45:08 EST 2009
* long xu (long.x.xu at gmail.com) wrote:
> Hello,
>
> i'm reading the code of lttng now, i kown the programe use
> ---------------------------------------------
> DEFINE_MARKER_TP(kernel, irq_entry, irq_entry, probe_irq_entry, "ip %lu
> irq_id #2u%u kernel_mode #1u%u");----------------------------------------
> to give the pointer of tracepoint probe function to the marker. But i have
> not found how does it connect the probe_irq_entry to the tracepoint. i
> don't find where it use the function register_trace_irq_entry to register
> the probe function.
>
See kernel/marker.c :
set_marker()
call to tracepoint_probe_register_noupdate(). Basically, it's the marker
infrastructure which is responsible for iterating on the marker section
of core kernel and module to connect them to tracepoints.
Mathieu
> Thanks,
>
> Best regard
>
> XU Long
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
More information about the lttng-dev
mailing list