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:01:22 +0000 (13:01 -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 73b4ce3a1d7acd47e040e67ace0e930f704b5949..bef4aa9594a95c64c193cf156fa77d0115ddd4e7 100644 (file)
@@ -2436,6 +2436,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.029896 seconds and 4 git commands to generate.