]> www.infradead.org Git - users/dwmw2/linux.git/commit
kselftest: devices: Add test to detect device error logs
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Fri, 5 Jul 2024 23:29:56 +0000 (19:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Jul 2024 08:59:06 +0000 (10:59 +0200)
commitb727493011123db329e2901e3abf81a8d146b6fe
treed62a5378ae0457573911971d05ca4c57331e1739
parent0e7b7bde460304f44e8c6b212c3195ac2f69f6fe
kselftest: devices: Add test to detect device error logs

Log errors are the most widely used mechanism for reporting issues in
the kernel. When an error is logged using the device helpers, eg
dev_err(), it gets metadata attached that identifies the subsystem and
device where the message is coming from. Introduce a new test that makes
use of that metadata to report which devices logged errors (or more
critical messages).

Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240705-dev-err-log-selftest-v2-3-163b9cd7b3c1@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/devices/error_logs/Makefile [new file with mode: 0644]
tools/testing/selftests/devices/error_logs/test_device_error_logs.py [new file with mode: 0755]