Fix : wrong assign of fd in state dump
authorJulien Desfossez <julien.desfossez@efficios.com>
Mon, 12 Mar 2012 19:00:37 +0000 (15:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 12 Mar 2012 19:00:37 +0000 (15:00 -0400)
lttng_statedump_file_descriptor was using the tgid instead of the fd for
the fd field.

Reported-by: Mathieu Bain <mathieu.bain@polymtl.ca>
Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/lttng-statedump.h

index fc767873be0010fc2daa12997a9b5f6cf5e955e7..9757e205799c070572949d454d30decc330a6561 100644 (file)
@@ -92,7 +92,7 @@ TRACE_EVENT(lttng_statedump_file_descriptor,
        ),
        TP_fast_assign(
                tp_assign(pid, p->tgid)
-               tp_assign(fd, p->tgid)
+               tp_assign(fd, fd)
                tp_strcpy(filename, filename)
        ),
        TP_printk("")
This page took 0.026005 seconds and 4 git commands to generate.