1bc77a72cSPaul E. McKenney#!/bin/bash
2bc77a72cSPaul E. McKenney# SPDX-License-Identifier: GPL-2.0+
3bc77a72cSPaul E. McKenney#
4bc77a72cSPaul E. McKenney# Scan standard input for error messages, dumping any found to standard
5bc77a72cSPaul E. McKenney# output.
6bc77a72cSPaul E. McKenney#
7bc77a72cSPaul E. McKenney# Usage: console-badness.sh
8bc77a72cSPaul E. McKenney#
9bc77a72cSPaul E. McKenney# Copyright (C) 2020 Facebook, Inc.
10bc77a72cSPaul E. McKenney#
11bc77a72cSPaul E. McKenney# Authors: Paul E. McKenney <paulmck@kernel.org>
12bc77a72cSPaul E. McKenney
13*eeb4dd9eSTiezhu Yanggrep -E 'Badness|WARNING:|Warn|BUG|===========|BUG: KCSAN:|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|!!!' |
14bc77a72cSPaul E. McKenneygrep -v 'ODEBUG: ' |
15bc77a72cSPaul E. McKenneygrep -v 'This means that this is a DEBUG kernel and it is' |
168d68e68aSPaul E. McKenneygrep -v 'Warning: unable to open an initial console' |
17546eee2dSPaul E. McKenneygrep -v 'Warning: Failed to add ttynull console. No stdin, stdout, and stderr.*the init process!' |
188d68e68aSPaul E. McKenneygrep -v 'NOHZ tick-stop error: Non-RCU local softirq work is pending, handler'
19