]>
git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/lib/tsan/check_analyze.sh
3 # Script that checks that critical functions in TSan runtime have correct number
4 # of push/pop/rsp instructions to verify that runtime is efficient enough.
8 if [[ "$#" != 1 ]]; then
9 echo "Usage: $0 /path/to/binary/built/with/tsan"
13 SCRIPTDIR
=$
(dirname $0)
14 RES
=$
(${SCRIPTDIR}/analyze_libtsan.sh
$1)
22 res
=$
(PrintRes |
egrep "$1 .* $2 $3; ")
23 if [ "$res" == "" ]; then
24 echo FAILED
$1 must contain
$2 $3
35 for f
in write2 write4 write8
; do
41 for f
in read1 read2 read4 read8
; do
47 for f
in func_entry func_exit
; do
51 check
$f call
1 # TraceSwitch()