Actions
Bug #638
closeddisable-event -u -a on a channel-less session creates the domain but not the default channel
Start date:
09/20/2013
Due date:
% Done:
100%
Estimated time:
Description
Consider:
$ lttng create silly Session silly created. Traces will be written in /home/username/lttng-traces/silly-20130920-144709 $ lttng disable-event -u -a Error: UST channel not found $ lttng list silly Tracing session silly: [inactive] Trace path: /home/username/lttng-traces/silly-20130920-144709 === Domain: UST global === Buffer type: per UID Error: UST channel not found
The domain has been created but not the default channel. This contrasts with the lttng enable-event -u -a
command (also issued just after session creation), which creates the domain and the default channel channel0
with the event "*":
$ lttng create silly Session silly created. Traces will be written in /home/username/lttng-traces/silly-20130920-144709 $ lttng enable-event -u -a All UST events are enabled in channel channel0 $ lttng list silly Tracing session silly: [inactive] Trace path: /home/username/lttng-traces/silly-20130920-144709 === Domain: UST global === Buffer type: per UID Channels: ------------- - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 131072 number of subbufers: 4 switch timer interval: 0 read timer interval: 0 output: mmap() Events: * (type: tracepoint) [enabled]
Clearly, disable-event -u -a
should, when the session is virgin, create the domain, a channel0
default channel, and an event filter "*" (toggled to disabled). This would achieve symmetry with enable-event
.
Updated by Jérémie Galarneau about 11 years ago
- Priority changed from Normal to Low
- Target version changed from 2.4 to 15
The channel should not be created by a failing disable-event. Although I agree that the domain should not be created, the fix involves changes to the lttng-ctl API.
Updated by David Goulet almost 11 years ago
- Target version changed from 15 to 2.5
Updated by David Goulet over 10 years ago
- Status changed from Confirmed to Resolved
- % Done changed from 0 to 100
Applied in changeset 5f3ecf227733fc0db1469c9d7e40c6d2e18715f8.
Actions