Lines Matching defs:pmc_t

44  * 2. Performance Counters (pmc_t) - represents each individual counter
459 }*pmc_t;
527 pmc_t pmc; // Pointer to in-kernel pmc which is reserved
558 kern_return_t pmc_create_config(pmc_t pmc, pmc_config_t *config);
566 void pmc_free_config(pmc_t pmc, pmc_config_t config);
574 kern_return_t pmc_config_set_value(pmc_t pmc, pmc_config_t config, uint8_t id, uint64_t value);
582 kern_return_t pmc_config_set_interrupt_threshold(pmc_t pmc, pmc_config_t config, uint64_t threshold, pmc_interrupt_method_t method, void *refCon);
585 * @abstract Returns an allocated list of all pmc_t's known to the kernel.
587 * @param pmcs Storage for the resultant pmc_t array pointer.
588 * @param pmcCount Storage for the resultant count of pmc_t's.
590 kern_return_t pmc_get_pmc_list(pmc_t **pmcs, size_t *pmcCount);
596 * @param pmcCount Number of pmc_t's in list.
598 void pmc_free_pmc_list(pmc_t *pmcs, size_t pmcCount);
605 * @param pmcs Storage for the resultant pmc_t array pointer.
606 * @param pmcCount Storage for the resultant count of pmc_t's.
608 kern_return_t pmc_find_by_name(const char *name, pmc_t **pmcs, size_t *pmcCount);
615 const char *pmc_get_name(pmc_t pmc);
625 kern_return_t pmc_get_accessible_core_list(pmc_t pmc, uint32_t **logicalCores, size_t *logicalCoreCt);
648 kern_return_t pmc_reserve(pmc_t pmc, pmc_config_t config, pmc_reservation_t *reservation);
661 kern_return_t pmc_reserve_task(pmc_t pmc, pmc_config_t config, task_t task, pmc_reservation_t *reservation);
673 kern_return_t pmc_reserve_thread(pmc_t pmc, pmc_config_t config, thread_t thread, pmc_reservation_t *reservation);