console-badness.sh 810 B

123456789101112131415161718
  1. #!/bin/bash
  2. # SPDX-License-Identifier: GPL-2.0+
  3. #
  4. # Scan standard input for error messages, dumping any found to standard
  5. # output.
  6. #
  7. # Usage: console-badness.sh
  8. #
  9. # Copyright (C) 2020 Facebook, Inc.
  10. #
  11. # Authors: Paul E. McKenney <paulmck@kernel.org>
  12. grep -E 'Badness|WARNING:|Warn|BUG|===========|BUG: KCSAN:|Call Trace:|Call trace:|Oops:|detected stalls on CPUs/tasks:|self-detected stall on CPU|Stall ended before state dump start|\?\?\? Writer stall state|rcu_.*kthread starved for|!!!' |
  13. grep -v 'ODEBUG: ' |
  14. grep -v 'This means that this is a DEBUG kernel and it is' |
  15. grep -v 'Warning: unable to open an initial console' |
  16. grep -v 'Warning: Failed to add ttynull console. No stdin, stdout, and stderr.*the init process!' |
  17. grep -v 'NOHZ tick-stop error: Non-RCU local softirq work is pending, handler'