Project

General

Profile

Actions

Feature #630

closed

'lttng list session_name' should list the filters attached to the events

Added by Daniel U. Thibault about 11 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
09/11/2013
Due date:
% Done:

0%

Estimated time:

Description

Right now, once a filter is attached to an event you can't later get lttng list to tell you what the filter is.

$ lttng enable-event -u -c ch0 sample:ev* --filter "intfield < 500" 
Filter 'intfield < 500' successfully set
$ lttng list z
Tracing session z: [inactive]
[...]
    Events:
      sample:ev* (type: tracepoint) [enabled] [with filter]

It should be a simple matter to change the list display to this:

$ lttng list z
Tracing session z: [inactive]
[...]
    Events:
      sample:ev* (type: tracepoint) [enabled] [with filter 'intfield < 500']

Related issues 2 (0 open2 closed)

Related to LTTng-tools - Feature #334: Display configured filterResolved09/13/2012

Actions
Has duplicate LTTng-tools - Feature #836: List of events (lttng list) presents usability problemsResolvedPhilippe Proulx09/11/2014

Actions
Actions #1

Updated by David Goulet almost 11 years ago

  • Status changed from New to Confirmed
  • Priority changed from Low to Normal
  • Target version deleted (2.4)
Actions #2

Updated by Jérémie Galarneau about 9 years ago

  • Target version set to 2.8
Actions #3

Updated by Jonathan Rajotte Julien over 8 years ago

  • Status changed from Confirmed to Resolved

Starting from 2.8 the filter expression is available on the command line and the mi.

E.g

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
      trace file count: 0
      trace file size (bytes): 0
      discarded events: 0
      lost packets: 0
      output: mmap()

    Events:
      * (type: tracepoint) [enabled] [filter: 'test']

<events>
  <event>
    <name>*</name>
    <type>TRACEPOINT</type>
    <enabled>true</enabled>
    <filter_expression>test</filter_expression>
    <exclusions/>
  </event>
</events>

Cheers
Actions

Also available in: Atom PDF