From 71214b6606040c3a6f2811f8b3fb09d8ff1c9ea2 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 21 Aug 2015 11:44:28 -0400 Subject: [PATCH] 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 resulted in MI reporting a wrong buffer type for the kernel domain. Signed-off-by: Philippe Proulx --- src/bin/lttng-sessiond/cmd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 11e2885411..a806688310 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++; }