xref: /kernel/linux/linux-6.6/arch/x86/xen/pmu.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/x86/xen/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __XEN_PMU_H
362306a36Sopenharmony_ci#define __XEN_PMU_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <xen/interface/xenpmu.h>
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciextern bool is_xen_pmu;
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciirqreturn_t xen_pmu_irq_handler(int irq, void *dev_id);
1062306a36Sopenharmony_ci#ifdef CONFIG_XEN_HAVE_VPMU
1162306a36Sopenharmony_civoid xen_pmu_init(int cpu);
1262306a36Sopenharmony_civoid xen_pmu_finish(int cpu);
1362306a36Sopenharmony_ci#else
1462306a36Sopenharmony_cistatic inline void xen_pmu_init(int cpu) {}
1562306a36Sopenharmony_cistatic inline void xen_pmu_finish(int cpu) {}
1662306a36Sopenharmony_ci#endif
1762306a36Sopenharmony_cibool pmu_msr_read(unsigned int msr, uint64_t *val, int *err);
1862306a36Sopenharmony_cibool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err);
1962306a36Sopenharmony_ciint pmu_apic_update(uint32_t reg);
2062306a36Sopenharmony_ciunsigned long long xen_read_pmc(int counter);
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci#endif /* __XEN_PMU_H */
23

Indexes created Thu Nov 07 10:32:03 CST 2024