[lttng-dev] Runtime issue with mismatched arg name in TRACEPOINT_EVENT_INSTANCE and TRACEPOINT_EVENT_CLASS

Eugene Ivanov Eugene.Ivanov at orc-group.com
Thu Jun 4 03:39:12 EDT 2015


Hi,

Recently I've used different names for the argument in
TRACEPOINT_EVENT_INSTANCE and TRACEPOINT_EVENT_CLASS. Everything
compiles, the probe is registered, but can't be activated.
__tracepoint_provider___probe.state is always 0 despite whatever is
shown in 'lttng list session_name'. In this case I would expect
compilation failure.

Probes example, note some_id and MISMATCHED_id:

TRACEPOINT_EVENT_CLASS(hello, myclass,
         TP_ARGS(const unsigned long *, some_id),
         TP_FIELDS(ctf_array(unsigned long, some_identifier, some_id, 2)))

TRACEPOINT_EVENT_INSTANCE(hello, myclass, probe_name, TP_ARGS(const
unsigned long *, MISMATCHED_id))


--
Eugene Ivanov


________________________________

This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system.



More information about the lttng-dev mailing list