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
13grep -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|!!!' |
14grep -v 'ODEBUG: ' |
15grep -v 'This means that this is a DEBUG kernel and it is' |
16grep -v 'Warning: unable to open an initial console' |
17grep -v 'Warning: Failed to add ttynull console. No stdin, stdout, and stderr.*the init process!' |
18grep -v 'NOHZ tick-stop error: Non-RCU local softirq work is pending, handler'
19