lttng: Trace is going on even though event has been disabled
Issue: My trace log is still going after I disable the events.
My detail log is as attachment
Please help me, Thanks.
lttng version is :
lttng version 2.7.0-pre - Gaia -v2.6.0-rc1-242-g60f7035.
PC is Ubuntu14.04
I use my app "hello" as http://lttng.org/docs/v2.6/#doc-tracing-your-own-user-application told. But I modified my hello.c is as attachment.
To reproduce my issue:
1/ lttng create mysession
2/ lttng enable-event hello_world:my_first_tracepoint --filter '$ctx.procname == "./hello*"' --session mysession -u -c channel
3/ lttng enable-event hello_world:my_first_tracepoint --session mysession -u -c channel
4/ ./hello and press Enter to start tracepoint
5/ lttng disable-event --session mysession --channel channel --userspace hello_world:my_first_tracepoint
6/ lttng start and about 4sec later type lttng stop
7/ lttng view
Then you can view the trace log is going though you have disabled the events with filter
Updated by Jonathan Rajotte Julien almost 5 years ago
- Status changed from Confirmed to Feedback
- Priority changed from Critical to Normal
- Target version set to 2.7
Updated by Jérémie Galarneau almost 5 years ago
Here is an updated version of the fix.