From 9edf633abc57e4bd2d38bc6955d1b5115b95e6ee Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Mon, 12 Mar 2012 15:00:37 -0400 Subject: [PATCH] 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 --- instrumentation/events/lttng-module/lttng-statedump.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("") -- 2.34.1