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
13egrep 'Badness|WARNING:|Warn|BUG|===========|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'
17