aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin/parse-build.sh
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2021-11-10 07:47:41 -0800
committerPaul E. McKenney <paulmck@kernel.org>2021-11-30 17:30:28 -0800
commitc06354a121777d3c6c5e60bed9d4f1aae04afd72 (patch)
tree8af0aabf598e4ab3921220df5a6a499d6b7ef54b /tools/testing/selftests/rcutorture/bin/parse-build.sh
parenttorture: Catch kvm.sh help text up with actual options (diff)
downloadlinux-dev-c06354a121777d3c6c5e60bed9d4f1aae04afd72.tar.xz
linux-dev-c06354a121777d3c6c5e60bed9d4f1aae04afd72.zip
torture: Make kvm-find-errors.sh report link-time undefined symbols
This commit makes kvm-find-errors.sh check for and report undefined symbols that are detected at link time. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/parse-build.sh')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/parse-build.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/parse-build.sh b/tools/testing/selftests/rcutorture/bin/parse-build.sh
index 9313e5065ae9..2dbfca3589b1 100755
--- a/tools/testing/selftests/rcutorture/bin/parse-build.sh
+++ b/tools/testing/selftests/rcutorture/bin/parse-build.sh
@@ -39,7 +39,8 @@ fi
grep warning: < $F > $T/warnings
grep "include/linux/*rcu*\.h:" $T/warnings > $T/hwarnings
grep "kernel/rcu/[^/]*:" $T/warnings > $T/cwarnings
-cat $T/hwarnings $T/cwarnings > $T/rcuwarnings
+grep "^ld: .*undefined reference to" $T/warnings | head -1 > $T/ldwarnings
+cat $T/hwarnings $T/cwarnings $T/ldwarnings > $T/rcuwarnings
if test -s $T/rcuwarnings
then
print_warning $title build errors: