Lines Matching refs:thread
402 * reserve the counter using that config in a given execution context (system, or 1 task, or 1 thread),
541 thread_t thread; // not retained
664 * @abstract Reserve a PMC for thread-wide counting.
665 * @discussion This method will attempt to reserve the given pmc for thread-wide counting. The resulting reservation will only count when the thread is
669 * @param thread The thread for which to enable the counter.
673 kern_return_t pmc_reserve_thread(pmc_t pmc, pmc_config_t config, thread_t thread, pmc_reservation_t *reservation);
677 * @discussion This method instructs the given reservation to start counting as soon as possible. If the reservation is for a thread (or task) other than the
678 * current thread, or for a pmc that is not accessible from the current logical core, the reservation will start counting the next time the thread (or task)
686 * @discussion This method instructs the given reservation to stop counting as soon as possible. If the reservation is for a thread (or task) other than the
687 * current thread, or for a pmc that is not accessible from the current logical core, the reservation will stop counting the next time the thread (or task) c
755 * @abstract Returns true if thread has been marked for counting.
757 * of t_chud (for the pmc flag) for all threads in that task. Consequently, we can simply check the current thread's flag against THREAD_PMC_FLAG.