Fix: kernel metadata file outside of kernel/ directory
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 29 Jun 2020 21:29:03 +0000 (17:29 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 30 Jun 2020 18:41:51 +0000 (14:41 -0400)
3ef395a9, a backport of a2814ea, introduces a regression that
causes the kernel trace metadata file to be created outside of
the "kernel" domain sub-directory.

master and stable-2.12 no longer need the domain sub-directory
to be passed to the consumer daemon. However, it was still used
in the 2.11 release.

Fixes #1275

Reported-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I1fe10ddd414cc87264b5e6d6a6d81e45ebc800d4

src/bin/lttng-sessiond/kernel-consumer.c

index a3295e9279923bb43141a5e2af75b3133717b5de..f6eb497b660c8ba6081c5ac26da68a813e23d311 100644 (file)
@@ -231,7 +231,7 @@ int kernel_consumer_add_metadata(struct consumer_socket *sock,
        consumer_init_add_channel_comm_msg(&lkm,
                        ksession->metadata->key,
                        ksession->id,
-                       "",
+                       DEFAULT_KERNEL_TRACE_DIR,
                        ksession->uid,
                        ksession->gid,
                        consumer->net_seq_index,
This page took 0.026098 seconds and 4 git commands to generate.