Project

General

Profile

Feature #630

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

Added by Daniel U. Thibault over 6 years ago. Updated almost 4 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

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 problemsResolved09/11/2014Philippe Proulx

Actions
#1

Updated by David Goulet about 6 years ago

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

Updated by Jérémie Galarneau over 4 years ago

  • Target version set to 2.8
#3

Updated by Jonathan Rajotte Julien almost 4 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

Also available in: Atom PDF