mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-09 23:34:42 +08:00
bd0b1f9493
The kcsan-collapse.sh script assumes that it is being run over the output of a single kvm.sh run, which is less than helpful for torture.sh runs. This commit therefore changes the kcsan-collapse.sh script's "ls" pattern with a "find" command to enable a KCSAN summary across all the -kcsan runs in a full torture.sh run. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
23 lines
484 B
Bash
Executable File
23 lines
484 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# If this was a KCSAN run, collapse the reports in the various console.log
|
|
# files onto pairs of functions.
|
|
#
|
|
# Usage: kcsan-collapse.sh resultsdir
|
|
#
|
|
# Copyright (C) 2020 Facebook, Inc.
|
|
#
|
|
# Authors: Paul E. McKenney <paulmck@kernel.org>
|
|
|
|
if test -z "$TORTURE_KCONFIG_KCSAN_ARG"
|
|
then
|
|
exit 0
|
|
fi
|
|
find $1 -name console.log -exec cat {} \; |
|
|
grep "BUG: KCSAN: " |
|
|
sed -e 's/^\[[^]]*] //' |
|
|
sort |
|
|
uniq -c |
|
|
sort -k1nr > $1/kcsan.sum
|