Fix invalid channel creation
authorDavid Goulet <david.goulet@polymtl.ca>
Mon, 18 Jul 2011 21:55:58 +0000 (17:55 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Mon, 18 Jul 2011 21:55:58 +0000 (17:55 -0400)
Also add a message when all events are successfully enabled.

Reported-by: Simon Marchi <simon.marchi@ericsson.com>
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
ltt-sessiond/main.c
lttng/commands/enable_events.c

index d1ff8281762aaadb98a59129b5a35643faefb076..3e8a12d6dfd1a04609b88644d56270654ac81afb 100644 (file)
@@ -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;
index 1ff032eafafa952a14d8d445819478271f8cde5d..a95b45af89f8d970ae1a01ed1aef420b0e78f544 100644 (file)
@@ -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;
                }
 
This page took 0.035638 seconds and 4 git commands to generate.