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