From: Julien Desfossez Date: Mon, 12 Mar 2012 19:00:37 +0000 (-0400) Subject: Fix : wrong assign of fd in state dump X-Git-Tag: v2.0.0-rc4~4 X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=9edf633abc57e4bd2d38bc6955d1b5115b95e6ee Fix : wrong assign of fd in state dump lttng_statedump_file_descriptor was using the tgid instead of the fd for the fd field. Reported-by: Mathieu Bain Signed-off-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/lttng-statedump.h b/instrumentation/events/lttng-module/lttng-statedump.h index fc767873..9757e205 100644 --- a/instrumentation/events/lttng-module/lttng-statedump.h +++ b/instrumentation/events/lttng-module/lttng-statedump.h @@ -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("")