Fix metadata event arg (null pointer exception)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 21 May 2011 17:08:26 +0000 (13:08 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 21 May 2011 17:08:26 +0000 (13:08 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-debugfs-abi.c

index 80fecbe9d729190ec9d0c5b1c97b1420460c308c..02f7232ccb67f2b89ac9d446f14bb2daf043d123 100644 (file)
@@ -142,6 +142,10 @@ static
 void lttng_metadata_create_events(struct file *channel_file)
 {
        struct ltt_channel *channel = channel_file->private_data;
+       static struct lttng_kernel_event metadata_params = {
+               .instrumentation = LTTNG_KERNEL_TRACEPOINTS,
+               .name = "lttng_metadata",
+       };
        char *event_name = "lttng_metadata";
        struct ltt_event *event;
        int ret;
@@ -150,8 +154,7 @@ void lttng_metadata_create_events(struct file *channel_file)
         * We tolerate no failure path after event creation. It will stay
         * invariant for the rest of the session.
         */
-       event = ltt_event_create(channel, event_name, LTTNG_KERNEL_TRACEPOINTS,
-                                NULL);
+       event = ltt_event_create(channel, event_name, &metadata_params, NULL);
        if (!event) {
                goto create_error;
                ret = -EEXIST;
This page took 0.026996 seconds and 4 git commands to generate.