Skip to content

Commit 4c28107

Browse files
committed
lockdep: Add print_irqtrace_events() to __warn
Running a test on a x86_32 kernel I triggered a bug that an interrupt disable/enable isn't being catched by lockdep. At least knowing where the last one was found would be helpful, but the warnings that are produced do not show this information. Even without debugging lockdep, having the WARN() display the last place hard and soft irqs were enabled or disabled is valuable. Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 1e6338c commit 4c28107

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/panic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ void __warn(const char *file, int line, void *caller, unsigned taint,
554554
else
555555
dump_stack();
556556

557+
print_irqtrace_events(current);
558+
557559
print_oops_end_marker();
558560

559561
/* Just a warning, don't kill lockdep. */

0 commit comments

Comments
 (0)