Skip to content

Commit

Permalink
lockdep: Add print_irqtrace_events() to __warn
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rostedt committed Apr 6, 2018
1 parent 1e6338c commit 4c28107
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ void __warn(const char *file, int line, void *caller, unsigned taint,
else
dump_stack();

print_irqtrace_events(current);

print_oops_end_marker();

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

0 comments on commit 4c28107

Please sign in to comment.