blob: af5f0ad94078f75943b82b7bc003a7d45f465b1c [file] [log] [blame]
Boris Ostrovsky65d0cf02015-08-10 16:34:34 -04001#ifndef __XEN_PMU_H
2#define __XEN_PMU_H
3
4#include <xen/interface/xenpmu.h>
5
6irqreturn_t xen_pmu_irq_handler(int irq, void *dev_id);
7void xen_pmu_init(int cpu);
8void xen_pmu_finish(int cpu);
9bool is_xen_pmu(int cpu);
Boris Ostrovsky6b08cd62015-08-10 16:34:36 -040010bool pmu_msr_read(unsigned int msr, uint64_t *val, int *err);
11bool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err);
12int pmu_apic_update(uint32_t reg);
13unsigned long long xen_read_pmc(int counter);
Boris Ostrovsky65d0cf02015-08-10 16:34:34 -040014
15#endif /* __XEN_PMU_H */