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.6.1~74 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=9f6daa3da7355919994ab162904d9bcf7d09a15c;p=lttng-tools.git 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 73b4ce3a1..bef4aa959 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -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++; }