[lttng-dev] Exclusion event support patches

Ikaheimonen, JP jp_ikaheimonen at mentor.com
Fri Sep 27 03:14:24 EDT 2013

The following set of four patches implement the exclusion event feature.

When you give exceptions to a wildcarded UST tracepoint event, as in 

lttng -c tc -u 'a*' --exclude 'ac*,ad*'

this enables all those events beginning with 'a' that do not begin with 'ac' or 'ad'.

The exclusions are embedded into the event name so that internally, the event name will be


This new scheme of the event name string is parsed and handled wherever necessary. This implementation poses new restrictions to event names:
1) An event name must not contain the character '*'.
2) An event name can contain a ',' character, but you cannot use it in the exclusion specification.
3) If you use exclusions, the lengths of their names count against the total maximum allowed length of the event name.

For lttng-ust, the main relevant change is where the event names are matched with enabler names. This is one patch.
For lttng-tools, there are three patches that take care of the disable-event, enable-event, and list commands, respectively.

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