Enabling two events with same name but not the same event type cause no warning and does not behave as expected
sudo lttng-sessiond -d lttng create mysession lttng enable-event --kernel kmem_kfree --probe sys_open+0xE lttng enable-event --kernel kmem_kfree lttng start sleep 0.1 lttng stop lttng view
Only the probe is considered when tracing. The metadata only shows the probe event.
This is a kernel tracer side problem (name as event key). A solution could be to prefix certain type of event on enable thus creating namespace e.g: probe_kmem_kfree.
Updated by Jérémie Galarneau about 5 years ago
- Project changed from LTTng to LTTng-modules
- Target version changed from 2.8 to 2.9
Assigning to LTTng-modules as per the bug description. I have not checked if this is an lttng-modules or lttng-tools limitation (using only the name as the key vs. a tuple of type+name+...).