From 0c11f72bfb9edcb2d99425d0ec8e50608333e74d Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 18 Jul 2011 17:55:58 -0400 Subject: [PATCH] Fix invalid channel creation Also add a message when all events are successfully enabled. Reported-by: Simon Marchi Signed-off-by: David Goulet --- ltt-sessiond/main.c | 2 +- lttng/commands/enable_events.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index d1ff82817..3e8a12d6d 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -1646,7 +1646,7 @@ static int process_client_msg(struct command_ctx *cmd_ctx) } ret = kernel_create_channel(cmd_ctx->session->kernel_session, - &cmd_ctx->lsm->u.channel.chan, cmd_ctx->session->path); + chan, cmd_ctx->session->path); if (ret < 0) { ret = LTTCOMM_KERN_CHAN_FAIL; goto error; diff --git a/lttng/commands/enable_events.c b/lttng/commands/enable_events.c index 1ff032eaf..a95b45af8 100644 --- a/lttng/commands/enable_events.c +++ b/lttng/commands/enable_events.c @@ -179,6 +179,9 @@ static int enable_events(void) if (opt_enable_all) { if (opt_kernel) { ret = lttng_enable_event(&dom, NULL, channel_name); + if (ret == 0) { + MSG("All kernel events are enabled in channel %s", channel_name); + } goto error; } -- 2.34.1