sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 1 | |
| 2 | ##----------------------------------------------------------------------## |
| 3 | # Suppressions for the Helgrind tool when using |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 4 | # a glibc-2.{3,4,5,6,7,8,9} system |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 5 | |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 6 | #################################################### |
| 7 | # glibc-2.X specific |
| 8 | # These are generic cover-alls which catch a lot of stuff |
| 9 | # in various combinations of ld, libc and libpthread |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 10 | # |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 11 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 12 | helgrind-glibc2X-001 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 13 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 14 | obj:/lib*/ld-2.*so* |
| 15 | obj:/lib*/ld-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 16 | } |
| 17 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 18 | helgrind-glibc2X-002 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 19 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 20 | obj:/lib*/ld-2.*so* |
| 21 | obj:/lib*/libc-2.*so* |
| 22 | obj:/lib*/ld-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 23 | } |
| 24 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 25 | helgrind-glibc2X-003 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 26 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 27 | obj:/lib*/ld-2.*so* |
| 28 | obj:/lib*/libc-2.*so* |
| 29 | obj:/lib*/libc-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 30 | } |
| 31 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 32 | helgrind-glibc2X-004 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 33 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 34 | obj:/lib*/libc-2.*so* |
| 35 | obj:/lib*/libc-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 36 | } |
| 37 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 38 | helgrind-glibc2X-005 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 39 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 40 | obj:/lib*/libpthread-2.*so* |
| 41 | obj:/lib*/libpthread-2.*so* |
| 42 | obj:/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 43 | } |
| 44 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 45 | helgrind-glibc2X-006 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 46 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 47 | obj:/lib*/libpthread-2.*so* |
| 48 | obj:/lib*/libpthread-2.*so* |
| 49 | obj:/lib*/libc-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 50 | } |
| 51 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 52 | helgrind-glibc2X-007 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 53 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 54 | obj:/lib*/ld-2.*so* |
| 55 | obj:/lib*/libc-2.*so* |
| 56 | obj:/lib*/libdl-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 57 | } |
| 58 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 59 | helgrind-glibc2X-008 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 60 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 61 | obj:/lib*/libpthread-2.*so* |
| 62 | obj:/lib*/libc-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 63 | } |
| 64 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 65 | helgrind-glibc2X-009 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 66 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 67 | obj:/lib*/libc-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 68 | fun:* |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 69 | obj:/lib*/libc-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 70 | } |
| 71 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 72 | helgrind-glibc2X-010 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 73 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 74 | obj:/lib*/ld-2.*so* |
| 75 | obj:/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 76 | } |
| 77 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 78 | helgrind-glibc2X-011 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 79 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 80 | obj:/lib*/libc-2.*so* |
| 81 | obj:/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 82 | } |
| 83 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 84 | helgrind-glibc2X-012 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 85 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 86 | obj:/lib*/ld-2.*so* |
| 87 | obj:/lib*/ld-2.*so* |
| 88 | obj:/lib*/libc-2.*so* |
| 89 | } |
| 90 | { |
| 91 | helgrind-glibc2X-013 |
| 92 | Helgrind:Race |
| 93 | obj:/lib*/ld-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 94 | fun:* |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 95 | obj:/lib*/ld-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 96 | } |
| 97 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 98 | helgrind-glibc2X-014 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 99 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 100 | obj:/lib*/ld-2.*so* |
| 101 | obj:/lib*/ld-2.*so* |
| 102 | obj:/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 103 | } |
| 104 | |
| 105 | # These are very ugly. They are needed to suppress errors inside (eg) |
| 106 | # NPTL's pthread_cond_signal. Why only one stack frame -- at least we |
| 107 | # should see the wrapper calling the real functions, right? |
| 108 | # Unfortunately, no: the real functions are handwritten assembly (in |
| 109 | # the glibc-2.5 sources) and does not create a proper stack frame. |
| 110 | # Therefore it's only one level of unwinding before we're back out in |
| 111 | # user code rather than the 2 levels you'd expect. |
| 112 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 113 | helgrind-glibc2X-101 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 114 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 115 | obj:/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 116 | fun:pthread_* |
| 117 | } |
| 118 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 119 | helgrind-glibc2X-102 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 120 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 121 | fun:mythread_wrapper |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 122 | obj:/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 123 | } |
| 124 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 125 | helgrind-glibc2X-103 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 126 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 127 | fun:pthread_cond_*@@GLIBC_2.* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 128 | } |
| 129 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 130 | helgrind-glibc2X-104 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 131 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 132 | fun:__lll_mutex_* |
| 133 | } |
| 134 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 135 | helgrind-glibc2X-105 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 136 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 137 | fun:pthread_rwlock_*lock* |
| 138 | } |
sewardj | b9354be | 2007-11-18 01:40:14 +0000 | [diff] [blame] | 139 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 140 | helgrind-glibc2X-106 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 141 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 142 | fun:__lll_lock_wait |
| 143 | } |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 144 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 145 | helgrind-glibc2X-107 |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 146 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 147 | obj:/lib*/libpthread-2.*so* |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 148 | fun:sem_* |
| 149 | } |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 150 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 151 | helgrind-glibc2X-108 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 152 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 153 | fun:clone |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 154 | } |
| 155 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 156 | helgrind-glibc2X-109 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 157 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 158 | fun:start_thread |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 159 | } |
| 160 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 161 | helgrind-glibc2X-110 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 162 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 163 | obj:/lib*/libc-2.*so* |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 164 | fun:pthread_* |
| 165 | } |
| 166 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 167 | helgrind-glibc2X-111 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 168 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 169 | fun:__lll_*lock_* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 170 | } |
| 171 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 172 | helgrind-glibc2X-112 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 173 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 174 | fun:pthread_create@* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 175 | } |
| 176 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 177 | helgrind-glibc2X-113 |
sewardj | 1990d5d | 2007-12-06 01:58:05 +0000 | [diff] [blame] | 178 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 179 | fun:pthread_barrier_wait* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 180 | } |
| 181 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 182 | |
| 183 | #################################################### |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame^] | 184 | # qt4 specific (GNU mangling) |
| 185 | # |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 186 | { |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 187 | helgrind-qt4---QMutex::lock()-QMutex::lock() |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 188 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 189 | fun:_ZN6QMutex4lockEv |
| 190 | fun:_ZN6QMutex4lockEv |
| 191 | } |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 192 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 193 | { |
| 194 | helgrind-qt4---QMutex::unlock()-QMutex::unlock() |
| 195 | Helgrind:Race |
| 196 | fun:_ZN6QMutex6unlockEv |
| 197 | fun:_ZN6QMutex6unlockEv |
| 198 | } |
| 199 | |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 200 | { |
| 201 | helgrind-qt4---pthread_setspecific-QThreadPrivate::start(void*) |
| 202 | Helgrind:Race |
| 203 | fun:pthread_setspecific |
| 204 | fun:_ZN14QThreadPrivate5startEPv |
| 205 | } |
| 206 | |
sewardj | 357cb16 | 2008-12-13 01:18:38 +0000 | [diff] [blame] | 207 | |
| 208 | #################################################### |
| 209 | # Other stuff. |
| 210 | # |
| 211 | # pthread_exit apparently calls some kind of unwind |
| 212 | # mechanism - maybe to remove some number of frames |
| 213 | # from the thread's stack, so as to get back to the |
| 214 | # outermost frame for the thread? Anyway.. |
| 215 | |
| 216 | { |
| 217 | helgrind---*Unwind*-...-pthread_exit |
| 218 | Helgrind:Race |
| 219 | fun:*Unwind* |
| 220 | ... |
| 221 | fun:pthread_exit |
| 222 | } |
| 223 | |
| 224 | { |
| 225 | helgrind---...-*Unwind*-*pthread_unwind* |
| 226 | Helgrind:Race |
| 227 | ... |
| 228 | fun:*Unwind* |
| 229 | fun:*pthread_unwind* |
| 230 | } |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 231 | |
| 232 | |
| 233 | #################################################### |
| 234 | # To do with thread stack allocation and deallocation? |
| 235 | # |
| 236 | { |
| 237 | helgrind---free_stacks-__deallocate_stack |
| 238 | Helgrind:Race |
| 239 | fun:free_stacks |
| 240 | fun:__deallocate_stack |
| 241 | } |
| 242 | |
| 243 | { |
| 244 | helgrind---__deallocate_stack-start_thread-clone |
| 245 | Helgrind:Race |
| 246 | fun:__deallocate_stack |
| 247 | fun:start_thread |
| 248 | fun:clone |
| 249 | } |
| 250 | |
| 251 | |
| 252 | #################################################### |
| 253 | # To do with pthread_{set,get}specific |
| 254 | # |
| 255 | { |
| 256 | helgrind---pthread_setspecific |
| 257 | Helgrind:Race |
| 258 | fun:pthread_setspecific |
| 259 | } |
| 260 | |
| 261 | { |
| 262 | helgrind---pthread_getspecific |
| 263 | Helgrind:Race |
| 264 | fun:pthread_getspecific |
| 265 | } |
| 266 | |
| 267 | |
| 268 | #################################################### |
| 269 | # To do with dynamic linking |
| 270 | # |
| 271 | { |
| 272 | helgrind---ld.so-...-dlsym |
| 273 | Helgrind:Race |
| 274 | obj:/lib*/ld-2.*so* |
| 275 | ... |
| 276 | fun:dlsym |
| 277 | } |