Lines Matching defs:task

402  * reserve the counter using that config in a given execution context (system, or 1 task, or 1 thread),
540 task_t task; // not retained
652 * @abstract Reserve a PMC for task-wide counting.
653 * @discussion This method will attempt to reserve the given pmc for task-wide counting. The resulting reservation will only count when the task is running
657 * @param task The task for which to enable the counter.
661 kern_return_t pmc_reserve_task(pmc_t pmc, pmc_config_t config, task_t task, 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
733 * @discussion This method will save all PMCs reserved for oldThread (and the task associated with oldThread), as well as restore all PMCs reserved
734 * for newThread (and the task associated with newThread). This method is for xnu-internal context switching routines only.
756 * @discussion Task-level reservations are propagated to child threads via thread_create_internal. Any mutation of task reservations forces a recalculate
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.