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.
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']
- Status changed from New to Confirmed
- Priority changed from Low to Normal
- Target version deleted (
2.4)
- Target version set to 2.8
- 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