Project

General

Profile

Actions

Bug #638

closed

disable-event -u -a on a channel-less session creates the domain but not the default channel

Added by Daniel U. Thibault over 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Target version:
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.


Related issues 1 (1 open0 closed)

Is duplicate of LTTng-tools - Feature #573: Destroy an internal domain session on command error if created in that code flowConfirmed06/25/2013

Actions
Actions #1

Updated by David Goulet over 10 years ago

  • Status changed from New to Confirmed
Actions #2

Updated by Jérémie Galarneau over 10 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.

Actions #3

Updated by David Goulet about 10 years ago

  • Target version changed from 15 to 2.5
Actions #4

Updated by David Goulet almost 10 years ago

  • Status changed from Confirmed to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF