Home
last modified time | relevance | path

Searched refs:waitinfo (Results 1 – 23 of 23) sorted by relevance

/xnu-11215/osfmk/kern/
H A Dblock_hint.h79 …rn void kdp_lck_mtx_find_owner(struct waitq * waitq, event64_t event, thread_waitinfo_t *waitinfo);
80 extern void kdp_sema_find_owner(struct waitq * waitq, event64_t event, thread_waitinfo_t *waitinfo);
81 …d kdp_mqueue_send_find_owner(struct waitq * waitq, event64_t event, thread_waitinfo_v2_t *waitinfo,
83 …d kdp_mqueue_recv_find_owner(struct waitq * waitq, event64_t event, thread_waitinfo_v2_t *waitinfo,
85 extern void kdp_ulock_find_owner(struct waitq * waitq, event64_t event, thread_waitinfo_t *waitinfo…
86 extern void kdp_rwlck_find_owner(struct waitq * waitq, event64_t event, thread_waitinfo_t *waitinfo…
87 extern void kdp_pthread_find_owner(thread_t thread, thread_waitinfo_t *waitinfo);
89 …d kdp_workloop_sync_wait_find_owner(thread_t thread, event64_t event, thread_waitinfo_t *waitinfo);
90 extern void kdp_wait4_find_process(thread_t thread, event64_t event, thread_waitinfo_t *waitinfo);
96 void kdp_eventlink_find_owner(struct waitq *waitq, event64_t event, thread_waitinfo_t *waitinfo);
[all …]
H A Depoch_sync.c398 thread_waitinfo_t *waitinfo) in kdp_esync_find_owner() argument
401 waitinfo->context = esync->es_id; in kdp_esync_find_owner()
408 waitinfo->owner = thread_tid(turnstile->ts_inheritor); in kdp_esync_find_owner()
H A Dsync_sema.c1139 …p_sema_find_owner(struct waitq *waitq, __assert_only event64_t event, thread_waitinfo_t * waitinfo) in kdp_sema_find_owner() argument
1146 waitinfo->context = VM_KERNEL_UNSLIDE_OR_PERM(sem->port); in kdp_sema_find_owner()
1148 waitinfo->owner = pid_from_task(sem->owner); in kdp_sema_find_owner()
H A Dlock_mtx.c1368 thread_waitinfo_t *waitinfo) in kdp_lck_mtx_find_owner() argument
1374 waitinfo->context = VM_KERNEL_UNSLIDE_OR_PERM(mutex); in kdp_lck_mtx_find_owner()
1375 waitinfo->owner = thread_tid(ctid_get_thread(state.owner)); in kdp_lck_mtx_find_owner()
H A Dkern_stackshot.c6049 stackshot_thread_wait_owner_info(thread_t thread, thread_waitinfo_v2_t *waitinfo) in stackshot_thread_wait_owner_info() argument
6051 thread_waitinfo_t *waitinfo_v1 = (thread_waitinfo_t *)waitinfo; in stackshot_thread_wait_owner_info()
6054 waitinfo->waiter = thread_tid(thread); in stackshot_thread_wait_owner_info()
6055 waitinfo->wait_type = thread->block_hint; in stackshot_thread_wait_owner_info()
6056 waitinfo->wait_flags = 0; in stackshot_thread_wait_owner_info()
6058 switch (waitinfo->wait_type) { in stackshot_thread_wait_owner_info()
6063 kdp_mqueue_recv_find_owner(thread->waitq.wq_q, thread->wait_event, waitinfo, &ispl); in stackshot_thread_wait_owner_info()
6064 waitinfo->portlabel_id = stackshot_plh_lookup(ispl, STACKSHOT_PLH_LOOKUP_RECEIVE); in stackshot_thread_wait_owner_info()
6068 waitinfo->portlabel_id = stackshot_plh_lookup(ispl, STACKSHOT_PLH_LOOKUP_SEND); in stackshot_thread_wait_owner_info()
6120 waitinfo->owner = 0; in stackshot_thread_wait_owner_info()
[all …]
H A Dlock_rw.c2465 thread_waitinfo_t *waitinfo) in kdp_rwlck_find_owner() argument
2468 switch (waitinfo->wait_type) { in kdp_rwlck_find_owner()
2480 waitinfo->context = VM_KERNEL_UNSLIDE_OR_PERM(rwlck); in kdp_rwlck_find_owner()
2481 waitinfo->owner = thread_tid(ctid_get_thread(rwlck->lck_rw_owner)); in kdp_rwlck_find_owner()
H A Dlocks.c1672 …_inheritor_find_owner(struct waitq * waitq, __unused event64_t event, thread_waitinfo_t * waitinfo) in kdp_sleep_with_inheritor_find_owner() argument
1674 assert(waitinfo->wait_type == kThreadWaitSleepWithInheritor); in kdp_sleep_with_inheritor_find_owner()
1676 waitinfo->owner = 0; in kdp_sleep_with_inheritor_find_owner()
1677 waitinfo->context = 0; in kdp_sleep_with_inheritor_find_owner()
1685 waitinfo->owner = thread_tid(turnstile->ts_inheritor); in kdp_sleep_with_inheritor_find_owner()
/xnu-11215/tests/
H A Dstackshot_block_owner_14362384.m176 // waitinfo can be NULL, but len must be non-null and point to the length of the waitinfo array.
225 if (waitinfo && *len < oldlen) {
568 struct stackshot_thread_waitinfo waitinfo = { 0 };
607 struct stackshot_thread_waitinfo waitinfo = { 0 };
660 struct stackshot_thread_waitinfo waitinfo = { 0 };
750 struct stackshot_thread_waitinfo waitinfo = { 0 };
778 T_EXPECT_EQ(waitinfo.owner, thread_id,
780 T_EXPECT_EQ(waitinfo.context, (uint64_t)&mtx,
812 T_EXPECT_EQ(waitinfo.context, (uint64_t)&rwlck,
845 T_EXPECT_EQ(waitinfo.context, (uint64_t)&cond,
[all …]
H A Dstackshot_tests.m1698 T_DECL(cseg_waitinfo, "test that threads stuck in the compressor report correct waitinfo", T_META_T…
1897 T_DECL(special_reply_port, "test that tasks using special reply ports have correct waitinfo", T_MET…
3280 "SRP waitinfo should be marked as a special reply");
3535 T_QUIET; T_ASSERT_TRUE(found_cseg_waitinfo, "found c_seg waitinfo");
3539 T_QUIET; T_ASSERT_TRUE(found_srp_waitinfo, "found special reply port waitinfo");
/xnu-11215/osfmk/ipc/
H A Dipc_eventlink.c1122 thread_waitinfo_t *waitinfo) in kdp_eventlink_find_owner() argument
1124 assert(waitinfo->wait_type == kThreadWaitEventlink); in kdp_eventlink_find_owner()
1125 waitinfo->owner = 0; in kdp_eventlink_find_owner()
1126 waitinfo->context = 0; in kdp_eventlink_find_owner()
1137 waitinfo->owner = thread_tid(ipc_eventlink_base->elb_eventlink[1].el_thread); in kdp_eventlink_find_owner()
1139 waitinfo->owner = 0; in kdp_eventlink_find_owner()
1144 waitinfo->owner = thread_tid(ipc_eventlink_base->elb_eventlink[0].el_thread); in kdp_eventlink_find_owner()
1146 waitinfo->owner = 0; in kdp_eventlink_find_owner()
H A Dipc_port.c3284 thread_waitinfo_v2_t *waitinfo, in kdp_mqueue_send_find_owner() argument
3288 assert(waitinfo->wait_type == kThreadWaitPortSend); in kdp_mqueue_send_find_owner()
3297 waitinfo->owner = 0; in kdp_mqueue_send_find_owner()
3304 waitinfo->owner = STACKSHOT_WAITOWNER_PORT_LOCKED; in kdp_mqueue_send_find_owner()
3323 waitinfo->owner = STACKSHOT_WAITOWNER_INTRANSIT; in kdp_mqueue_send_find_owner()
3332 waitinfo->owner = STACKSHOT_WAITOWNER_KERNEL; in kdp_mqueue_send_find_owner()
3363 thread_waitinfo_v2_t *waitinfo, in kdp_mqueue_recv_find_owner() argument
3369 waitinfo->owner = 0; in kdp_mqueue_recv_find_owner()
3377 waitinfo->wait_type = kThreadWaitPortSetReceive; in kdp_mqueue_recv_find_owner()
3396 waitinfo->owner = ip_get_receiver_name(port); in kdp_mqueue_recv_find_owner()
[all …]
/xnu-11215/bsd/kern/
H A Dsys_ulock.c1081 kdp_ulock_find_owner(__unused struct waitq * waitq, event64_t event, thread_waitinfo_t * waitinfo) in kdp_ulock_find_owner() argument
1090 waitinfo->owner = thread_tid(ull->ull_owner); in kdp_ulock_find_owner()
1091 waitinfo->context = ull->ull_key.ulk_addr; in kdp_ulock_find_owner()
1097 waitinfo->owner = 0; in kdp_ulock_find_owner()
1098 waitinfo->context = ull->ull_key.ulk_addr; in kdp_ulock_find_owner()
H A Dkern_exit.c3503 kdp_wait4_find_process(thread_t thread, __unused event64_t wait_event, thread_waitinfo_t *waitinfo) in kdp_wait4_find_process() argument
3506 assert(waitinfo != NULL); in kdp_wait4_find_process()
3509 waitinfo->context = 0; in kdp_wait4_find_process()
3515 waitinfo->owner = args->pid; in kdp_wait4_find_process()
H A Dkern_event.c2609 event64_t event, thread_waitinfo_t *waitinfo) in kdp_workloop_sync_wait_find_owner() argument
2629 waitinfo->owner = thread_tid(kqwl->kqwl_owner); in kdp_workloop_sync_wait_find_owner()
2632 waitinfo->owner = thread_tid(kqr->tr_thread); in kdp_workloop_sync_wait_find_owner()
2634 waitinfo->owner = STACKSHOT_WAITOWNER_THREQUESTED; in kdp_workloop_sync_wait_find_owner()
2636 waitinfo->owner = 0; in kdp_workloop_sync_wait_find_owner()
2639 waitinfo->context = kqwl->kqwl_dynamicid; in kdp_workloop_sync_wait_find_owner()
/xnu-11215/libkdd/kdd.xcodeproj/
H A Dproject.pbxproj25 …08B /* stackshot-with-waitinfo in Resources */ = {isa = PBXBuildFile; fileRef = 04C64AC91D25C43400…
26 …* stackshot-with-waitinfo.plist.gz in Resources */ = {isa = PBXBuildFile; fileRef = 04C64ACA1D25C4…
181 …ot-with-waitinfo */ = {isa = PBXFileReference; lastKnownFileType = file; name = "stackshot-with-wa…
182 …waitinfo.plist.gz */ = {isa = PBXFileReference; lastKnownFileType = archive.gzip; name = "stacksho…
366 04C64AC91D25C43400C6C781 /* stackshot-with-waitinfo */,
367 04C64ACA1D25C43400C6C781 /* stackshot-with-waitinfo.plist.gz */,
666 045F7F131D2ADE8000B4808B /* stackshot-with-waitinfo.plist.gz in Resources */,
667 045F7F121D2ADE7C00B4808B /* stackshot-with-waitinfo in Resources */,
/xnu-11215/bsd/pthread/
H A Dpthread_shims.c490 kdp_pthread_find_owner(thread_t thread, struct stackshot_thread_waitinfo *waitinfo) in kdp_pthread_find_owner() argument
493 pthread_functions->pthread_find_owner(thread, waitinfo); in kdp_pthread_find_owner()
/xnu-11215/osfmk/vm/
H A Dvm_object_xnu.h548 thread_waitinfo_t *waitinfo);
H A Dvm_compressor_xnu.h420 extern void kdp_compressor_busy_find_owner(event64_t wait_event, thread_waitinfo_t *waitinfo);
H A Dvm_page.h1266 thread_waitinfo_t *waitinfo);
H A Dvm_object.c8029 thread_waitinfo_t *waitinfo) argument
8034 waitinfo->context = VM_KERNEL_ADDRPERM(object);
8039 waitinfo->owner = 0;
8184 kdp_vm_page_sleep_find_owner(event64_t wait_event, thread_waitinfo_t *waitinfo) argument
8187 waitinfo->context = VM_KERNEL_ADDRPERM(m);
8192 waitinfo->owner = 0;
H A Dvm_compressor.c1591 kdp_compressor_busy_find_owner(event64_t wait_event, thread_waitinfo_t *waitinfo) in kdp_compressor_busy_find_owner() argument
1595 waitinfo->owner = thread_tid(c_seg->c_busy_for_thread); in kdp_compressor_busy_find_owner()
1596 waitinfo->context = VM_KERNEL_UNSLIDE_OR_PERM(c_seg); in kdp_compressor_busy_find_owner()
/xnu-11215/osfmk/i386/
H A Dlocks_i386.c2224 kdp_lck_mtx_find_owner(__unused struct waitq * waitq, event64_t event, thread_waitinfo_t * waitinfo) in kdp_lck_mtx_find_owner() argument
2227 waitinfo->context = VM_KERNEL_UNSLIDE_OR_PERM(mutex); in kdp_lck_mtx_find_owner()
2228 waitinfo->owner = thread_tid(ctid_get_thread(mutex->lck_mtx_owner)); in kdp_lck_mtx_find_owner()
/xnu-11215/bsd/sys/
H A Dpthread_shims.h117 void (*pthread_find_owner)(thread_t thread, struct stackshot_thread_waitinfo *waitinfo);