blob: 0a4aeaa1ebf178fb659270256112af8f8b6f923d [file] [log] [blame]
sewardj95386ae2007-11-09 22:50:55 +00001
sewardj141383e2009-01-22 20:46:51 +00002# FIXME 22 Jan 09: helgrind-glibc2X-005 overlaps with a lot of
3# other stuff. They should be removed.
4
sewardj95386ae2007-11-09 22:50:55 +00005##----------------------------------------------------------------------##
6# Suppressions for the Helgrind tool when using
sewardjf7218152008-12-22 20:21:38 +00007# a glibc-2.{3,4,5,6,7,8,9} system
sewardj95386ae2007-11-09 22:50:55 +00008
sewardjf7218152008-12-22 20:21:38 +00009####################################################
10# glibc-2.X specific
11# These are generic cover-alls which catch a lot of stuff
12# in various combinations of ld, libc and libpthread
sewardj95386ae2007-11-09 22:50:55 +000013#
sewardj94a9b242009-01-02 23:17:02 +000014# Note this is heavyhanded and not very clever:
15#
16# - suppress anything that has its top frame in ld.so
17# That's fine, since it's mostly dynamic linking stuff,
18# which has various deliberate (harmless) races
19#
20# - suppress anything that has its top frame in libc.so.
21# This really isn't clever, since it could hide some
22# legitimate races. But the problem is, if we don't do
23# this, then loads of errors to do with stdio are reported, because
24# H fails to see glibc's internal locking/unlocking of FILE*s
25# as required by POSIX. A better solution is needed.
26
sewardj95386ae2007-11-09 22:50:55 +000027{
sewardjf7218152008-12-22 20:21:38 +000028 helgrind-glibc2X-001
sewardj963286e2007-11-10 12:44:56 +000029 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +000030 obj:/lib*/ld-2.*so*
sewardj95386ae2007-11-09 22:50:55 +000031}
sewardj94a9b242009-01-02 23:17:02 +000032
sewardj4f75be32008-12-29 14:46:26 +000033# helgrind-glibc2X-002 was merged into helgrind-glibc2X-001
sewardj94a9b242009-01-02 23:17:02 +000034
sewardj4f75be32008-12-29 14:46:26 +000035# helgrind-glibc2X-003 was merged into helgrind-glibc2X-001
sewardj94a9b242009-01-02 23:17:02 +000036
sewardj95386ae2007-11-09 22:50:55 +000037{
sewardjf7218152008-12-22 20:21:38 +000038 helgrind-glibc2X-004
sewardj963286e2007-11-10 12:44:56 +000039 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +000040 obj:/lib*/libc-2.*so*
sewardj95386ae2007-11-09 22:50:55 +000041}
sewardj94a9b242009-01-02 23:17:02 +000042
sewardj95386ae2007-11-09 22:50:55 +000043{
sewardjf7218152008-12-22 20:21:38 +000044 helgrind-glibc2X-005
sewardj963286e2007-11-10 12:44:56 +000045 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +000046 obj:/lib*/libpthread-2.*so*
sewardj95386ae2007-11-09 22:50:55 +000047}
sewardj94a9b242009-01-02 23:17:02 +000048
49# helgrind-glibc2X-006 was merged into helgrind-glibc2X-005
50
sewardj4f75be32008-12-29 14:46:26 +000051# helgrind-glibc2X-007 was merged into helgrind-glibc2X-001
sewardj94a9b242009-01-02 23:17:02 +000052
sewardja2e66b82009-02-01 20:15:32 +000053# helgrind-glibc2X-008 was merged into helgrind-glibc2X-004
sewardj94a9b242009-01-02 23:17:02 +000054
55# helgrind-glibc2X-009 was merged into helgrind-glibc2X-004
56
sewardj4f75be32008-12-29 14:46:26 +000057# helgrind-glibc2X-010 was merged into helgrind-glibc2X-001
sewardj94a9b242009-01-02 23:17:02 +000058
59# helgrind-glibc2X-011 was merged into helgrind-glibc2X-004
60
sewardj4f75be32008-12-29 14:46:26 +000061# helgrind-glibc2X-012 was merged into helgrind-glibc2X-001
sewardj94a9b242009-01-02 23:17:02 +000062
sewardj4f75be32008-12-29 14:46:26 +000063# helgrind-glibc2X-013 was merged into helgrind-glibc2X-001
sewardj94a9b242009-01-02 23:17:02 +000064
sewardj4f75be32008-12-29 14:46:26 +000065# helgrind-glibc2X-014 was merged into helgrind-glibc2X-001
sewardj94a9b242009-01-02 23:17:02 +000066
67# helgrind-glibc2X-015 was merged into helgrind-glibc2X-004
68
sewardja2e66b82009-02-01 20:15:32 +000069# helgrind-glibc2X-016 was merged into helgrind-glibc2X-004
sewardj95386ae2007-11-09 22:50:55 +000070
71# These are very ugly. They are needed to suppress errors inside (eg)
72# NPTL's pthread_cond_signal. Why only one stack frame -- at least we
73# should see the wrapper calling the real functions, right?
74# Unfortunately, no: the real functions are handwritten assembly (in
75# the glibc-2.5 sources) and does not create a proper stack frame.
76# Therefore it's only one level of unwinding before we're back out in
77# user code rather than the 2 levels you'd expect.
78{
sewardjf7218152008-12-22 20:21:38 +000079 helgrind-glibc2X-101
sewardj963286e2007-11-10 12:44:56 +000080 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +000081 obj:/lib*/libpthread-2.*so*
sewardj95386ae2007-11-09 22:50:55 +000082 fun:pthread_*
83}
84{
sewardjf7218152008-12-22 20:21:38 +000085 helgrind-glibc2X-102
sewardj963286e2007-11-10 12:44:56 +000086 Helgrind:Race
sewardj95386ae2007-11-09 22:50:55 +000087 fun:mythread_wrapper
sewardjf7218152008-12-22 20:21:38 +000088 obj:/lib*/libpthread-2.*so*
sewardj95386ae2007-11-09 22:50:55 +000089}
90{
sewardjf7218152008-12-22 20:21:38 +000091 helgrind-glibc2X-103
sewardj963286e2007-11-10 12:44:56 +000092 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +000093 fun:pthread_cond_*@@GLIBC_2.*
sewardj95386ae2007-11-09 22:50:55 +000094}
95{
sewardjf7218152008-12-22 20:21:38 +000096 helgrind-glibc2X-104
sewardj963286e2007-11-10 12:44:56 +000097 Helgrind:Race
sewardj95386ae2007-11-09 22:50:55 +000098 fun:__lll_mutex_*
99}
100{
sewardjf7218152008-12-22 20:21:38 +0000101 helgrind-glibc2X-105
sewardj963286e2007-11-10 12:44:56 +0000102 Helgrind:Race
sewardj95386ae2007-11-09 22:50:55 +0000103 fun:pthread_rwlock_*lock*
104}
sewardjb9354be2007-11-18 01:40:14 +0000105{
sewardjf7218152008-12-22 20:21:38 +0000106 helgrind-glibc2X-106
sewardj963286e2007-11-10 12:44:56 +0000107 Helgrind:Race
sewardj95386ae2007-11-09 22:50:55 +0000108 fun:__lll_lock_wait
109}
sewardja8e939e2007-11-13 20:51:26 +0000110{
sewardjf7218152008-12-22 20:21:38 +0000111 helgrind-glibc2X-107
sewardja8e939e2007-11-13 20:51:26 +0000112 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +0000113 obj:/lib*/libpthread-2.*so*
sewardja8e939e2007-11-13 20:51:26 +0000114 fun:sem_*
115}
sewardja1c0df32007-11-18 18:22:50 +0000116{
sewardjf7218152008-12-22 20:21:38 +0000117 helgrind-glibc2X-108
sewardja1c0df32007-11-18 18:22:50 +0000118 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +0000119 fun:clone
sewardja1c0df32007-11-18 18:22:50 +0000120}
121{
sewardjf7218152008-12-22 20:21:38 +0000122 helgrind-glibc2X-109
sewardja1c0df32007-11-18 18:22:50 +0000123 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +0000124 fun:start_thread
sewardja1c0df32007-11-18 18:22:50 +0000125}
126{
sewardjf7218152008-12-22 20:21:38 +0000127 helgrind-glibc2X-110
sewardja1c0df32007-11-18 18:22:50 +0000128 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +0000129 obj:/lib*/libc-2.*so*
sewardja1c0df32007-11-18 18:22:50 +0000130 fun:pthread_*
131}
132{
sewardjf7218152008-12-22 20:21:38 +0000133 helgrind-glibc2X-111
sewardja1c0df32007-11-18 18:22:50 +0000134 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +0000135 fun:__lll_*lock_*
sewardj95386ae2007-11-09 22:50:55 +0000136}
137{
sewardjf7218152008-12-22 20:21:38 +0000138 helgrind-glibc2X-112
sewardj963286e2007-11-10 12:44:56 +0000139 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +0000140 fun:pthread_create@*
sewardj95386ae2007-11-09 22:50:55 +0000141}
142{
sewardjf7218152008-12-22 20:21:38 +0000143 helgrind-glibc2X-113
sewardj1990d5d2007-12-06 01:58:05 +0000144 Helgrind:Race
sewardjf7218152008-12-22 20:21:38 +0000145 fun:pthread_barrier_wait*
sewardj95386ae2007-11-09 22:50:55 +0000146}
147
sewardj13ca8a62008-12-20 09:20:33 +0000148
149####################################################
sewardjf7218152008-12-22 20:21:38 +0000150# qt4 specific (GNU mangling)
151#
sewardj95386ae2007-11-09 22:50:55 +0000152{
sewardj0f7a0292008-11-19 10:41:55 +0000153 helgrind-qt4---QMutex::lock()-QMutex::lock()
sewardj963286e2007-11-10 12:44:56 +0000154 Helgrind:Race
sewardjdcfac132009-02-25 21:28:38 +0000155 ...
sewardj95386ae2007-11-09 22:50:55 +0000156 fun:_ZN6QMutex4lockEv
157 fun:_ZN6QMutex4lockEv
158}
sewardj0f7a0292008-11-19 10:41:55 +0000159
sewardj13ca8a62008-12-20 09:20:33 +0000160{
161 helgrind-qt4---QMutex::unlock()-QMutex::unlock()
162 Helgrind:Race
sewardjdcfac132009-02-25 21:28:38 +0000163 ...
sewardj13ca8a62008-12-20 09:20:33 +0000164 fun:_ZN6QMutex6unlockEv
165 fun:_ZN6QMutex6unlockEv
166}
167
sewardj0f7a0292008-11-19 10:41:55 +0000168{
169 helgrind-qt4---pthread_setspecific-QThreadPrivate::start(void*)
170 Helgrind:Race
171 fun:pthread_setspecific
172 fun:_ZN14QThreadPrivate5startEPv
173}
174
sewardj357cb162008-12-13 01:18:38 +0000175
176####################################################
177# Other stuff.
178#
179# pthread_exit apparently calls some kind of unwind
180# mechanism - maybe to remove some number of frames
181# from the thread's stack, so as to get back to the
182# outermost frame for the thread? Anyway..
183
184{
185 helgrind---*Unwind*-...-pthread_exit
186 Helgrind:Race
187 fun:*Unwind*
188 ...
189 fun:pthread_exit
190}
191
192{
193 helgrind---...-*Unwind*-*pthread_unwind*
194 Helgrind:Race
195 ...
196 fun:*Unwind*
197 fun:*pthread_unwind*
198}
sewardj13ca8a62008-12-20 09:20:33 +0000199
sewardj4b03c422008-12-23 11:12:40 +0000200{
201 helgrind---...-*Unwind*-*pthread_unwind*
202 Helgrind:Race
203 ...
204 fun:_Unwind*
205 ...
206 fun:_Unwind_Backtrace
207}
208
209
210
sewardj13ca8a62008-12-20 09:20:33 +0000211
212####################################################
213# To do with thread stack allocation and deallocation?
214#
215{
216 helgrind---free_stacks-__deallocate_stack
217 Helgrind:Race
218 fun:free_stacks
219 fun:__deallocate_stack
220}
221
222{
223 helgrind---__deallocate_stack-start_thread-clone
224 Helgrind:Race
225 fun:__deallocate_stack
226 fun:start_thread
227 fun:clone
228}
229
230
231####################################################
232# To do with pthread_{set,get}specific
233#
234{
235 helgrind---pthread_setspecific
236 Helgrind:Race
237 fun:pthread_setspecific
238}
239
240{
241 helgrind---pthread_getspecific
242 Helgrind:Race
243 fun:pthread_getspecific
244}
245
246
247####################################################
248# To do with dynamic linking
249#
sewardj4f75be32008-12-29 14:46:26 +0000250# helgrind---ld.so-...-dlsym was merged into helgrind-glibc2X-001
sewardj94a9b242009-01-02 23:17:02 +0000251
sewardja2e66b82009-02-01 20:15:32 +0000252
253####################################################
254# To do with GNU libgomp
255#
256{
257 helgrind---libgomp43-1
258 Helgrind:Race
259 fun:gomp_ordered_sync
260}
261
262{
263 helgrind---libgomp43-1
264 Helgrind:Race
265 fun:gomp_ordered_next
266}
267
268{
269 helgrind---libgomp43-1
270 Helgrind:Race
271 fun:gomp_ordered_last
272}