xref: /OK3568_Linux_fs/kernel/tools/testing/selftests/rcutorture/bin/console-badness.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#!/bin/bash
2*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0+
3*4882a593Smuzhiyun#
4*4882a593Smuzhiyun# Scan standard input for error messages, dumping any found to standard
5*4882a593Smuzhiyun# output.
6*4882a593Smuzhiyun#
7*4882a593Smuzhiyun# Usage: console-badness.sh
8*4882a593Smuzhiyun#
9*4882a593Smuzhiyun# Copyright (C) 2020 Facebook, Inc.
10*4882a593Smuzhiyun#
11*4882a593Smuzhiyun# Authors: Paul E. McKenney <paulmck@kernel.org>
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunegrep '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|!!!' |
14*4882a593Smuzhiyungrep -v 'ODEBUG: ' |
15*4882a593Smuzhiyungrep -v 'This means that this is a DEBUG kernel and it is' |
16*4882a593Smuzhiyungrep -v 'Warning: unable to open an initial console'
17