Lines Matching refs:dtrace_lock
224 * (1) dtrace_lock is required to manipulate essentially any DTrace state,
226 * etc. Importantly, dtrace_lock is _not_ required when in probe context;
237 * dtrace_provider_lock before dtrace_lock. (In particular, there are
240 * grabbing dtrace_lock.)
243 * to dtrace_provider_lock and dtrace_lock, cpu_lock continues its historical
248 * acquired _between_ dtrace_provider_lock and dtrace_lock.
268 static lck_mtx_t dtrace_lock; /* probe state lock */
6567 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
6804 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
6817 lck_mtx_lock(&dtrace_lock);
6835 * will acquire cpu_lock and dtrace_lock. We therefore need
6838 lck_mtx_unlock(&dtrace_lock);
6845 lck_mtx_unlock(&dtrace_lock);
6872 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
6885 lck_mtx_lock(&dtrace_lock);
6897 lck_mtx_unlock(&dtrace_lock);
6921 lck_mtx_unlock(&dtrace_lock);
6994 lck_mtx_unlock(&dtrace_lock);
7018 lck_mtx_lock(&dtrace_lock);
7022 lck_mtx_unlock(&dtrace_lock);
7059 lck_mtx_lock(&dtrace_lock);
7093 lck_mtx_unlock(&dtrace_lock);
7121 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
7123 lck_mtx_lock(&dtrace_lock);
7188 lck_mtx_unlock(&dtrace_lock);
7196 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
7234 lck_mtx_lock(&dtrace_lock);
7237 lck_mtx_unlock(&dtrace_lock);
7252 lck_mtx_lock(&dtrace_lock);
7258 lck_mtx_unlock(&dtrace_lock);
7291 * dtrace_lock must _not_ be held -- the provider's dtps_provide() operation
7292 * will need to grab the dtrace_lock when it reenters the framework through
7405 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
7565 * cpu_lock and dtrace_lock; the fact that we are holding
7662 lck_mtx_lock(&dtrace_lock);
7665 lck_mtx_unlock(&dtrace_lock);
7685 lck_mtx_unlock(&dtrace_lock);
7711 lck_mtx_lock(&dtrace_lock);
7721 lck_mtx_unlock(&dtrace_lock);
7728 lck_mtx_unlock(&dtrace_lock);
8359 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
8527 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
8746 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
8859 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
8889 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
8901 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
8976 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
9043 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
9382 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
9656 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
9734 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
9759 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
9864 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
9880 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
9966 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
10298 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
10470 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
10529 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
10563 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
10629 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
10660 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
10707 lck_mtx_lock(&dtrace_lock);
10718 lck_mtx_unlock(&dtrace_lock);
10729 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
10802 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
10817 lck_mtx_unlock(&dtrace_lock);
10819 lck_mtx_lock(&dtrace_lock);
10824 lck_mtx_unlock(&dtrace_lock);
10826 lck_mtx_lock(&dtrace_lock);
10860 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
10917 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_NOTOWNED);
10970 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_NOTOWNED);
11628 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
11906 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
12086 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
12326 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
12447 lck_mtx_lock(&dtrace_lock);
12702 lck_mtx_unlock(&dtrace_lock);
12713 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
12764 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
12826 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
12939 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
12964 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
13243 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
13280 * because we drop dtrace_lock. It's unlikely that we'll make
13303 lck_mtx_unlock(&dtrace_lock);
13318 lck_mtx_lock(&dtrace_lock);
13429 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_NOTOWNED);
13432 lck_mtx_lock(&dtrace_lock);
13453 lck_mtx_unlock(&dtrace_lock);
13462 lck_mtx_unlock(&dtrace_lock);
13473 lck_mtx_unlock(&dtrace_lock);
13496 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
13562 lck_mtx_lock(&dtrace_lock);
13566 lck_mtx_unlock(&dtrace_lock);
13571 lck_mtx_unlock(&dtrace_lock);
13802 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
13893 lck_mtx_unlock(&dtrace_lock);
13899 lck_mtx_lock(&dtrace_lock);
14186 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_NOTOWNED);
14283 lck_mtx_lock(&dtrace_lock);
14286 * This must be done with the dtrace_lock held
14308 lck_mtx_unlock(&dtrace_lock);
14325 lck_mtx_assert(&dtrace_lock, LCK_MTX_ASSERT_OWNED);
14352 lck_mtx_lock(&dtrace_lock);
14379 lck_mtx_unlock(&dtrace_lock);
14394 lck_mtx_lock(&dtrace_lock);
14412 lck_mtx_unlock(&dtrace_lock);
14425 lck_mtx_lock(&dtrace_lock);
14433 lck_mtx_unlock(&dtrace_lock);
14445 lck_mtx_lock(&dtrace_lock);
14512 lck_mtx_unlock(&dtrace_lock);
14549 lck_mtx_lock(&dtrace_lock);
14552 lck_mtx_unlock(&dtrace_lock);
14559 lck_mtx_unlock(&dtrace_lock);
14584 lck_mtx_lock(&dtrace_lock);
14593 lck_mtx_unlock(&dtrace_lock);
14602 lck_mtx_unlock(&dtrace_lock);
14667 lck_mtx_unlock(&dtrace_lock);
14688 lck_mtx_lock(&dtrace_lock);
14739 lck_mtx_unlock(&dtrace_lock);
14799 lck_mtx_lock(&dtrace_lock);
14806 lck_mtx_unlock(&dtrace_lock);
14820 lck_mtx_unlock(&dtrace_lock);
14953 lck_mtx_unlock(&dtrace_lock);
14958 lck_mtx_lock(&dtrace_lock);
14966 lck_mtx_unlock(&dtrace_lock);
15028 lck_mtx_lock(&dtrace_lock);
15039 lck_mtx_unlock(&dtrace_lock);
15049 lck_mtx_unlock(&dtrace_lock);
15053 lck_mtx_unlock(&dtrace_lock);
15102 lck_mtx_lock(&dtrace_lock);
15117 lck_mtx_unlock(&dtrace_lock);
15124 * the dtrace_lock.
15127 lck_mtx_lock(&dtrace_lock);
15137 lck_mtx_unlock(&dtrace_lock);
15237 lck_mtx_lock(&dtrace_lock);
15247 lck_mtx_unlock(&dtrace_lock);
15288 lck_mtx_lock(&dtrace_lock);
15290 lck_mtx_unlock(&dtrace_lock);
15369 lck_mtx_lock(&dtrace_lock);
15372 lck_mtx_unlock(&dtrace_lock);
15377 lck_mtx_unlock(&dtrace_lock);
15397 * the temporary buffer to be able to drop dtrace_lock()
15421 lck_mtx_unlock(&dtrace_lock);
15446 lck_mtx_lock(&dtrace_lock);
15449 lck_mtx_unlock(&dtrace_lock);
15488 * the temporary buffer to be able to drop dtrace_lock()
15523 lck_mtx_unlock(&dtrace_lock);
15548 lck_mtx_lock(&dtrace_lock);
15550 lck_mtx_unlock(&dtrace_lock);
15560 lck_mtx_lock(&dtrace_lock);
15564 lck_mtx_unlock(&dtrace_lock);
15571 lck_mtx_unlock(&dtrace_lock);
15579 lck_mtx_unlock(&dtrace_lock);
15592 lck_mtx_unlock(&dtrace_lock);
15617 lck_mtx_lock(&dtrace_lock);
15619 lck_mtx_unlock(&dtrace_lock);
15661 lck_mtx_lock(&dtrace_lock);
15672 lck_mtx_unlock(&dtrace_lock);
15685 lck_mtx_unlock(&dtrace_lock);
15690 lck_mtx_unlock(&dtrace_lock);
15714 lck_mtx_lock(&dtrace_lock);
15717 lck_mtx_unlock(&dtrace_lock);
15724 lck_mtx_unlock(&dtrace_lock);
15730 lck_mtx_unlock(&dtrace_lock);
15774 lck_mtx_lock(&dtrace_lock);
15776 lck_mtx_unlock(&dtrace_lock);
15794 lck_mtx_lock(&dtrace_lock);
15796 lck_mtx_unlock(&dtrace_lock);
15817 lck_mtx_lock(&dtrace_lock);
15829 lck_mtx_unlock(&dtrace_lock);
15839 lck_mtx_unlock(&dtrace_lock);
15863 lck_mtx_unlock(&dtrace_lock);
15872 lck_mtx_unlock(&dtrace_lock);
15884 lck_mtx_unlock(&dtrace_lock);
15904 lck_mtx_unlock(&dtrace_lock);
15915 lck_mtx_unlock(&dtrace_lock);
15924 lck_mtx_unlock(&dtrace_lock);
15967 lck_mtx_lock(&dtrace_lock);
15970 lck_mtx_unlock(&dtrace_lock);
16010 lck_mtx_unlock(&dtrace_lock);
16026 lck_mtx_lock(&dtrace_lock);
16030 lck_mtx_unlock(&dtrace_lock);
16050 lck_mtx_unlock(&dtrace_lock);
16055 lck_mtx_unlock(&dtrace_lock);
16060 lck_mtx_unlock(&dtrace_lock);
16096 lck_mtx_lock(&dtrace_lock);
16102 lck_mtx_unlock(&dtrace_lock);
16109 lck_mtx_unlock(&dtrace_lock);
16185 lck_mtx_unlock(&dtrace_lock);
16521 lck_mtx_init(&dtrace_lock, dtrace_lck_grp, dtrace_lck_attr);