mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-12 18:26:33 +07:00
317dc34ab7
This runs the lib/test_printf module to make sure printf is operating sanely. Signed-off-by: Kees Cook <keescook@chromium.org> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Shuah Khan <shuahkh@osg.samsung.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
11 lines
203 B
Bash
11 lines
203 B
Bash
#!/bin/sh
|
|
# Runs printf infrastructure using test_printf kernel module
|
|
|
|
if /sbin/modprobe -q test_printf; then
|
|
/sbin/modprobe -q -r test_printf
|
|
echo "printf: ok"
|
|
else
|
|
echo "printf: [FAIL]"
|
|
exit 1
|
|
fi
|