[lttng-dev] [LTTNG-UST PATCH 00/01] Added event exclusion

Ikaheimonen, JP jp_ikaheimonen at mentor.com
Mon Aug 26 08:52:32 EDT 2013


This patch adds the possibility to NOT enable given events, even if they are covered by some wildcard specification.
When an event specification in the enable-event command starts with a '!' character, the specification is taken to tell which events should never be enabled.

Thus, the commands

lttng event-enable -u -s test -c testc "!ab*"
lttng event-enable -u -s test -c testc "a*"

will enable all events that begin with 'a', unless they begin with 'ab'.

On a related LTTng-tools patch, a new option --exclude (or -x) is added to the event-enable command.
This option just prepends the '!' character to the given event, and ignores all loglevel and filter options.
This, you can say
lttng event-enable -u -s test -c testc "a*" --exclude "ab*"
on one single command line.

For an extended discussion, see http://lists.lttng.org/pipermail/lttng-dev/2013-August/021181.html


JP Ikaheimonen | SW Development Engineer http://go.mentor.com/sourceryanalyzer

Mentor Embedded(tm) | Nucleus(r) | Linux(r) | Android(tm) | Services | UI | Multi-OS

Android is a trademark of Google Inc. Use of this trademark is subject to Google Permissions.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.



More information about the lttng-dev mailing list