From: David Goulet Date: Mon, 18 Jul 2011 21:55:58 +0000 (-0400) Subject: Fix invalid channel creation X-Git-Tag: v2.0-pre1~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0c11f72bfb9edcb2d99425d0ec8e50608333e74d;p=lttng-tools.git Fix invalid channel creation Also add a message when all events are successfully enabled. Reported-by: Simon Marchi Signed-off-by: David Goulet --- 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; }