Display configured filter
LTTng Tools 2.1.0 offers the ability to configure filter when enabling events. It currently displays only that a filter is configured for command "lttng list <session>". It would be beneficial also to display the actual filter expression in the command output instead of displaying only [with filter].
Updated by David Goulet almost 6 years ago
- Assignee deleted (
- Priority changed from Normal to Low
- Target version changed from 2.5 to 2.6
I'm moving this feature for 2.6 unfortunately.
We are quite close to the rc1 of 2.5 and I feel uncomfortable adding this right now since it requires a lot of code and adding stuff to the public ABI/API. I usually prefer changes on the API done way before so people can play with it and we can make adjustment instead of rushing it.
I've started a branch containing some code for the feature but it's not working at all for now.
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.
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