Loading arch/x86/Kconfig.debug +3 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,9 @@ config TRACE_IRQFLAGS_SUPPORT def_bool y config TRACE_IRQFLAGS_NMI_SUPPORT def_bool y config EARLY_PRINTK_USB bool Loading kernel/locking/lockdep.c +7 −1 Original line number Diff line number Diff line Loading @@ -3714,6 +3714,9 @@ void noinstr lockdep_hardirqs_on(unsigned long ip) * and not rely on hardware state like normal interrupts. */ if (unlikely(in_nmi())) { if (!IS_ENABLED(CONFIG_TRACE_IRQFLAGS_NMI)) return; /* * Skip: * - recursion check, because NMI can hit lockdep; Loading Loading @@ -3773,7 +3776,10 @@ void noinstr lockdep_hardirqs_off(unsigned long ip) * they will restore the software state. This ensures the software * state is consistent inside NMIs as well. */ if (unlikely(!in_nmi() && (current->lockdep_recursion & LOCKDEP_RECURSION_MASK))) if (in_nmi()) { if (!IS_ENABLED(CONFIG_TRACE_IRQFLAGS_NMI)) return; } else if (current->lockdep_recursion & LOCKDEP_RECURSION_MASK) return; /* Loading lib/Kconfig.debug +6 −0 Original line number Diff line number Diff line Loading @@ -1326,11 +1326,17 @@ config WW_MUTEX_SELFTEST endmenu # lock debugging config TRACE_IRQFLAGS depends on TRACE_IRQFLAGS_SUPPORT bool help Enables hooks to interrupt enabling and disabling for either tracing or lock debugging. config TRACE_IRQFLAGS_NMI def_bool y depends on TRACE_IRQFLAGS depends on TRACE_IRQFLAGS_NMI_SUPPORT config STACKTRACE bool "Stack backtrace support" depends on STACKTRACE_SUPPORT Loading Loading
arch/x86/Kconfig.debug +3 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,9 @@ config TRACE_IRQFLAGS_SUPPORT def_bool y config TRACE_IRQFLAGS_NMI_SUPPORT def_bool y config EARLY_PRINTK_USB bool Loading
kernel/locking/lockdep.c +7 −1 Original line number Diff line number Diff line Loading @@ -3714,6 +3714,9 @@ void noinstr lockdep_hardirqs_on(unsigned long ip) * and not rely on hardware state like normal interrupts. */ if (unlikely(in_nmi())) { if (!IS_ENABLED(CONFIG_TRACE_IRQFLAGS_NMI)) return; /* * Skip: * - recursion check, because NMI can hit lockdep; Loading Loading @@ -3773,7 +3776,10 @@ void noinstr lockdep_hardirqs_off(unsigned long ip) * they will restore the software state. This ensures the software * state is consistent inside NMIs as well. */ if (unlikely(!in_nmi() && (current->lockdep_recursion & LOCKDEP_RECURSION_MASK))) if (in_nmi()) { if (!IS_ENABLED(CONFIG_TRACE_IRQFLAGS_NMI)) return; } else if (current->lockdep_recursion & LOCKDEP_RECURSION_MASK) return; /* Loading
lib/Kconfig.debug +6 −0 Original line number Diff line number Diff line Loading @@ -1326,11 +1326,17 @@ config WW_MUTEX_SELFTEST endmenu # lock debugging config TRACE_IRQFLAGS depends on TRACE_IRQFLAGS_SUPPORT bool help Enables hooks to interrupt enabling and disabling for either tracing or lock debugging. config TRACE_IRQFLAGS_NMI def_bool y depends on TRACE_IRQFLAGS depends on TRACE_IRQFLAGS_NMI_SUPPORT config STACKTRACE bool "Stack backtrace support" depends on STACKTRACE_SUPPORT Loading