Fix: set GLOBAL buffer type for kernel domain in list
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 21 Aug 2015 15:44:28 +0000 (11:44 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 21 Aug 2015 17:00:57 +0000 (13:00 -0400)
MI is using the list command reponse's buffer type, even when listing
the kernel domain. Not setting .buf_type here results in MI reporting a
wrong buffer type for the kernel domain.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index a6ce344a483d11642bf751aae9fad1565aa46afd..83153181fff5e8533e87ea047533d8f3c3bdaf42 100644 (file)
@@ -2456,6 +2456,10 @@ ssize_t cmd_list_domains(struct ltt_session *session,
 
        if (session->kernel_session != NULL) {
                (*domains)[index].type = LTTNG_DOMAIN_KERNEL;
+
+               /* Kernel session buffer type is always GLOBAL */
+               (*domains)[index].buf_type = LTTNG_BUFFER_GLOBAL;
+
                index++;
        }
 
This page took 0.026947 seconds and 4 git commands to generate.