Bug #408
closeddisable-event -u -a disables _all_ events (not just wildcards)
0%
Description
Wondering what should happen here:
lttng create
lttng enable-event -u 'ust*' --filter 'intfield==42'
lttng enable-event -u -a
lttng disable-event -u -a
lttng start
./hello
lttng stop; lttng view
Expected: 1 event with intfield == 42, result: no event at all.
However, if we use the '*' wildcard instead of -a, we get the expected result. I would have expected -a to behave in the same way as '*', but it's not the case for disable. Any reason for that ?
Thanks,
Mathieu
Updated by David Goulet about 12 years ago
Nope not suppose to happen.
It's working for me so maybe a weird version of UST or ... ?
I can confirm that ust* gets disabled:
DEBUG1: UST app disabling event ust* for all apps in channel channel0 for session id 0 [in ust_app_disable_event_glb() at ust-app.c:1887]
DEBUG2: Event UST ust* disabled in channel channel0 [in event_ust_disable_tracepoint() at event.c:560]
Updated by David Goulet almost 12 years ago
- Status changed from New to Confirmed
- Assignee deleted (
David Goulet) - Priority changed from Normal to Low
- Target version set to 2.2
This is indeed a difference between enable and disable.
For 2.x, we can't really change the behavior of the options nor change it since we'll be facing an "API" breakage on the UI front. I'll flag this issue for 2.2 and see what we can do in the future about it.
Updated by Yannick Brosseau almost 12 years ago
As a user I would expect that the disable -u -a disable ALL events even the ones added with wildcard...
Updated by David Goulet almost 12 years ago
It does yes.
Issue #408 has been updated by Yannick Brosseau.
As a user I would expect that the disable
u -a disable ALL events even the ones added with wildcard...
---------------------------------------
Bug #408: disable-event -u -a disables all events (not just wildcards)
https://bugs.lttng.org/issues/408#change-1023Author: Mathieu Desnoyers
Status: Confirmed
Priority: Low
Assignee:
Category:
Target version: 2.2Wondering what should happen here:
lttng create
lttng enable-event -u 'ust*' --filter 'intfield==42'
lttng enable-event -u -a
lttng disable-event -u -a
lttng start./hello
lttng stop; lttng viewExpected: 1 event with intfield == 42, result: no event at all.
However, if we use the '*' wildcard instead of -a, we get the expected result. I would have expected -a to behave in the same way as '*', but it's not the case for disable. Any reason for that ?
Thanks,
Mathieu
Updated by Yannick Brosseau almost 12 years ago
Ok, reading the issue, I thought you wanted to -u -a to not disable the
event added with the -u "ust*"
Updated by David Goulet almost 12 years ago
- Status changed from Confirmed to Resolved
This has been documented in the man page.
Closing it.