[compiler-rt] 220293d - [NFC][TSAN] Logs to debug test script on bot
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 28 11:40:36 PDT 2020
Author: Vitaly Buka
Date: 2020-10-28T11:40:16-07:00
New Revision: 220293da53b5049ded67b1a251bd85069fa068e7
URL: https://github.com/llvm/llvm-project/commit/220293da53b5049ded67b1a251bd85069fa068e7
DIFF: https://github.com/llvm/llvm-project/commit/220293da53b5049ded67b1a251bd85069fa068e7.diff
LOG: [NFC][TSAN] Logs to debug test script on bot
Added:
Modified:
compiler-rt/lib/tsan/analyze_libtsan.sh
compiler-rt/lib/tsan/check_analyze.sh
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/analyze_libtsan.sh b/compiler-rt/lib/tsan/analyze_libtsan.sh
index ae29f1b5b05a..f55d75564108 100755
--- a/compiler-rt/lib/tsan/analyze_libtsan.sh
+++ b/compiler-rt/lib/tsan/analyze_libtsan.sh
@@ -4,6 +4,7 @@
set -e
set -u
+set -x
if [[ "$#" != 1 ]]; then
echo "Usage: $0 /path/to/binary/built/with/tsan"
@@ -37,6 +38,7 @@ nm -S $BIN | grep "__tsan_" > ${NM_CONTENTS}
for f in $list; do
file=${OUTPUT_DIR}/asm_$f.s
get_asm $f > $file
+ echo "Disassemble: $f to $file $(stat $file)"
tot=$(wc -l < $file)
size=$(grep __tsan_$f$ ${NM_CONTENTS} | awk --non-decimal-data '{print ("0x"$2)+0}')
rsp=$(grep '(%rsp)' $file | wc -l)
diff --git a/compiler-rt/lib/tsan/check_analyze.sh b/compiler-rt/lib/tsan/check_analyze.sh
index 9a245c0c89ab..2b320b905503 100755
--- a/compiler-rt/lib/tsan/check_analyze.sh
+++ b/compiler-rt/lib/tsan/check_analyze.sh
@@ -11,7 +11,7 @@
# ./projects/compiler-rt/lib/tsan/tests/rtl/TsanRtlTest-x86_64-Test
# --gtest_also_run_disabled_tests --gtest_filter=DISABLED_BENCH.Mop*
-set -u
+set -ux
if [[ "$#" != 1 ]]; then
echo "Usage: $0 /path/to/binary/built/with/tsan"
More information about the llvm-commits
mailing list