[lttng-dev] [PATCH] tracepoint event exclusion

Woegerer, Paul Paul_Woegerer at mentor.com
Wed Jun 27 10:08:14 EDT 2012


Hi,

In order to support situations where a user wants generally all 
tracepoints enabled but specific tracepoints to be suppressed during a 
trace session, I created a small patch that allows us to do the following:

...
lttng enable-event -u -c met_tools -a
lttng enable-event -u -c met_tools --tracepoint '!met_func:*'
lttng enable-event -u -c met_tools --tracepoint '!met_call:*'
...

This has the effect that all tracepoints get recorded except for 
tracepoints that match met_func:* or met_call:*.

If you think this feature is useful for others we would be happy to see 
this patch merged into trunk.

Thanks,
Paul

-- 
Paul Woegerer | SW Development Engineer
Mentor Embedded(tm) | Prinz Eugen Straße 72/2/4, Vienna, 1040 Austria
P 43.1.535991320
Nucleus® | Linux® | 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: event_exclusion.patch
Type: text/x-patch
Size: 2157 bytes
Desc: not available
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120627/3a8a1c68/attachment.bin>


More information about the lttng-dev mailing list