| /xnu-11215/tests/ |
| H A D | ioperf.c | 104 create_thread(uint32_t thread_id, uint32_t priority, bool fixpri, in create_thread() argument 123 (void*)(uintptr_t)thread_id), "pthread_create"); in create_thread() 127 threads[thread_id].thread = new_thread; in create_thread() 151 uint32_t thread_id = (uint32_t) arg; in spin_thread() local 154 snprintf(name, sizeof(name), "spin thread %2d", thread_id); in spin_thread() 234 for (uint32_t thread_id = 0; thread_id < n_spinners; thread_id++) { variable 235 threads[thread_id].thread = create_thread(thread_id, THR_SPINNER_PRI, 239 for (uint32_t thread_id = 0; thread_id < n_spinners; thread_id++) { variable 250 for (uint32_t thread_id = 0; thread_id < n_spinners; thread_id++) { variable 251 T_ASSERT_POSIX_ZERO(pthread_join(threads[thread_id].thread, NULL), [all …]
|
| H A D | arm_matrix.c | 149 uint32_t thread_id; member 212 bool ret = thread->thread_fn(thread->ops, thread->thread_id); in test_thread_shim() 226 threads[i].thread_id = i; in test_on_each_cpu() 250 active_context_switch_thread(const struct arm_matrix_operations *ops, uint32_t thread_id) in active_context_switch_thread() argument 254 memset(d1, (char)thread_id, size); in active_context_switch_thread() 285 inactive_context_switch_thread(const struct arm_matrix_operations *ops, uint32_t thread_id) in inactive_context_switch_thread() argument 289 memset(d1, (char)thread_id, size); in inactive_context_switch_thread()
|
| H A D | task_vm_info_decompressions.c | 78 int thread_id = targs->id; in worker_thread_function() local 83 T_EXPECT_NOTNULL(array, "thread %d allocated heap memory to be dirtied", thread_id); in worker_thread_function() 91 …T_LOG("thread %d phase 1: dirtying %d heap pages (%d bytes)", thread_id, MALLOC_SIZE_PER_THREAD / … in worker_thread_function() 101 T_LOG("thread %d phase 2: faulting pages back in to trigger decompressions", thread_id); in worker_thread_function() 111 if (thread_id < 2) { in worker_thread_function()
|
| H A D | turnstile_multihop_helper.h | 78 u32 thread_id = _os_get_self() & ~0x3u; in ull_lock() local 79 u32 ull_locked = (opcode == UL_UNFAIR_LOCK) ? thread_id : 4u; in ull_lock() 154 u32 thread_id = _os_get_self() & ~0x3u; in ull_unlock() local 155 u32 ull_locked = (opcode == UL_UNFAIR_LOCK) ? thread_id : 4u; in ull_unlock()
|
| H A D | exc_helpers.c | 67 uint64_t thread_id, 132 uint64_t thread_id, in catch_mach_exception_raise_state_identity_protected() argument 161 exc_handler_state_protected_callback(task_id_token, thread_id, type, codes_64, in_state, in catch_mach_exception_raise_state_identity_protected() 172 uint64_t thread_id, in catch_mach_exception_raise_identity_protected() argument 190 exc_handler_protected_callback(task_id_token, thread_id, exception, codes_64); in catch_mach_exception_raise_identity_protected()
|
| H A D | perf_vmfault.c | 77 static void fault_pages(int thread_id); 257 fault_pages(int thread_id) in fault_pages() argument 262 block = memregion_config_per_thread[thread_id].shared_region_addr ? in fault_pages() 263 memregion_config_per_thread[thread_id].shared_region_addr : in fault_pages() 264 memregion_config_per_thread[thread_id].region_addr; in fault_pages() 265 for (ptr = block; ptr < block + memregion_config_per_thread[thread_id].region_len; ptr += pgsize) { in fault_pages()
|
| H A D | reply_port_defense.c | 91 uint64_t thread_id, in catch_mach_exception_raise_state_identity_protected() argument 102 #pragma unused(exception_port, thread_id, task_id_token, exception, codes, codeCnt) in catch_mach_exception_raise_state_identity_protected() 111 uint64_t thread_id, in catch_mach_exception_raise_identity_protected() argument 117 #pragma unused(exception_port, thread_id, task_id_token) in catch_mach_exception_raise_identity_protected()
|
| H A D | stackshot_block_owner_14362384.m | 521 uint64_t thread_id = 0; 534 …ret = pthread_threadid_np(waiting, &thread_id); // this is the thread that currently holds the ker… 656 uint64_t thread_id = 0; 679 ret = pthread_threadid_np(NULL, &thread_id); // this thread is the "owner" of the ulock 683 check_python(stackshot, __func__, "thread \\d+: unfair lock \\w+ owned by thread %lld", thread_id); 693 uint64_t thread_id = 0; 729 (void)thread_id; // suppress compiler warning about unused variable 748 uint64_t thread_id = 0; 756 ret = pthread_threadid_np(NULL, &thread_id); // this thread is the "owner" of the mutex 766 …thon(stackshot, __func__, "thread \\d+: pthread mutex %llx owned by thread %lld", &mtx, thread_id); [all …]
|
| H A D | corpse_backtrace.c | 175 uint64_t thread_id = *(uint64_t *)(kcdata_iter_payload(btdata)); in exc_handler_backtrace() local 176 T_LOG("Found TASK_BTINFO_THREAD_ID: 0x%lx", thread_id); in exc_handler_backtrace() 196 __unused uint64_t thread_id, in exc_handler_identity_protected() argument
|
| /xnu-11215/tools/tests/perf_index/ |
| H A D | test_file_helper.c | 30 test_file_create(char* path, int thread_id, int num_threads, long long length) in test_file_create() argument 38 snprintf(filepath, MAXPATHLEN, "%s/file_create-%d-%lld", path, thread_id, i); in test_file_create() 46 snprintf(filepath, MAXPATHLEN, "%s/file_create-%d-%lld", path, thread_id, i); in test_file_create() 87 test_file_read(char* path, int thread_id, int num_threads, long long length, long long max_file_siz… in test_file_read() argument 166 test_file_write(char* path, int thread_id, int num_threads, long long length, long long max_file_si… in test_file_write() argument 172 int fd = fds[thread_id]; in test_file_write()
|
| H A D | test_file_helper.h | 8 int test_file_create(char* path, int thread_id, int num_threads, long long length); 10 int test_file_read(char* path, int thread_id, int num_threads, long long length, long long max_file… 13 int test_file_write(char* path, int thread_id, int num_threads, long long length, long long max_fil…
|
| H A D | test_fault_helper.c | 43 test_fault_helper(int thread_id, int num_threads, long long length, testtype_t testtype) in test_fault_helper() argument 51 long long region_start = region_len * thread_id; in test_fault_helper() 54 if (thread_id < num_pages % num_threads) { in test_fault_helper() 55 region_start += thread_id; in test_fault_helper()
|
| H A D | perfindex-memory.c | 64 long long region_start = memsize / num_threads * thread_id / 2; 67 if (thread_id < memsize / 2 % num_threads) { 68 region_start += thread_id;
|
| H A D | perfindex-fault.c | 9 return test_fault_helper(thread_id, num_threads, length, TESTFAULT);
|
| H A D | perfindex-zfod.c | 9 return test_fault_helper(thread_id, num_threads, length, TESTZFOD);
|
| H A D | test_fault_helper.h | 10 int test_fault_helper(int thread_id, int num_threads, long long length, testtype_t testtype);
|
| H A D | perf_index.h | 5 #define DECL_TEST int execute(int thread_id, int num_threads, long long length, int test_argc, cons…
|
| /xnu-11215/bsd/kern/ |
| H A D | kdebug_triage.c | 155 uint64_t thread_id, in ktriage_record() argument 161 if (thread_id == 0) { in ktriage_record() 162 thread_id = thread_tid(current_thread()); in ktriage_record() 180 kd_rec.arg5 = (uintptr_t)thread_id; in ktriage_record() 189 uint64_t thread_id, in ktriage_extract() argument 199 if (thread_id == 0 || buf == NULL || bufsz < KDBG_TRIAGE_MAX_STRLEN) { in ktriage_extract() 234 if (kd->arg5 == (uintptr_t)thread_id) { in ktriage_extract()
|
| /xnu-11215/tools/lldbmacros/usertaskdebugging/ |
| H A D | userprocess.py | 39 self.thread_id = unsigned(self.thread.thread_id) 61 % (self.thread_id, self.reg_type, cputype)) 85 return str(self.thread_id) 90 … logging.warning("regnum %d is not defined for thread_id 0x%x" % (reg_num, self.thread_id)) 138 … self.threads[unsigned(thval.thread_id)] = UserThreadObject(thval, self.cputype, self.cpusubtype) 139 self.threads_ids_list.append(unsigned(thval.thread_id))
|
| /xnu-11215/tests/ipc/ |
| H A D | sys_perf_notify_test.c | 67 uint64_t thread_id, in catch_mach_exception_raise_state_identity_protected() argument 78 #pragma unused(exception_port, thread_id, tatask_id_tokensk, exception, codes, codeCnt, flavor, old… in catch_mach_exception_raise_state_identity_protected() 86 uint64_t thread_id, in catch_mach_exception_raise_identity_protected() argument 92 #pragma unused(thread_id, task_id_token) in catch_mach_exception_raise_identity_protected()
|
| H A D | kernel_signed_pac_thread_state.c | 114 uint64_t thread_id, 140 uint64_t thread_id, in catch_mach_exception_raise_identity_protected() argument 146 #pragma unused(exception_port, thread_id, task_id_token, exception, codes, codeCnt) in catch_mach_exception_raise_identity_protected()
|
| H A D | hardened_exceptions.c | 64 uint64_t thread_id, in exc_handler_state_identity_protected() argument 76 #pragma unused(thread_id) in exc_handler_state_identity_protected()
|
| /xnu-11215/tests/sched/sched_test_harness/shadow_headers/ |
| H A D | misc_needed_deps.c | 57 uint64_t thread_id; /* system wide unique thread-id */ member 110 return thread != THREAD_NULL? thread->thread_id: 0; in thread_tid()
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | scheduler.py | 362 thread_id = 0 368 thread_id = active_thread.thread_id 383 …time_since_dispatch_us, time_since_debugger_us, t=active_thread, thread_id=thread_id, proc_name=pr… 386 …read_id:<8x} {proc_name:s}".format(last_dispatch, t=active_thread, thread_id=thread_id, proc_name=… 1015 thread_id = thread.thread_id 1018 … extra_string += "workloop thread: {:#x} ({:#x}) {:s}".format(thread, thread_id, thread_name) 1181 print(" {:#20x} {:#12x} {:s}".format(thread, thread.thread_id, GetThreadName(thread)))
|
| /xnu-11215/libkern/firehose/ |
| H A D | chunk_private.h | 165 uint16_t pubsize, uint64_t thread_id, long offset) in firehose_chunk_tracepoint_begin() argument 176 ft->ft_thread = thread_id; in firehose_chunk_tracepoint_begin()
|