From: Philippe Proulx Date: Fri, 21 Aug 2015 15:44:28 +0000 (-0400) Subject: Fix: set GLOBAL buffer type for kernel domain in list X-Git-Tag: v2.8.0-rc1~480 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=b5edb9e87b46c7aaa8f2c829e677a1441ca0a260;ds=sidebyside Fix: set GLOBAL buffer type for kernel domain in list 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 Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 11e288541..a80668831 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -2457,6 +2457,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++; }