From: Jérémie Galarneau Date: Mon, 7 Mar 2016 17:47:23 +0000 (-0500) Subject: Ensure UST channel output mode is LTTNG_UST_MMAP X-Git-Tag: v2.8.0-rc1~114 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5e4435a4d19af48a61a424724319fe5a87a5028c;p=lttng-tools.git Ensure UST channel output mode is LTTNG_UST_MMAP Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index c054db917..38db11ebb 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -278,11 +278,21 @@ static void list_lttng_channels(enum lttng_domain_type domain, channels[i].enabled = uchan->enabled; channels[i].attr.tracefile_size = uchan->tracefile_size; channels[i].attr.tracefile_count = uchan->tracefile_count; + + /* + * Map enum lttng_ust_output to enum lttng_event_output. + */ switch (uchan->attr.output) { case LTTNG_UST_MMAP: - default: channels[i].attr.output = LTTNG_EVENT_MMAP; break; + default: + /* + * LTTNG_UST_MMAP is the only supported UST + * output mode. + */ + assert(0); + break; } ret = get_ust_runtime_stats(session, uchan,