162306a36Sopenharmony_ci#!/bin/bash 262306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0+ 362306a36Sopenharmony_ci# 462306a36Sopenharmony_ci# Scan standard input for error messages, dumping any found to standard 562306a36Sopenharmony_ci# output. 662306a36Sopenharmony_ci# 762306a36Sopenharmony_ci# Usage: console-badness.sh 862306a36Sopenharmony_ci# 962306a36Sopenharmony_ci# Copyright (C) 2020 Facebook, Inc. 1062306a36Sopenharmony_ci# 1162306a36Sopenharmony_ci# Authors: Paul E. McKenney <paulmck@kernel.org> 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_cigrep -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|!!!' | 1462306a36Sopenharmony_cigrep -v 'ODEBUG: ' | 1562306a36Sopenharmony_cigrep -v 'This means that this is a DEBUG kernel and it is' | 1662306a36Sopenharmony_cigrep -v 'Warning: unable to open an initial console' | 1762306a36Sopenharmony_cigrep -v 'Warning: Failed to add ttynull console. No stdin, stdout, and stderr.*the init process!' | 1862306a36Sopenharmony_cigrep -v 'NOHZ tick-stop error: Non-RCU local softirq work is pending, handler' 19