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>
Showing
- tools/testing/selftests/Makefile 1 addition, 0 deletionstools/testing/selftests/Makefile
- tools/testing/selftests/devices/error_logs/Makefile 3 additions, 0 deletionstools/testing/selftests/devices/error_logs/Makefile
- tools/testing/selftests/devices/error_logs/test_device_error_logs.py 85 additions, 0 deletions...ng/selftests/devices/error_logs/test_device_error_logs.py
Please register or sign in to comment