/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 | 165 ACPI_THREAD_STATE *Thread); 184 ACPI_THREAD_STATE *Thread = ObjDesc->Mutex.OwnerThread; 187 if (!Thread) 214 Thread->AcquiredMutexList = ObjDesc->Mutex.Next; 224 * Thread - Current executing thread object 235 ACPI_THREAD_STATE *Thread) 240 ListHead = Thread->AcquiredMutexList; 256 Thread->AcquiredMutexList = ObjDesc; 266 * ThreadId - Current thread stat [all...] |
/src/sys/external/bsd/acpica/dist/dispatcher/ |
dsdebug.c | 246 ACPI_THREAD_STATE *Thread; 272 * If there is no Thread, we are not actually executing a method. 276 Thread = WalkState->Thread; 277 if (!Thread) 294 NextWalkState = Thread->WalkStateList;
|
dswstate.c | 592 * PARAMETERS: Thread - Get current active state for this Thread 603 ACPI_THREAD_STATE *Thread) 608 if (!Thread) 614 Thread->WalkStateList)); 616 return (Thread->WalkStateList); 625 * Thread - Thread state object 629 * DESCRIPTION: Place the Thread state at the head of the state list 636 ACPI_THREAD_STATE *Thread) [all...] |
dsmethod.c | 454 * increments the thread count, and waits at the method semaphore 478 /* Prevent wraparound of thread count */ 507 * The CurrentSyncLevel (per-thread) must be less than or equal to 519 (WalkState->Thread->CurrentSyncLevel > 526 WalkState->Thread->CurrentSyncLevel)); 537 (WalkState->Thread->ThreadId != 556 WalkState->Thread->CurrentSyncLevel; 559 WalkState->Thread->ThreadId; 571 WalkState->Thread->CurrentSyncLevel = 591 * 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 | 565 ACPI_THREAD_STATE *Thread; 582 /* Create and initialize a new thread state */ 584 Thread = AcpiUtCreateThreadState (); 585 if (!Thread) 598 WalkState->Thread = Thread; 606 WalkState->Thread->CurrentSyncLevel = 610 AcpiDsPushWalkState (WalkState, Thread); 616 AcpiGbl_CurrentWalkList = Thread; 658 Status = AcpiDsCallControlMethod (Thread, WalkState, NULL) [all...] |
/src/sys/external/bsd/acpica/dist/utilities/ |
utstate.c | 264 * RETURN: New Thread State. NULL on failure 266 * DESCRIPTION: Create a "Thread State" - a flavor of the generic state used 267 * to track per-thread info during method execution 292 State->Thread.ThreadId = AcpiOsGetThreadId (); 294 /* Check for invalid thread ID - zero is very bad, it will break things */ 296 if (!State->Thread.ThreadId) 299 State->Thread.ThreadId = (ACPI_THREAD_ID) 1;
|
/src/sys/external/bsd/acpica/dist/include/ |
acdispat.h | 374 ACPI_THREAD_STATE *Thread, 541 ACPI_THREAD_STATE *Thread); 564 ACPI_THREAD_STATE *Thread); 569 ACPI_THREAD_STATE *Thread); 577 ACPI_THREAD_STATE *Thread);
|
/src/sys/external/bsd/acpica/dist/debugger/ |
dbobject.c | 189 ACPI_THREAD_STATE *Thread; 218 * If there is no Thread, we are not actually executing a method. 222 Thread = WalkState->Thread; 223 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 | 430 ACPI_THREAD_STATE *Thread,
|