From bd722d76b035766511f0b329f9bbaa2f4180c4ed Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 19 Jul 2013 14:43:05 -0400 Subject: [PATCH 1/1] Fix: sym name len (kernel) 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 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 --- src/bin/lttng-sessiond/trace-kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/trace-kernel.c b/src/bin/lttng-sessiond/trace-kernel.c index 0c14052e1..a5c215fae 100644 --- a/src/bin/lttng-sessiond/trace-kernel.c +++ b/src/bin/lttng-sessiond/trace-kernel.c @@ -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; -- 2.34.1