From b5edb9e87b46c7aaa8f2c829e677a1441ca0a260 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- 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 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++; } -- 2.34.1