X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fkernel.c;h=d7c7984d201ba96c82d050eb71a48dca798c8e38;hp=547d2ec6cafa7567a6a9238f138eb5c15f4012cd;hb=b8a1b0bd3964381c9ec6a8df26bd37cd7405a83f;hpb=159b042f34366d0fde5dcd73b4231c558922a664 diff --git a/src/bin/lttng-sessiond/kernel.c b/src/bin/lttng-sessiond/kernel.c index 547d2ec6c..d7c7984d2 100644 --- a/src/bin/lttng-sessiond/kernel.c +++ b/src/bin/lttng-sessiond/kernel.c @@ -5,11 +5,6 @@ * */ -#include "bin/lttng-sessiond/tracker.h" -#include "common/tracker.h" -#include "common/utils.h" -#include "lttng/lttng-error.h" -#include "lttng/tracker.h" #define _LGPL_SOURCE #include #include @@ -24,6 +19,11 @@ #include #include #include +#include +#include +#include +#include +#include #include "lttng-sessiond.h" #include "lttng-syscall.h" @@ -34,6 +34,7 @@ #include "utils.h" #include "rotate.h" #include "modprobe.h" +#include "tracker.h" /* * Key used to reference a channel between the sessiond and the consumer. This @@ -1733,7 +1734,7 @@ enum lttng_error_code kernel_rotate_session(struct ltt_session *session) socket, node.node) { struct ltt_kernel_channel *chan; - /* For each channel, ask the consumer to rotate it. */ + /* For each channel, ask the consumer to rotate it. */ cds_list_for_each_entry(chan, &ksess->channel_list.head, list) { DBG("Rotate kernel channel %" PRIu64 ", session %s", chan->key, session->name); @@ -1741,7 +1742,7 @@ enum lttng_error_code kernel_rotate_session(struct ltt_session *session) ksess->uid, ksess->gid, ksess->consumer, /* is_metadata_channel */ false); if (ret < 0) { - status = LTTNG_ERR_KERN_CONSUMER_FAIL; + status = LTTNG_ERR_ROTATION_FAIL_CONSUMER; goto error; } } @@ -1753,7 +1754,7 @@ enum lttng_error_code kernel_rotate_session(struct ltt_session *session) ksess->uid, ksess->gid, ksess->consumer, /* is_metadata_channel */ true); if (ret < 0) { - status = LTTNG_ERR_KERN_CONSUMER_FAIL; + status = LTTNG_ERR_ROTATION_FAIL_CONSUMER; goto error; } }