[lttng-dev] [RELEASE] LTTng-tools 2.1.0-rc8

David Goulet dgoulet at efficios.com
Thu Nov 22 14:36:36 EST 2012


Greetings everyone (including LTTng elves),

The lttng-tools project provides a session daemon (lttng-sessiond)
that acts as a tracing registry, the "lttng" command line for tracing
control, a lttng-ctl library for tracing control and a lttng-relayd
for network streaming.

Ok so here is what happened. The lttng-ust tracer RC2 now supports
enabling different filters and/or loglevels for the same event which had
to be supported in lttng-tools before releasing the stable version.

That said, the lttng_set_event_filter() changed to
lttng_enable_event_with_filter(). This is due to the fact that, now with
lttng-ust, we need to keep track of events by the name/filter/loglevel
triplet rather than the event name only. For that, we needed a call that
passes these three attributes at once. The original lttng_enable_event
is still available but sets the filter to NULL.

Now, the lttng_disable_event() still only takes an event name which will
disable *all* events by that name regardless of the filter or/and loglevel.

Note that this is *not* an API breakage. We only changed the filter call
introduce in the 2.1 development cycle.

Also, the -e, --event from the lttng add-context command was removed
since lttng-ust does not support this feature (adding a context to an
event). Still, adding a context to a channel is now the only possible
option.

In a nutshell, with lttng-tools RC8 you are able to do things like that:

$ lttng enable-event ust* -u --loglevel TRACE_CRIT
$ lttng enable-event ust* -u --loglevel-only TRACE_DEBUG

Which will record every ust* wildcard event of TRACE_CRIT level and
DEBUG only.

Same concept for filters:

$ lttng enable-event ust* -u --filter "intfield < 3"
$ lttng enable-event ust-test* -u --filter "intfield > 15"

Here is the full Changelog.

2012-11-22 lttng-tools 2.1.0-rc8
    * Fix: Uninit. variable in lttng view
    * Add already enabled UST event error code
    * lttng.h API update: set filter becomes enable event with filter
    * Change the UST event hash table match function
    * Pass lttng_event struct to the set_filter API call
    * Adding context to an event is no longer possible
    * Add UST overlap tests
    * Add filter sequence number to UST
    * Fix: Typo from a previous patch in an assert()
    * Fix: Warn if session is running with lttng view
    * Fix: Add bash requirement to README for make check
    * Fix: add the notion of domain to lttng.1 man page
    * Enable additional kernel probes
    * Update CodingStyle
    * Use the new functions for default subbuf sizes
    * Add default subbuf sizes getter functions
    * Add max() and min() macro in common

Please feel free to email the list about any questions/comments
concerning this release.

Using it is testing it!

Project website: http://lttng.org/lttng2.0
Download link:
http://lttng.org/files/lttng-tools/lttng-tools-2.1.0-rc8.tar.bz2 (for
the PGP signature, same file with .asc appended)

Cheers!
David



More information about the lttng-dev mailing list