Re: [PATCH] tracing/perf: Move rcu_irq_enter/exit_irqson() to perf trace point hook

From: Paul E. McKenney
Date: Tue Feb 11 2020 - 08:20:34 EST


On Tue, Feb 11, 2020 at 02:10:46PM +0100, Peter Zijlstra wrote:
> On Tue, Feb 11, 2020 at 04:59:29AM -0800, Paul E. McKenney wrote:
>
> > However, a quick grep for NMI_MASK didn't show me the NMI_MASK bit
> > getting set. Help?
>
> | #define nmi_enter() \
> | do { \
> | arch_nmi_enter(); \
> | printk_nmi_enter(); \
> | lockdep_off(); \
> | ftrace_nmi_enter(); \
> | BUG_ON(in_nmi()); \
> | preempt_count_add(NMI_OFFSET + HARDIRQ_OFFSET); \
>
> ^^^^ right there
>
> | rcu_nmi_enter(); \
> | trace_hardirq_enter(); \
> | } while (0)

Color me blind, and thank you!

Thanx, Paul