Home
last modified time | relevance | path

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

/xnu-11417.121.6/osfmk/kern/
H A Dkern_stackshot.c252 #define plh_lock(plh) while(!os_atomic_cmpxchg(&(plh)->plh_lock, 0, 1, acquire)) { loop_wait(); } argument
253 #define plh_unlock(plh) os_atomic_store(&(plh)->plh_lock, 0, release); argument
2900 struct port_label_hash *plh = &stackshot_ctx.sc_plh; in stackshot_plh_est_size() local
2907 return SIZE_EST(size * sizeof(*plh->plh_array)) + in stackshot_plh_est_size()
2908 SIZE_EST(size * sizeof(*plh->plh_chains)) + in stackshot_plh_est_size()
2910 SIZE_EST((1ul << STACKSHOT_PLH_SHIFT) * sizeof(*plh->plh_hash)); in stackshot_plh_est_size()
2926 struct port_label_hash plh = { in stackshot_plh_setup() local
2943 size = plh.plh_size; in stackshot_plh_setup()
2947 plh.plh_array = stackshot_alloc_with_size(size * sizeof(*plh.plh_array), &error); in stackshot_plh_setup()
2948 plh.plh_chains = stackshot_alloc_with_size(size * sizeof(*plh.plh_chains), &error); in stackshot_plh_setup()
[all …]