Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 1 | //===-- tsan_stat.h ---------------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file is a part of ThreadSanitizer (TSan), a race detector. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef TSAN_STAT_H |
| 15 | #define TSAN_STAT_H |
| 16 | |
| 17 | namespace __tsan { |
| 18 | |
| 19 | enum StatType { |
| 20 | // Memory access processing related stuff. |
| 21 | StatMop, |
| 22 | StatMopRead, |
| 23 | StatMopWrite, |
| 24 | StatMop1, // These must be consequtive. |
| 25 | StatMop2, |
| 26 | StatMop4, |
| 27 | StatMop8, |
| 28 | StatMopSame, |
| 29 | StatMopRange, |
Dmitry Vyukov | 82dbc51 | 2013-03-20 13:21:50 +0000 | [diff] [blame] | 30 | StatMopRodata, |
| 31 | StatMopRangeRodata, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 32 | StatShadowProcessed, |
| 33 | StatShadowZero, |
| 34 | StatShadowNonZero, // Derived. |
| 35 | StatShadowSameSize, |
| 36 | StatShadowIntersect, |
| 37 | StatShadowNotIntersect, |
| 38 | StatShadowSameThread, |
| 39 | StatShadowAnotherThread, |
| 40 | StatShadowReplace, |
| 41 | |
| 42 | // Func processing. |
| 43 | StatFuncEnter, |
| 44 | StatFuncExit, |
| 45 | |
| 46 | // Trace processing. |
| 47 | StatEvents, |
| 48 | |
| 49 | // Threads. |
| 50 | StatThreadCreate, |
| 51 | StatThreadFinish, |
| 52 | StatThreadReuse, |
| 53 | StatThreadMaxTid, |
| 54 | StatThreadMaxAlive, |
| 55 | |
| 56 | // Mutexes. |
| 57 | StatMutexCreate, |
| 58 | StatMutexDestroy, |
| 59 | StatMutexLock, |
| 60 | StatMutexUnlock, |
| 61 | StatMutexRecLock, |
| 62 | StatMutexRecUnlock, |
| 63 | StatMutexReadLock, |
| 64 | StatMutexReadUnlock, |
| 65 | |
| 66 | // Synchronization. |
| 67 | StatSyncCreated, |
| 68 | StatSyncDestroyed, |
| 69 | StatSyncAcquire, |
| 70 | StatSyncRelease, |
| 71 | |
| 72 | // Atomics. |
| 73 | StatAtomic, |
| 74 | StatAtomicLoad, |
| 75 | StatAtomicStore, |
| 76 | StatAtomicExchange, |
| 77 | StatAtomicFetchAdd, |
Dmitry Vyukov | 529cfa0 | 2012-10-04 10:08:23 +0000 | [diff] [blame] | 78 | StatAtomicFetchSub, |
Dmitry Vyukov | cdfb33a | 2012-05-14 15:33:00 +0000 | [diff] [blame] | 79 | StatAtomicFetchAnd, |
| 80 | StatAtomicFetchOr, |
| 81 | StatAtomicFetchXor, |
Dmitry Vyukov | 02b45d2 | 2012-11-26 09:42:56 +0000 | [diff] [blame] | 82 | StatAtomicFetchNand, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 83 | StatAtomicCAS, |
| 84 | StatAtomicFence, |
| 85 | StatAtomicRelaxed, |
| 86 | StatAtomicConsume, |
| 87 | StatAtomicAcquire, |
| 88 | StatAtomicRelease, |
| 89 | StatAtomicAcq_Rel, |
| 90 | StatAtomicSeq_Cst, |
| 91 | StatAtomic1, |
| 92 | StatAtomic2, |
| 93 | StatAtomic4, |
| 94 | StatAtomic8, |
Dmitry Vyukov | 63da509 | 2012-11-27 07:41:27 +0000 | [diff] [blame] | 95 | StatAtomic16, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 96 | |
| 97 | // Interceptors. |
| 98 | StatInterceptor, |
Dmitry Vyukov | f037f56 | 2012-05-31 18:03:59 +0000 | [diff] [blame] | 99 | StatInt_longjmp, |
| 100 | StatInt_siglongjmp, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 101 | StatInt_malloc, |
Dmitry Vyukov | 07ba8ef | 2012-11-30 17:27:58 +0000 | [diff] [blame] | 102 | StatInt___libc_memalign, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 103 | StatInt_calloc, |
| 104 | StatInt_realloc, |
| 105 | StatInt_free, |
| 106 | StatInt_cfree, |
Alexey Samsonov | 8a6b5e5 | 2013-02-25 08:43:10 +0000 | [diff] [blame] | 107 | StatInt_malloc_usable_size, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 108 | StatInt_mmap, |
| 109 | StatInt_mmap64, |
| 110 | StatInt_munmap, |
| 111 | StatInt_memalign, |
| 112 | StatInt_valloc, |
| 113 | StatInt_pvalloc, |
| 114 | StatInt_posix_memalign, |
| 115 | StatInt__Znwm, |
| 116 | StatInt__ZnwmRKSt9nothrow_t, |
| 117 | StatInt__Znam, |
| 118 | StatInt__ZnamRKSt9nothrow_t, |
| 119 | StatInt__ZdlPv, |
| 120 | StatInt__ZdlPvRKSt9nothrow_t, |
| 121 | StatInt__ZdaPv, |
| 122 | StatInt__ZdaPvRKSt9nothrow_t, |
| 123 | StatInt_strlen, |
| 124 | StatInt_memset, |
| 125 | StatInt_memcpy, |
| 126 | StatInt_strcmp, |
| 127 | StatInt_memchr, |
| 128 | StatInt_memrchr, |
| 129 | StatInt_memmove, |
| 130 | StatInt_memcmp, |
| 131 | StatInt_strchr, |
| 132 | StatInt_strchrnul, |
| 133 | StatInt_strrchr, |
| 134 | StatInt_strncmp, |
| 135 | StatInt_strcpy, |
| 136 | StatInt_strncpy, |
Dmitry Vyukov | be52366 | 2013-03-26 12:40:23 +0000 | [diff] [blame] | 137 | StatInt_strcasecmp, |
| 138 | StatInt_strncasecmp, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 139 | StatInt_strstr, |
Dmitry Vyukov | 39fa68e | 2013-09-21 23:44:19 +0000 | [diff] [blame] | 140 | StatInt_strdup, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 141 | StatInt_atexit, |
Dmitry Vyukov | c78140f | 2013-10-03 14:00:46 +0000 | [diff] [blame] | 142 | StatInt__exit, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 143 | StatInt___cxa_guard_acquire, |
| 144 | StatInt___cxa_guard_release, |
Dmitry Vyukov | 1ffeded | 2012-12-05 12:10:22 +0000 | [diff] [blame] | 145 | StatInt___cxa_guard_abort, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 146 | StatInt_pthread_create, |
| 147 | StatInt_pthread_join, |
| 148 | StatInt_pthread_detach, |
| 149 | StatInt_pthread_mutex_init, |
| 150 | StatInt_pthread_mutex_destroy, |
| 151 | StatInt_pthread_mutex_lock, |
| 152 | StatInt_pthread_mutex_trylock, |
| 153 | StatInt_pthread_mutex_timedlock, |
| 154 | StatInt_pthread_mutex_unlock, |
| 155 | StatInt_pthread_spin_init, |
| 156 | StatInt_pthread_spin_destroy, |
| 157 | StatInt_pthread_spin_lock, |
| 158 | StatInt_pthread_spin_trylock, |
| 159 | StatInt_pthread_spin_unlock, |
| 160 | StatInt_pthread_rwlock_init, |
| 161 | StatInt_pthread_rwlock_destroy, |
| 162 | StatInt_pthread_rwlock_rdlock, |
| 163 | StatInt_pthread_rwlock_tryrdlock, |
| 164 | StatInt_pthread_rwlock_timedrdlock, |
| 165 | StatInt_pthread_rwlock_wrlock, |
| 166 | StatInt_pthread_rwlock_trywrlock, |
| 167 | StatInt_pthread_rwlock_timedwrlock, |
| 168 | StatInt_pthread_rwlock_unlock, |
Dmitry Vyukov | fae2bff | 2013-09-19 23:44:51 +0000 | [diff] [blame] | 169 | StatInt_pthread_cond_init, |
| 170 | StatInt_pthread_cond_destroy, |
| 171 | StatInt_pthread_cond_signal, |
| 172 | StatInt_pthread_cond_broadcast, |
| 173 | StatInt_pthread_cond_wait, |
| 174 | StatInt_pthread_cond_timedwait, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 175 | StatInt_pthread_barrier_init, |
| 176 | StatInt_pthread_barrier_destroy, |
| 177 | StatInt_pthread_barrier_wait, |
| 178 | StatInt_pthread_once, |
Evgeniy Stepanov | 56d3472 | 2013-05-21 08:12:08 +0000 | [diff] [blame] | 179 | StatInt_pthread_getschedparam, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 180 | StatInt_sem_init, |
| 181 | StatInt_sem_destroy, |
| 182 | StatInt_sem_wait, |
| 183 | StatInt_sem_trywait, |
| 184 | StatInt_sem_timedwait, |
| 185 | StatInt_sem_post, |
| 186 | StatInt_sem_getvalue, |
Dmitry Vyukov | 61ba1b5 | 2013-01-29 09:23:09 +0000 | [diff] [blame] | 187 | StatInt_stat, |
| 188 | StatInt___xstat, |
| 189 | StatInt_stat64, |
| 190 | StatInt___xstat64, |
| 191 | StatInt_lstat, |
| 192 | StatInt___lxstat, |
| 193 | StatInt_lstat64, |
| 194 | StatInt___lxstat64, |
| 195 | StatInt_fstat, |
| 196 | StatInt___fxstat, |
| 197 | StatInt_fstat64, |
| 198 | StatInt___fxstat64, |
Dmitry Vyukov | ba3ae35 | 2012-12-07 18:30:40 +0000 | [diff] [blame] | 199 | StatInt_open, |
Dmitry Vyukov | c78839f | 2012-12-12 11:59:30 +0000 | [diff] [blame] | 200 | StatInt_open64, |
Dmitry Vyukov | ba3ae35 | 2012-12-07 18:30:40 +0000 | [diff] [blame] | 201 | StatInt_creat, |
Dmitry Vyukov | c78839f | 2012-12-12 11:59:30 +0000 | [diff] [blame] | 202 | StatInt_creat64, |
Dmitry Vyukov | ba3ae35 | 2012-12-07 18:30:40 +0000 | [diff] [blame] | 203 | StatInt_dup, |
| 204 | StatInt_dup2, |
| 205 | StatInt_dup3, |
Dmitry Vyukov | 68230a1 | 2012-12-07 19:23:59 +0000 | [diff] [blame] | 206 | StatInt_eventfd, |
Dmitry Vyukov | 45d4324 | 2012-12-18 12:35:31 +0000 | [diff] [blame] | 207 | StatInt_signalfd, |
| 208 | StatInt_inotify_init, |
| 209 | StatInt_inotify_init1, |
Dmitry Vyukov | 68230a1 | 2012-12-07 19:23:59 +0000 | [diff] [blame] | 210 | StatInt_socket, |
Dmitry Vyukov | 983518e | 2012-12-14 09:57:42 +0000 | [diff] [blame] | 211 | StatInt_socketpair, |
Dmitry Vyukov | 68230a1 | 2012-12-07 19:23:59 +0000 | [diff] [blame] | 212 | StatInt_connect, |
Dmitry Vyukov | 52c70e5 | 2013-02-04 08:06:32 +0000 | [diff] [blame] | 213 | StatInt_bind, |
| 214 | StatInt_listen, |
Dmitry Vyukov | 68230a1 | 2012-12-07 19:23:59 +0000 | [diff] [blame] | 215 | StatInt_accept, |
| 216 | StatInt_accept4, |
| 217 | StatInt_epoll_create, |
| 218 | StatInt_epoll_create1, |
Dmitry Vyukov | ddeb2c3 | 2012-12-07 15:32:56 +0000 | [diff] [blame] | 219 | StatInt_close, |
Dmitry Vyukov | c78839f | 2012-12-12 11:59:30 +0000 | [diff] [blame] | 220 | StatInt___close, |
Dmitry Vyukov | 03f2248 | 2013-02-07 15:27:45 +0000 | [diff] [blame] | 221 | StatInt___res_iclose, |
Dmitry Vyukov | ddeb2c3 | 2012-12-07 15:32:56 +0000 | [diff] [blame] | 222 | StatInt_pipe, |
| 223 | StatInt_pipe2, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 224 | StatInt_read, |
Kostya Serebryany | c20b321 | 2013-01-18 06:43:13 +0000 | [diff] [blame] | 225 | StatInt_prctl, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 226 | StatInt_pread, |
| 227 | StatInt_pread64, |
| 228 | StatInt_readv, |
Evgeniy Stepanov | b916e6a | 2013-06-24 10:43:23 +0000 | [diff] [blame] | 229 | StatInt_preadv, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 230 | StatInt_preadv64, |
| 231 | StatInt_write, |
| 232 | StatInt_pwrite, |
| 233 | StatInt_pwrite64, |
| 234 | StatInt_writev, |
Evgeniy Stepanov | b916e6a | 2013-06-24 10:43:23 +0000 | [diff] [blame] | 235 | StatInt_pwritev, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 236 | StatInt_pwritev64, |
| 237 | StatInt_send, |
| 238 | StatInt_sendmsg, |
| 239 | StatInt_recv, |
| 240 | StatInt_recvmsg, |
| 241 | StatInt_unlink, |
| 242 | StatInt_fopen, |
Dmitry Vyukov | c78839f | 2012-12-12 11:59:30 +0000 | [diff] [blame] | 243 | StatInt_freopen, |
| 244 | StatInt_fclose, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 245 | StatInt_fread, |
| 246 | StatInt_fwrite, |
Dmitry Vyukov | 0ebfc6f | 2013-03-20 14:01:10 +0000 | [diff] [blame] | 247 | StatInt_fflush, |
Dmitry Vyukov | 5043f05 | 2013-03-21 12:50:43 +0000 | [diff] [blame] | 248 | StatInt_abort, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 249 | StatInt_puts, |
| 250 | StatInt_rmdir, |
| 251 | StatInt_opendir, |
| 252 | StatInt_epoll_ctl, |
| 253 | StatInt_epoll_wait, |
Dmitry Vyukov | ee8ee24 | 2012-11-15 17:40:49 +0000 | [diff] [blame] | 254 | StatInt_poll, |
Evgeniy Stepanov | e18e3f0 | 2013-08-12 13:19:53 +0000 | [diff] [blame] | 255 | StatInt_ppoll, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 256 | StatInt_sigaction, |
Dmitry Vyukov | d91d067 | 2012-05-21 08:26:51 +0000 | [diff] [blame] | 257 | StatInt_signal, |
Dmitry Vyukov | fbeab51 | 2013-07-16 11:28:04 +0000 | [diff] [blame] | 258 | StatInt_sigsuspend, |
Dmitry Vyukov | d91d067 | 2012-05-21 08:26:51 +0000 | [diff] [blame] | 259 | StatInt_raise, |
| 260 | StatInt_kill, |
| 261 | StatInt_pthread_kill, |
Dmitry Vyukov | 8485311 | 2012-08-31 17:27:49 +0000 | [diff] [blame] | 262 | StatInt_sleep, |
| 263 | StatInt_usleep, |
| 264 | StatInt_nanosleep, |
Dmitry Vyukov | aad173b | 2012-11-09 19:55:06 +0000 | [diff] [blame] | 265 | StatInt_gettimeofday, |
Dmitry Vyukov | 4554b7a | 2012-12-18 14:44:44 +0000 | [diff] [blame] | 266 | StatInt_fork, |
Evgeniy Stepanov | 996c4f2 | 2013-01-18 11:17:23 +0000 | [diff] [blame] | 267 | StatInt_vscanf, |
| 268 | StatInt_vsscanf, |
| 269 | StatInt_vfscanf, |
| 270 | StatInt_scanf, |
| 271 | StatInt_sscanf, |
| 272 | StatInt_fscanf, |
Evgeniy Stepanov | 86edb3b | 2013-02-12 12:02:49 +0000 | [diff] [blame] | 273 | StatInt___isoc99_vscanf, |
| 274 | StatInt___isoc99_vsscanf, |
| 275 | StatInt___isoc99_vfscanf, |
| 276 | StatInt___isoc99_scanf, |
| 277 | StatInt___isoc99_sscanf, |
| 278 | StatInt___isoc99_fscanf, |
Dmitry Vyukov | 31c05ea | 2013-01-29 13:05:30 +0000 | [diff] [blame] | 279 | StatInt_on_exit, |
| 280 | StatInt___cxa_atexit, |
Evgeniy Stepanov | 9358c58 | 2013-02-19 09:19:16 +0000 | [diff] [blame] | 281 | StatInt_localtime, |
| 282 | StatInt_localtime_r, |
| 283 | StatInt_gmtime, |
| 284 | StatInt_gmtime_r, |
| 285 | StatInt_ctime, |
| 286 | StatInt_ctime_r, |
| 287 | StatInt_asctime, |
| 288 | StatInt_asctime_r, |
Evgeniy Stepanov | 7cbbb29 | 2013-03-14 11:34:39 +0000 | [diff] [blame] | 289 | StatInt_frexp, |
| 290 | StatInt_frexpf, |
| 291 | StatInt_frexpl, |
Evgeniy Stepanov | e4bdda5 | 2013-04-01 14:47:21 +0000 | [diff] [blame] | 292 | StatInt_getpwnam, |
| 293 | StatInt_getpwuid, |
Evgeniy Stepanov | 103a63e | 2013-04-23 12:01:20 +0000 | [diff] [blame] | 294 | StatInt_getgrnam, |
| 295 | StatInt_getgrgid, |
Evgeniy Stepanov | e4bdda5 | 2013-04-01 14:47:21 +0000 | [diff] [blame] | 296 | StatInt_getpwnam_r, |
| 297 | StatInt_getpwuid_r, |
Evgeniy Stepanov | 103a63e | 2013-04-23 12:01:20 +0000 | [diff] [blame] | 298 | StatInt_getgrnam_r, |
| 299 | StatInt_getgrgid_r, |
Evgeniy Stepanov | e4bdda5 | 2013-04-01 14:47:21 +0000 | [diff] [blame] | 300 | StatInt_clock_getres, |
| 301 | StatInt_clock_gettime, |
| 302 | StatInt_clock_settime, |
| 303 | StatInt_getitimer, |
| 304 | StatInt_setitimer, |
Evgeniy Stepanov | cc24ec9 | 2013-04-08 08:46:25 +0000 | [diff] [blame] | 305 | StatInt_time, |
Evgeniy Stepanov | a1c2a55 | 2013-04-09 11:35:13 +0000 | [diff] [blame] | 306 | StatInt_glob, |
| 307 | StatInt_glob64, |
Evgeniy Stepanov | 897a4ae | 2013-04-09 14:34:59 +0000 | [diff] [blame] | 308 | StatInt_wait, |
| 309 | StatInt_waitid, |
| 310 | StatInt_waitpid, |
| 311 | StatInt_wait3, |
| 312 | StatInt_wait4, |
Evgeniy Stepanov | 9530eb7 | 2013-04-23 14:05:15 +0000 | [diff] [blame] | 313 | StatInt_inet_ntop, |
| 314 | StatInt_inet_pton, |
Evgeniy Stepanov | 90a65aa | 2013-06-24 14:03:13 +0000 | [diff] [blame] | 315 | StatInt_inet_aton, |
Evgeniy Stepanov | 447ef19 | 2013-05-22 12:50:26 +0000 | [diff] [blame] | 316 | StatInt_getaddrinfo, |
Evgeniy Stepanov | 9eedf48 | 2013-07-01 13:51:31 +0000 | [diff] [blame] | 317 | StatInt_getnameinfo, |
Evgeniy Stepanov | 9f58c5c | 2013-05-22 13:46:22 +0000 | [diff] [blame] | 318 | StatInt_getsockname, |
Evgeniy Stepanov | 0a2cc37 | 2013-05-23 11:10:23 +0000 | [diff] [blame] | 319 | StatInt_gethostent, |
| 320 | StatInt_gethostbyname, |
| 321 | StatInt_gethostbyname2, |
| 322 | StatInt_gethostbyaddr, |
| 323 | StatInt_gethostent_r, |
| 324 | StatInt_gethostbyname_r, |
| 325 | StatInt_gethostbyname2_r, |
| 326 | StatInt_gethostbyaddr_r, |
Evgeniy Stepanov | f32be42 | 2013-05-23 11:38:08 +0000 | [diff] [blame] | 327 | StatInt_getsockopt, |
Evgeniy Stepanov | c87088b | 2013-05-29 10:03:11 +0000 | [diff] [blame] | 328 | StatInt_modf, |
| 329 | StatInt_modff, |
| 330 | StatInt_modfl, |
Evgeniy Stepanov | bc33e13 | 2013-05-29 11:49:25 +0000 | [diff] [blame] | 331 | StatInt_getpeername, |
Evgeniy Stepanov | 745dd0d | 2013-06-07 13:00:47 +0000 | [diff] [blame] | 332 | StatInt_ioctl, |
Evgeniy Stepanov | 359d7fc | 2013-06-24 14:25:33 +0000 | [diff] [blame] | 333 | StatInt_sysinfo, |
Evgeniy Stepanov | b5cf98f | 2013-06-26 15:00:53 +0000 | [diff] [blame] | 334 | StatInt_readdir, |
| 335 | StatInt_readdir64, |
| 336 | StatInt_readdir_r, |
| 337 | StatInt_readdir64_r, |
Evgeniy Stepanov | 341b9e6 | 2013-06-28 11:02:43 +0000 | [diff] [blame] | 338 | StatInt_ptrace, |
Evgeniy Stepanov | 3cae604 | 2013-07-02 09:23:45 +0000 | [diff] [blame] | 339 | StatInt_setlocale, |
Evgeniy Stepanov | 8014489 | 2013-07-02 13:34:44 +0000 | [diff] [blame] | 340 | StatInt_getcwd, |
| 341 | StatInt_get_current_dir_name, |
Evgeniy Stepanov | ff6c9fb | 2013-07-04 13:19:41 +0000 | [diff] [blame] | 342 | StatInt_strtoimax, |
| 343 | StatInt_strtoumax, |
| 344 | StatInt_mbstowcs, |
| 345 | StatInt_mbsrtowcs, |
| 346 | StatInt_mbsnrtowcs, |
| 347 | StatInt_wcstombs, |
| 348 | StatInt_wcsrtombs, |
| 349 | StatInt_wcsnrtombs, |
Evgeniy Stepanov | ea72768 | 2013-07-04 14:03:31 +0000 | [diff] [blame] | 350 | StatInt_tcgetattr, |
Evgeniy Stepanov | 12eb79d | 2013-07-09 09:53:37 +0000 | [diff] [blame] | 351 | StatInt_realpath, |
| 352 | StatInt_canonicalize_file_name, |
Evgeniy Stepanov | 5ec19bc | 2013-07-30 12:46:59 +0000 | [diff] [blame] | 353 | StatInt_confstr, |
Evgeniy Stepanov | 84ba74c | 2013-08-07 09:10:16 +0000 | [diff] [blame] | 354 | StatInt_sched_getaffinity, |
Evgeniy Stepanov | 1204979 | 2013-08-08 11:44:05 +0000 | [diff] [blame] | 355 | StatInt_strerror, |
| 356 | StatInt_strerror_r, |
Evgeniy Stepanov | 224226c | 2013-08-08 13:57:15 +0000 | [diff] [blame] | 357 | StatInt_scandir, |
| 358 | StatInt_scandir64, |
Evgeniy Stepanov | edff34b | 2013-08-12 11:01:40 +0000 | [diff] [blame] | 359 | StatInt_getgroups, |
Evgeniy Stepanov | c5a3855 | 2013-09-24 14:38:22 +0000 | [diff] [blame] | 360 | StatInt_wordexp, |
Evgeniy Stepanov | 9a949a8 | 2013-09-25 14:47:43 +0000 | [diff] [blame] | 361 | StatInt_sigwait, |
| 362 | StatInt_sigwaitinfo, |
| 363 | StatInt_sigtimedwait, |
| 364 | StatInt_sigemptyset, |
| 365 | StatInt_sigfillset, |
| 366 | StatInt_sigpending, |
| 367 | StatInt_sigprocmask, |
Evgeniy Stepanov | 1394be1 | 2013-09-27 12:40:23 +0000 | [diff] [blame] | 368 | StatInt_backtrace, |
| 369 | StatInt_backtrace_symbols, |
Dmitry Vyukov | 4af0f21 | 2013-10-03 13:37:17 +0000 | [diff] [blame] | 370 | StatInt_dlopen, |
| 371 | StatInt_dlclose, |
Evgeniy Stepanov | 4d7297d | 2013-10-18 09:41:43 +0000 | [diff] [blame] | 372 | StatInt_getmntent, |
| 373 | StatInt_getmntent_r, |
Evgeniy Stepanov | 5cee73e | 2013-10-18 11:14:16 +0000 | [diff] [blame] | 374 | StatInt_statfs, |
| 375 | StatInt_statfs64, |
| 376 | StatInt_fstatfs, |
| 377 | StatInt_fstatfs64, |
| 378 | StatInt_statvfs, |
| 379 | StatInt_statvfs64, |
| 380 | StatInt_fstatvfs, |
| 381 | StatInt_fstatvfs64, |
Evgeniy Stepanov | 285d458 | 2013-10-22 12:24:48 +0000 | [diff] [blame] | 382 | StatInt_initgroups, |
Evgeniy Stepanov | 369a9a6 | 2013-10-23 13:57:47 +0000 | [diff] [blame^] | 383 | StatInt_ether_ntoa, |
| 384 | StatInt_ether_aton, |
| 385 | StatInt_ether_ntoa_r, |
| 386 | StatInt_ether_aton_r, |
| 387 | StatInt_ether_ntohost, |
| 388 | StatInt_ether_hostton, |
| 389 | StatInt_ether_line, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 390 | |
| 391 | // Dynamic annotations. |
| 392 | StatAnnotation, |
| 393 | StatAnnotateHappensBefore, |
| 394 | StatAnnotateHappensAfter, |
| 395 | StatAnnotateCondVarSignal, |
| 396 | StatAnnotateCondVarSignalAll, |
| 397 | StatAnnotateMutexIsNotPHB, |
| 398 | StatAnnotateCondVarWait, |
| 399 | StatAnnotateRWLockCreate, |
Dmitry Vyukov | c20e9ba | 2012-08-16 13:29:41 +0000 | [diff] [blame] | 400 | StatAnnotateRWLockCreateStatic, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 401 | StatAnnotateRWLockDestroy, |
| 402 | StatAnnotateRWLockAcquired, |
| 403 | StatAnnotateRWLockReleased, |
| 404 | StatAnnotateTraceMemory, |
| 405 | StatAnnotateFlushState, |
| 406 | StatAnnotateNewMemory, |
| 407 | StatAnnotateNoOp, |
| 408 | StatAnnotateFlushExpectedRaces, |
| 409 | StatAnnotateEnableRaceDetection, |
| 410 | StatAnnotateMutexIsUsedAsCondVar, |
| 411 | StatAnnotatePCQGet, |
| 412 | StatAnnotatePCQPut, |
| 413 | StatAnnotatePCQDestroy, |
| 414 | StatAnnotatePCQCreate, |
| 415 | StatAnnotateExpectRace, |
| 416 | StatAnnotateBenignRaceSized, |
| 417 | StatAnnotateBenignRace, |
| 418 | StatAnnotateIgnoreReadsBegin, |
| 419 | StatAnnotateIgnoreReadsEnd, |
| 420 | StatAnnotateIgnoreWritesBegin, |
| 421 | StatAnnotateIgnoreWritesEnd, |
Dmitry Vyukov | e1ddbf9 | 2013-10-10 15:58:12 +0000 | [diff] [blame] | 422 | StatAnnotateIgnoreSyncBegin, |
| 423 | StatAnnotateIgnoreSyncEnd, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 424 | StatAnnotatePublishMemoryRange, |
| 425 | StatAnnotateUnpublishMemoryRange, |
| 426 | StatAnnotateThreadName, |
| 427 | |
| 428 | // Internal mutex contentionz. |
| 429 | StatMtxTotal, |
| 430 | StatMtxTrace, |
| 431 | StatMtxThreads, |
| 432 | StatMtxReport, |
| 433 | StatMtxSyncVar, |
| 434 | StatMtxSyncTab, |
| 435 | StatMtxSlab, |
| 436 | StatMtxAnnotations, |
| 437 | StatMtxAtExit, |
Dmitry Vyukov | ad9da37 | 2012-12-06 12:16:15 +0000 | [diff] [blame] | 438 | StatMtxMBlock, |
Dmitry Vyukov | f4e4f93 | 2012-12-21 11:30:14 +0000 | [diff] [blame] | 439 | StatMtxJavaMBlock, |
Dmitry Vyukov | 52c70e5 | 2013-02-04 08:06:32 +0000 | [diff] [blame] | 440 | StatMtxFD, |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 441 | |
| 442 | // This must be the last. |
Alexey Samsonov | 2135d8a | 2012-09-13 11:54:41 +0000 | [diff] [blame] | 443 | StatCnt |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 444 | }; |
| 445 | |
| 446 | } // namespace __tsan |
| 447 | |
| 448 | #endif // TSAN_STAT_H |