Fix: default loglevel is DEBUG
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 23 May 2014 14:28:41 +0000 (10:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 23 May 2014 14:30:53 +0000 (10:30 -0400)
Include "tracef" events when no explicit loglevel is specified. (for
usability)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/man/lttng-ust.3
liblttng-ust/lttng-events.c

index 1d1197f4672b18af258e29e48a8c0311a9f2940c..c72bd32bd116a90b2546e1bb33ac4b27c88b0a28 100644 (file)
@@ -29,11 +29,11 @@ tracef() API. To do it, in a nutshell:
 
 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
index 0cab2f49ad2d544718a3c14159ada235319a75f3..e44628dfcc02b8dc207232fe9d42ff836bc4edbd 100644 (file)
@@ -105,19 +105,19 @@ int lttng_loglevel_match(int loglevel,
        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;
This page took 0.026281 seconds and 4 git commands to generate.