pmu.h 462 B

12345678910111213141516
  1. #ifndef __XEN_PMU_H
  2. #define __XEN_PMU_H
  3. #include <xen/interface/xenpmu.h>
  4. irqreturn_t xen_pmu_irq_handler(int irq, void *dev_id);
  5. void xen_pmu_init(int cpu);
  6. void xen_pmu_finish(int cpu);
  7. bool is_xen_pmu(int cpu);
  8. bool pmu_msr_read(unsigned int msr, uint64_t *val, int *err);
  9. bool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err);
  10. int pmu_apic_update(uint32_t reg);
  11. unsigned long long xen_read_pmc(int counter);
  12. #endif /* __XEN_PMU_H */