From: Geneviève Bastien Date: Mon, 1 Oct 2018 17:26:31 +0000 (-0400) Subject: statedump: Add thread ID (tid) to interrupt X-Git-Tag: v2.12.0-pre~19 X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=afded8f566eb85e3c1e04881a20fce1a74e6c43a statedump: Add thread ID (tid) to interrupt 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 --- 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) ) )