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 | } |
sewardj | 4b03c42 | 2008-12-23 11:12:40 +0000 | [diff] [blame] | 104 | { |
| 105 | helgrind-glibc2X-015 |
| 106 | Helgrind:Race |
| 107 | obj:/lib*/libc-2.*so* |
| 108 | obj:/lib*/libdl-2.*so* |
| 109 | obj:/lib*/ld-2.*so* |
| 110 | } |
| 111 | { |
| 112 | helgrind-glibc2X-016 |
| 113 | Helgrind:Race |
| 114 | obj:/lib*/libpthread-2.*so* |
| 115 | obj:/lib*/ld-2.*so* |
| 116 | obj:/lib*/ld-2.*so* |
| 117 | } |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 118 | |
| 119 | # These are very ugly. They are needed to suppress errors inside (eg) |
| 120 | # NPTL's pthread_cond_signal. Why only one stack frame -- at least we |
| 121 | # should see the wrapper calling the real functions, right? |
| 122 | # Unfortunately, no: the real functions are handwritten assembly (in |
| 123 | # the glibc-2.5 sources) and does not create a proper stack frame. |
| 124 | # Therefore it's only one level of unwinding before we're back out in |
| 125 | # user code rather than the 2 levels you'd expect. |
| 126 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 127 | helgrind-glibc2X-101 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 128 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 129 | obj:/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 130 | fun:pthread_* |
| 131 | } |
| 132 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 133 | helgrind-glibc2X-102 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 134 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 135 | fun:mythread_wrapper |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 136 | obj:/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 137 | } |
| 138 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 139 | helgrind-glibc2X-103 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 140 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 141 | fun:pthread_cond_*@@GLIBC_2.* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 142 | } |
| 143 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 144 | helgrind-glibc2X-104 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 145 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 146 | fun:__lll_mutex_* |
| 147 | } |
| 148 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 149 | helgrind-glibc2X-105 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 150 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 151 | fun:pthread_rwlock_*lock* |
| 152 | } |
sewardj | b9354be | 2007-11-18 01:40:14 +0000 | [diff] [blame] | 153 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 154 | helgrind-glibc2X-106 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 155 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 156 | fun:__lll_lock_wait |
| 157 | } |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 158 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 159 | helgrind-glibc2X-107 |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 160 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 161 | obj:/lib*/libpthread-2.*so* |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 162 | fun:sem_* |
| 163 | } |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 164 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 165 | helgrind-glibc2X-108 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 166 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 167 | fun:clone |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 168 | } |
| 169 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 170 | helgrind-glibc2X-109 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 171 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 172 | fun:start_thread |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 173 | } |
| 174 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 175 | helgrind-glibc2X-110 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 176 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 177 | obj:/lib*/libc-2.*so* |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 178 | fun:pthread_* |
| 179 | } |
| 180 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 181 | helgrind-glibc2X-111 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 182 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 183 | fun:__lll_*lock_* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 184 | } |
| 185 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 186 | helgrind-glibc2X-112 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 187 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 188 | fun:pthread_create@* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 189 | } |
| 190 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 191 | helgrind-glibc2X-113 |
sewardj | 1990d5d | 2007-12-06 01:58:05 +0000 | [diff] [blame] | 192 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 193 | fun:pthread_barrier_wait* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 194 | } |
| 195 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 196 | |
| 197 | #################################################### |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 198 | # qt4 specific (GNU mangling) |
| 199 | # |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 200 | { |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 201 | helgrind-qt4---QMutex::lock()-QMutex::lock() |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 202 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 203 | fun:_ZN6QMutex4lockEv |
| 204 | fun:_ZN6QMutex4lockEv |
| 205 | } |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 206 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 207 | { |
| 208 | helgrind-qt4---QMutex::unlock()-QMutex::unlock() |
| 209 | Helgrind:Race |
| 210 | fun:_ZN6QMutex6unlockEv |
| 211 | fun:_ZN6QMutex6unlockEv |
| 212 | } |
| 213 | |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 214 | { |
| 215 | helgrind-qt4---pthread_setspecific-QThreadPrivate::start(void*) |
| 216 | Helgrind:Race |
| 217 | fun:pthread_setspecific |
| 218 | fun:_ZN14QThreadPrivate5startEPv |
| 219 | } |
| 220 | |
sewardj | 357cb16 | 2008-12-13 01:18:38 +0000 | [diff] [blame] | 221 | |
| 222 | #################################################### |
| 223 | # Other stuff. |
| 224 | # |
| 225 | # pthread_exit apparently calls some kind of unwind |
| 226 | # mechanism - maybe to remove some number of frames |
| 227 | # from the thread's stack, so as to get back to the |
| 228 | # outermost frame for the thread? Anyway.. |
| 229 | |
| 230 | { |
| 231 | helgrind---*Unwind*-...-pthread_exit |
| 232 | Helgrind:Race |
| 233 | fun:*Unwind* |
| 234 | ... |
| 235 | fun:pthread_exit |
| 236 | } |
| 237 | |
| 238 | { |
| 239 | helgrind---...-*Unwind*-*pthread_unwind* |
| 240 | Helgrind:Race |
| 241 | ... |
| 242 | fun:*Unwind* |
| 243 | fun:*pthread_unwind* |
| 244 | } |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 245 | |
sewardj | 4b03c42 | 2008-12-23 11:12:40 +0000 | [diff] [blame] | 246 | { |
| 247 | helgrind---...-*Unwind*-*pthread_unwind* |
| 248 | Helgrind:Race |
| 249 | ... |
| 250 | fun:_Unwind* |
| 251 | ... |
| 252 | fun:_Unwind_Backtrace |
| 253 | } |
| 254 | |
| 255 | |
| 256 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 257 | |
| 258 | #################################################### |
| 259 | # To do with thread stack allocation and deallocation? |
| 260 | # |
| 261 | { |
| 262 | helgrind---free_stacks-__deallocate_stack |
| 263 | Helgrind:Race |
| 264 | fun:free_stacks |
| 265 | fun:__deallocate_stack |
| 266 | } |
| 267 | |
| 268 | { |
| 269 | helgrind---__deallocate_stack-start_thread-clone |
| 270 | Helgrind:Race |
| 271 | fun:__deallocate_stack |
| 272 | fun:start_thread |
| 273 | fun:clone |
| 274 | } |
| 275 | |
| 276 | |
| 277 | #################################################### |
| 278 | # To do with pthread_{set,get}specific |
| 279 | # |
| 280 | { |
| 281 | helgrind---pthread_setspecific |
| 282 | Helgrind:Race |
| 283 | fun:pthread_setspecific |
| 284 | } |
| 285 | |
| 286 | { |
| 287 | helgrind---pthread_getspecific |
| 288 | Helgrind:Race |
| 289 | fun:pthread_getspecific |
| 290 | } |
| 291 | |
| 292 | |
| 293 | #################################################### |
| 294 | # To do with dynamic linking |
| 295 | # |
| 296 | { |
| 297 | helgrind---ld.so-...-dlsym |
| 298 | Helgrind:Race |
| 299 | obj:/lib*/ld-2.*so* |
| 300 | ... |
| 301 | fun:dlsym |
| 302 | } |