summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/tsan/ignores.txt
blob: 91c8fcffc11421c0df594cdc509fb0905c0183ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This file lists the functions, object files and source files
# which should be ignored (i.e. not instrumented) by ThreadSanitizer.

# ignore these libraries
obj:*/ld-2*
obj:*/libpthread-*
obj:*/libfreetype*

# we ignore the whole NSS library for now since
# its instrumentation is very slow.
# TODO(timurrrr): investigate whether we need to instrument it
obj:*/libnss*

# ignore this standard stuff
fun:clone
fun:fork
fun:pthread_*
fun:random_r
fun:random
fun:rand
fun:__lll_mutex_unlock_wake
fun:__cxa_atexit
fun:__new_exitfn
fun:_dl_*
fun:__dl_*

# dark magic with 'errno' here.
fun:sys_*

# ignore libc's printf functions
fun:_IO_*
fun:vfprintf
fun:fwrite
fun:fflush

# 32-bit version of std::string
# There is something very strange inside this function.
# Looks like they write zero to a global variable which
# value is already zero. I.e. the race is benign.
# Global var is _ZNSs4_Rep20_S_empty_rep_storageE
fun:*_M_mutateEjjj

# Don't instrument intercepts
src:*ts_valgrind_intercepts.c

##################################################################
# Don't instrument syncronization code
src:*base/waitable_event*
src:*base/atomic*
src:*base/condition_variable*
src:*base/lock*
src:*base/stats_counters*
src:*base/thread_local_storage_posix*

# This function is heavy in net_unittests
fun:*disk_cache*BackendImpl*CheckAllEntries*

# V8 hot-spot. Lots of tiny functions there...
# TODO(timurrrr): Should we use coarser segment granularity for this file?
src:*v8/src/objects-inl.h

# TODO(timurrrr): SKIA - needs separate testing?
# SKIA unittest is single-threaded...
# SKIA uses un-annotated atomic refcount and other sync stuff
# some functions are HEAVY like png, jpeg decoding
src:*third_party/skia*