| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/dd/ |
| dd_rtl.h | 27 struct Thread { 35 Thread *thr; 37 Callback(Thread *thr); 58 void ThreadInit(Thread *thr); 59 void ThreadDestroy(Thread *thr); 61 void MutexBeforeLock(Thread *thr, uptr m, bool writelock); 62 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock); 63 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock); 64 void MutexDestroy(Thread *thr, uptr m);
|
| dd_rtl.cc | 22 static u32 CurrentStackTrace(Thread *thr, uptr skip) { 32 static void PrintStackTrace(Thread *thr, u32 stk) { 39 static void ReportDeadlock(Thread *thr, DDReport *rep) { 46 Printf("Thread %d locks mutex %llu while holding mutex %llu:\n", 58 Callback::Callback(Thread *thr) 100 void ThreadInit(Thread *thr) { 107 void ThreadDestroy(Thread *thr) { 112 void MutexBeforeLock(Thread *thr, uptr m, bool writelock) { 125 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock) { 138 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock) [all...] |
| /src/sys/external/bsd/acpica/dist/executer/ |
| exmutex.c | 57 ACPI_THREAD_STATE *Thread); 76 ACPI_THREAD_STATE *Thread = ObjDesc->Mutex.OwnerThread; 79 if (!Thread) 106 Thread->AcquiredMutexList = ObjDesc->Mutex.Next; 116 * Thread - Current executing thread object 127 ACPI_THREAD_STATE *Thread) 132 ListHead = Thread->AcquiredMutexList; 148 Thread->AcquiredMutexList = ObjDesc; 158 * ThreadId - Current thread stat [all...] |
| /src/sys/external/bsd/acpica/dist/dispatcher/ |
| dsdebug.c | 138 ACPI_THREAD_STATE *Thread; 164 * If there is no Thread, we are not actually executing a method. 168 Thread = WalkState->Thread; 169 if (!Thread) 186 NextWalkState = Thread->WalkStateList;
|
| dswstate.c | 484 * PARAMETERS: Thread - Get current active state for this Thread 495 ACPI_THREAD_STATE *Thread) 500 if (!Thread) 506 Thread->WalkStateList)); 508 return (Thread->WalkStateList); 517 * Thread - Thread state object 521 * DESCRIPTION: Place the Thread state at the head of the state list 528 ACPI_THREAD_STATE *Thread) [all...] |
| dsmethod.c | 346 * increments the thread count, and waits at the method semaphore 370 /* Prevent wraparound of thread count */ 399 * The CurrentSyncLevel (per-thread) must be less than or equal to 411 (WalkState->Thread->CurrentSyncLevel > 418 WalkState->Thread->CurrentSyncLevel)); 429 (WalkState->Thread->ThreadId != 448 WalkState->Thread->CurrentSyncLevel; 451 WalkState->Thread->ThreadId; 463 WalkState->Thread->CurrentSyncLevel = 483 * Allocate an Owner ID for this method, only if this is the first thread [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
| malloc_stress_transfer_test.cc | 1 #include <thread> 10 void Thread() { 12 // std::cerr << "Thread starting, sp = " << &sp << std::endl; 29 // Thread(); 31 std::thread *Threads[kNumThreads]; 32 for (auto &T : Threads) T = new std::thread(&Thread);
|
| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/benchmarks/ |
| start_many_threads.cc | 19 void* Thread(void *unused) { 40 int status = pthread_create(&t[i], 0, Thread, (void*)i);
|
| mini_bench_local.cc | 17 void *Thread(void *arg) { 19 printf("Thread %ld started\n", idx); 22 printf("Thread %ld done\n", idx); 41 pthread_create(&t[i], 0, Thread, (void*)i);
|
| mini_bench_shared.cc | 17 void *Thread(void *arg) { 19 printf("Thread %ld started\n", idx); 22 printf("Thread %ld done\n", idx); 43 pthread_create(&t[i], 0, Thread, (void*)i);
|
| vts_many_threads_bench.cc | 54 void *Thread(void *arg) { 58 // Wait for the main thread to join the garbage threads. 61 printf("Thread %ld go!\n", idx); 67 printf("Thread %ld done\n", idx); 101 int status = pthread_create(&t[i], 0, Thread, (void*)i);
|
| /src/tests/usr.bin/c++/ |
| t_tsan_data_race.sh | 36 atf_set "descr" "Test thread sanitizer for data race condition" 43 atf_set "descr" "Test thread sanitizer for data race with profiling option" 49 atf_set "descr" "Test thread sanitizer for data race with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for data race with position independent execution (PIE) flag" 64 void *Thread(void *a) { pthread_barrier_wait(&barrier); GlobalData = 42; return 0; } 68 pthread_create(&t, NULL, Thread, NULL); 76 c++ -fsanitize=thread -o test test.cc 86 void *Thread(void *a) { pthread_barrier_wait(&barrier); GlobalData = 42; return 0; } 90 pthread_create(&t, NULL, Thread, NULL); 98 c++ -fsanitize=thread -static -o test -pg test.c [all...] |
| t_tsan_heap_use_after_free.sh | 53 atf_set "descr" "Test thread sanitizer for use-after-free condition" 60 atf_set "descr" "Test thread sanitizer for use-after-free with profiling option" 66 atf_set "descr" "Test thread sanitizer for use-after-free with position independent code (PIC) flag" 72 atf_set "descr" "Test thread sanitizer for use-after-free with position independent execution (PIE) flag" 84 void *Thread(void *a) { 94 pthread_create(&t, NULL, Thread, NULL); 102 c++ -fsanitize=thread -o test test.cc 115 void *Thread(void *a) { 125 pthread_create(&t, NULL, Thread, NULL); 133 c++ -fsanitize=thread -static -o test -pg test.c [all...] |
| t_tsan_locked_mutex_destroy.sh | 37 atf_set "descr" "Test thread sanitizer for destroying locked mutex condition" 44 atf_set "descr" "Test thread sanitizer for destroying locked mutex with profiling option" 50 atf_set "descr" "Test thread sanitizer for destroying locked mutex with position independent code (PIC) flag" 56 atf_set "descr" "Test thread sanitizer for destroying locked mutex with position independent execution (PIE) flag" 68 void *Thread(void *a) { 78 pthread_create(&t, NULL, Thread, NULL); 86 c++ -fsanitize=thread -o test test.cc 99 void *Thread(void *a) { 109 pthread_create(&t, NULL, Thread, NULL); 117 c++ -fsanitize=thread -static -o test -pg test.c [all...] |
| t_tsan_thread_leak.sh | 36 atf_set "descr" "Test thread sanitizer for thread leak condition" 43 atf_set "descr" "Test thread sanitizer for thread leak with profiling option" 49 atf_set "descr" "Test thread sanitizer for thread leak with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for thread leak with position independent execution (PIE) flag" 67 void *Thread(void *a) { 75 pthread_create(&t, NULL, Thread, NULL) [all...] |
| /src/tests/usr.bin/cc/ |
| t_tsan_data_race.sh | 36 atf_set "descr" "Test thread sanitizer for data race condition" 43 atf_set "descr" "Test thread sanitizer for data race with profiling option" 49 atf_set "descr" "Test thread sanitizer for data race with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for data race with position independent execution (PIE) flag" 64 void *Thread(void *a) { pthread_barrier_wait(&barrier); GlobalData = 42; return 0; } 68 pthread_create(&t, NULL, Thread, NULL); 76 cc -fsanitize=thread -o test test.c 86 void *Thread(void *a) { pthread_barrier_wait(&barrier); GlobalData = 42; return 0; } 90 pthread_create(&t, NULL, Thread, NULL); 98 cc -fsanitize=thread -static -o test -pg test. [all...] |
| t_tsan_heap_use_after_free.sh | 36 atf_set "descr" "Test thread sanitizer for use-after-free condition" 43 atf_set "descr" "Test thread sanitizer for use-after-free with profiling option" 49 atf_set "descr" "Test thread sanitizer for use-after-free with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for use-after-free with position independent execution (PIE) flag" 67 void *Thread(void *a) { 77 pthread_create(&t, NULL, Thread, NULL); 85 cc -fsanitize=thread -o test test.c 98 void *Thread(void *a) { 108 pthread_create(&t, NULL, Thread, NULL); 116 cc -fsanitize=thread -static -o test -pg test. [all...] |
| t_tsan_locked_mutex_destroy.sh | 36 atf_set "descr" "Test thread sanitizer for destroying locked mutex condition" 43 atf_set "descr" "Test thread sanitizer for destroying locked mutex with profiling option" 49 atf_set "descr" "Test thread sanitizer for destroying locked mutex with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for destroying locked mutex with position independent execution (PIE) flag" 67 void *Thread(void *a) { 77 pthread_create(&t, NULL, Thread, NULL); 85 cc -fsanitize=thread -o test test.c 98 void *Thread(void *a) { 108 pthread_create(&t, NULL, Thread, NULL); 116 cc -fsanitize=thread -static -o test -pg test. [all...] |
| t_tsan_thread_leak.sh | 36 atf_set "descr" "Test thread sanitizer for thread leak condition" 43 atf_set "descr" "Test thread sanitizer for thread leak with profiling option" 49 atf_set "descr" "Test thread sanitizer for thread leak with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for thread leak with position independent execution (PIE) flag" 67 void *Thread(void *a) { 75 pthread_create(&t, NULL, Thread, NULL) [all...] |
| /src/sys/external/bsd/acpica/dist/parser/ |
| psparse.c | 457 ACPI_THREAD_STATE *Thread; 474 /* Create and initialize a new thread state */ 476 Thread = AcpiUtCreateThreadState (); 477 if (!Thread) 490 WalkState->Thread = Thread; 498 WalkState->Thread->CurrentSyncLevel = 502 AcpiDsPushWalkState (WalkState, Thread); 508 AcpiGbl_CurrentWalkList = Thread; 550 Status = AcpiDsCallControlMethod (Thread, WalkState, NULL) [all...] |
| /src/sys/external/bsd/acpica/dist/utilities/ |
| utstate.c | 156 * RETURN: New Thread State. NULL on failure 158 * DESCRIPTION: Create a "Thread State" - a flavor of the generic state used 159 * to track per-thread info during method execution 184 State->Thread.ThreadId = AcpiOsGetThreadId (); 186 /* Check for invalid thread ID - zero is very bad, it will break things */ 188 if (!State->Thread.ThreadId) 191 State->Thread.ThreadId = (ACPI_THREAD_ID) 1;
|
| /src/sys/external/bsd/acpica/dist/include/ |
| acdispat.h | 266 ACPI_THREAD_STATE *Thread, 433 ACPI_THREAD_STATE *Thread); 456 ACPI_THREAD_STATE *Thread); 461 ACPI_THREAD_STATE *Thread); 469 ACPI_THREAD_STATE *Thread);
|
| /src/sys/external/bsd/acpica/dist/debugger/ |
| dbobject.c | 81 ACPI_THREAD_STATE *Thread; 110 * If there is no Thread, we are not actually executing a method. 114 Thread = WalkState->Thread; 115 if (!Thread)
|
| /src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/ |
| FuzzerUtilFuchsia.cpp | 24 #include <thread> 41 // handler is the most involved, as it requires resuming the crashed thread in 91 // to allow the exception handling thread to gather the crash state directly. 223 // Once the port is set, we can signal the main thread to continue and wait 240 // At this point, we want to get the state of the crashing thread, but 241 // libFuzzer and the sanitizers assume this will happen from that same thread 242 // via a POSIX signal handler. "Resurrecting" the thread in the middle of the 246 ScopedHandle Thread; 248 ZX_RIGHT_SAME_RIGHTS, &Thread.Handle), 252 ExitOnErr(_zx_thread_read_state(Thread.Handle, ZX_THREAD_STATE_GENERAL_REGS [all...] |
| /src/sys/external/bsd/acpica/dist/compiler/ |
| aslstubs.c | 322 ACPI_THREAD_STATE *Thread,
|