Fix: sym name len (kernel)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 19 Jul 2013 18:43:05 +0000 (14:43 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 19 Jul 2013 18:43:05 +0000 (14:43 -0400)
Use kernel and not UST sym name len for kernel tracing. Fixed build when
UST is disabled.

Fix bug introduced in 2.3-rc dev cycle by:

commit 850767541647c102a299d7fbc39c97555ac70224
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date:   Fri Jul 19 09:04:29 2013 -0400

    Fix: (slight UI change) refuse missing -c if non-default channel exists

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/bin/lttng-sessiond/trace-kernel.c

index 0c14052e1a37aeb986ab51ab14e6578caa3d0ad9..a5c215fae98a068f359c0bf182e307a693dc9244 100644 (file)
@@ -159,7 +159,7 @@ struct ltt_kernel_channel *trace_kernel_create_channel(
                strncpy(lkc->channel->name, DEFAULT_CHANNEL_NAME,
                        sizeof(lkc->channel->name));
        }
-       lkc->channel->name[LTTNG_UST_SYM_NAME_LEN - 1] = '\0';
+       lkc->channel->name[LTTNG_KERNEL_SYM_NAME_LEN - 1] = '\0';
 
        lkc->fd = -1;
        lkc->stream_count = 0;
This page took 0.026427 seconds and 4 git commands to generate.