statedump: Add thread ID (tid) to interrupt
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Mon, 1 Oct 2018 17:26:31 +0000 (13:26 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 18 Oct 2019 15:57:50 +0000 (11:57 -0400)
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 <gbastien+lttng@versatic.net>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/lttng-statedump.h

index b65a1c2594e41b66f787d49f21806a752d61bd01..59f3efdef278d13ce63e874a1d4e4f2839de78be 100644 (file)
@@ -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)
        )
 )
 
This page took 0.025499 seconds and 4 git commands to generate.