kvm-x86-pmu-ops.h (929B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2#if !defined(KVM_X86_PMU_OP) || !defined(KVM_X86_PMU_OP_OPTIONAL) 3BUILD_BUG_ON(1) 4#endif 5 6/* 7 * KVM_X86_PMU_OP() and KVM_X86_PMU_OP_OPTIONAL() are used to help generate 8 * both DECLARE/DEFINE_STATIC_CALL() invocations and 9 * "static_call_update()" calls. 10 * 11 * KVM_X86_PMU_OP_OPTIONAL() can be used for those functions that can have 12 * a NULL definition, for example if "static_call_cond()" will be used 13 * at the call sites. 14 */ 15KVM_X86_PMU_OP(pmc_perf_hw_id) 16KVM_X86_PMU_OP(pmc_is_enabled) 17KVM_X86_PMU_OP(pmc_idx_to_pmc) 18KVM_X86_PMU_OP(rdpmc_ecx_to_pmc) 19KVM_X86_PMU_OP(msr_idx_to_pmc) 20KVM_X86_PMU_OP(is_valid_rdpmc_ecx) 21KVM_X86_PMU_OP(is_valid_msr) 22KVM_X86_PMU_OP(get_msr) 23KVM_X86_PMU_OP(set_msr) 24KVM_X86_PMU_OP(refresh) 25KVM_X86_PMU_OP(init) 26KVM_X86_PMU_OP(reset) 27KVM_X86_PMU_OP_OPTIONAL(deliver_pmi) 28KVM_X86_PMU_OP_OPTIONAL(cleanup) 29 30#undef KVM_X86_PMU_OP 31#undef KVM_X86_PMU_OP_OPTIONAL