Ensure UST channel output mode is LTTNG_UST_MMAP
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 7 Mar 2016 17:47:23 +0000 (12:47 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Mar 2016 03:09:02 +0000 (22:09 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index c054db917a40c4f86bd217255224a060875f116e..38db11ebb210eda8113c563d41ae8256b9e9c317 100644 (file)
@@ -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,
This page took 0.036393 seconds and 4 git commands to generate.