summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2024-11-28 15:04:52 +0100
committerLuis Chamberlain <mcgrof@kernel.org>2024-11-28 11:17:38 -0800
commitc5efad88a94613cf60fed010b96dbc3044389316 (patch)
tree9626f8aa18b61da616ebbcf60784784d4ea32975 /tools
parent3e1d95b63c97506d0d98c75fc72a60662981a3c6 (diff)
selftests: find_symbol: Actually use load_mod() parameter
The parameter passed to load_mod() is stored in $MOD, but never used. Obviously it was intended to be used instead of the hardcoded "test_kallsyms_b" module name. Fixes: 84b4a51fce4ccc66 ("selftests: add new kallsyms selftests") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/module/find_symbol.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/module/find_symbol.sh b/tools/testing/selftests/module/find_symbol.sh
index 140364d3c49f..2c56805c9b6e 100755
--- a/tools/testing/selftests/module/find_symbol.sh
+++ b/tools/testing/selftests/module/find_symbol.sh
@@ -44,10 +44,10 @@ load_mod()
local ARCH="$(uname -m)"
case "${ARCH}" in
x86_64)
- perf stat $STATS $MODPROBE test_kallsyms_b
+ perf stat $STATS $MODPROBE $MOD
;;
*)
- time $MODPROBE test_kallsyms_b
+ time $MODPROBE $MOD
exit 1
;;
esac