'lttng list session_name' should list the filters attached to the events
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']
Updated by Jonathan Rajotte Julien about 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.
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