On Fri, 13 Feb 2026 10:15:35 -0800 Thomas Ballasi <[email protected]> wrote:
> From: Steven Rostedt <[email protected]> > > Some trace events want to expose in their output if they were triggered in > an interrupt or softirq context. Instead of recording this in the event > structure itself, as this information is stored in the flags portion of > the event header, add helper macros that can be used in the print format: > > TP_printk("val=%d %s", __entry->val, __entry_in_irq() ? "(in-irq)" : "") Should this read __event_in_irq() and not __entry_in_irq()? > > This will output "(in-irq)" for the event in the trace data if the event > was triggered in hard or soft interrupt context. > > Link: https://lore.kernel.org/all/[email protected]/ >
