Send data to kconsumerd before tracing start
authorDavid Goulet <david.goulet@polymtl.ca>
Tue, 16 Aug 2011 14:24:51 +0000 (10:24 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Tue, 16 Aug 2011 14:24:51 +0000 (10:24 -0400)
The metadata buffer of the kernel can get overflowed between the start
of the kernel consumer and the kernel start session. Sending the fds
before tracing start fix that problem.

Fixed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
ltt-sessiond/main.c

index 470ab18188b162b38a2f98bfef1b94fb07eec0aa..153b215c08c0277f31930afbe86ad95193689665 100644 (file)
@@ -1961,16 +1961,16 @@ static int process_client_msg(struct command_ctx *cmd_ctx)
                                }
                        }
 
-                       DBG("Start kernel tracing");
-                       ret = kernel_start_session(cmd_ctx->session->kernel_session);
+                       ret = start_kernel_trace(cmd_ctx->session->kernel_session);
                        if (ret < 0) {
-                               ERR("Kernel start session failed");
                                ret = LTTCOMM_KERN_START_FAIL;
                                goto error;
                        }
 
-                       ret = start_kernel_trace(cmd_ctx->session->kernel_session);
+                       DBG("Start kernel tracing");
+                       ret = kernel_start_session(cmd_ctx->session->kernel_session);
                        if (ret < 0) {
+                               ERR("Kernel start session failed");
                                ret = LTTCOMM_KERN_START_FAIL;
                                goto error;
                        }
This page took 0.025937 seconds and 4 git commands to generate.