Create an initial trace chunk on first start of an ltt_session
[lttng-tools.git] / src / bin / lttng-sessiond / trace-kernel.c
index dcb1bd647b9a0a622b6cbd39c94979d1e0d30e1a..a8aa01b269e9bc05bd4aeb28148899f38a154a06 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <common/common.h>
 #include <common/defaults.h>
+#include <common/trace-chunk.h>
 
 #include "consumer.h"
 #include "trace-kernel.h"
@@ -328,8 +329,8 @@ enum lttng_error_code trace_kernel_create_event(
                break;
        case LTTNG_EVENT_USERSPACE_PROBE:
        {
-               struct lttng_userspace_probe_location* location = NULL;
-               struct lttng_userspace_probe_location_lookup_method *lookup = NULL;
+               const struct lttng_userspace_probe_location* location = NULL;
+               const struct lttng_userspace_probe_location_lookup_method *lookup = NULL;
 
                location = lttng_event_get_userspace_probe_location(ev);
                if (!location) {
This page took 0.023815 seconds and 4 git commands to generate.