Include "tracef" events when no explicit loglevel is specified. (for
usability)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3) Link your program against liblttng-ust.so.
-4) Enable the UST debug loglevel when tracing with the following
- sequence of commands from lttng-tools:
+4) Enable UST events when tracing with the following sequence of commands
+ from lttng-tools:
lttng create
- lttng enable-event -u -a --loglevel=TRACE_DEBUG
+ lttng enable-event -u -a
lttng start
[... run your program ...]
lttng stop
switch (req_type) {
case LTTNG_UST_LOGLEVEL_RANGE:
if (loglevel <= req_loglevel
- || (req_loglevel == -1 && loglevel <= TRACE_DEFAULT))
+ || (req_loglevel == -1 && loglevel <= TRACE_DEBUG))
return 1;
else
return 0;
case LTTNG_UST_LOGLEVEL_SINGLE:
if (loglevel == req_loglevel
- || (req_loglevel == -1 && loglevel <= TRACE_DEFAULT))
+ || (req_loglevel == -1 && loglevel <= TRACE_DEBUG))
return 1;
else
return 0;
case LTTNG_UST_LOGLEVEL_ALL:
default:
- if (loglevel <= TRACE_DEFAULT)
+ if (loglevel <= TRACE_DEBUG)
return 1;
else
return 0;