Home
last modified time | relevance | path

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

/xnu-12377.1.9/osfmk/kern/
H A Dkern_stackshot.c255 #define plh_lock(plh) while(!os_atomic_cmpxchg(&(plh)->plh_lock, 0, 1, acquire)) { loop_wait(); } argument
256 #define plh_unlock(plh) os_atomic_store(&(plh)->plh_lock, 0, release); argument
2951 struct port_label_hash *plh = &stackshot_ctx.sc_plh; in stackshot_plh_est_size() local
2958 return SIZE_EST(size * sizeof(*plh->plh_array)) + in stackshot_plh_est_size()
2959 SIZE_EST(size * sizeof(*plh->plh_chains)) + in stackshot_plh_est_size()
2961 SIZE_EST((1ul << STACKSHOT_PLH_SHIFT) * sizeof(*plh->plh_hash)); in stackshot_plh_est_size()
2977 struct port_label_hash plh = { in stackshot_plh_setup() local
2994 size = plh.plh_size; in stackshot_plh_setup()
2998 plh.plh_array = stackshot_alloc_with_size(size * sizeof(*plh.plh_array), &error); in stackshot_plh_setup()
2999 plh.plh_chains = stackshot_alloc_with_size(size * sizeof(*plh.plh_chains), &error); in stackshot_plh_setup()
[all …]