From afded8f566eb85e3c1e04881a20fce1a74e6c43a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Genevi=C3=A8ve=20Bastien?= Date: Mon, 1 Oct 2018 13:26:31 -0400 Subject: [PATCH] statedump: Add thread ID (tid) to interrupt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Threaded IRQs have a 'thread' field set in the the action structure, defining which process to wakeup when the IRQ happens. Having this information will allow to know which process are IRQ handling process and the analyses can track what happens in those processes to the IRQ that caused them to wake up. [ Edit by Mathieu Desnoyers: Rename "thread" field to "tid" to stay consistent with the rest of lttng-modules tracepoints. ] Signed-off-by: Geneviève Bastien Signed-off-by: Mathieu Desnoyers --- instrumentation/events/lttng-module/lttng-statedump.h | 1 + 1 file changed, 1 insertion(+) diff --git a/instrumentation/events/lttng-module/lttng-statedump.h b/instrumentation/events/lttng-module/lttng-statedump.h index b65a1c25..59f3efde 100644 --- a/instrumentation/events/lttng-module/lttng-statedump.h +++ b/instrumentation/events/lttng-module/lttng-statedump.h @@ -237,6 +237,7 @@ LTTNG_TRACEPOINT_EVENT(lttng_statedump_interrupt, ctf_integer(unsigned int, irq, irq) ctf_string(name, chip_name) ctf_string(action, action->name ? : "") + ctf_integer(pid_t, tid, action->thread ? action->thread->pid : 0) ) ) -- 2.34.1