18c2ecf20Sopenharmony_ci#!/bin/bash
28c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0+
38c2ecf20Sopenharmony_ci#
48c2ecf20Sopenharmony_ci# Scan standard input for error messages, dumping any found to standard
58c2ecf20Sopenharmony_ci# output.
68c2ecf20Sopenharmony_ci#
78c2ecf20Sopenharmony_ci# Usage: console-badness.sh
88c2ecf20Sopenharmony_ci#
98c2ecf20Sopenharmony_ci# Copyright (C) 2020 Facebook, Inc.
108c2ecf20Sopenharmony_ci#
118c2ecf20Sopenharmony_ci# Authors: Paul E. McKenney <paulmck@kernel.org>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciegrep '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|!!!' |
148c2ecf20Sopenharmony_cigrep -v 'ODEBUG: ' |
158c2ecf20Sopenharmony_cigrep -v 'This means that this is a DEBUG kernel and it is' |
168c2ecf20Sopenharmony_cigrep -v 'Warning: unable to open an initial console' |
178c2ecf20Sopenharmony_cigrep -v 'NOHZ tick-stop error: Non-RCU local softirq work is pending, handler'
18