Home
last modified time | relevance | path

Searched refs:nr_fixed_counters (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/kvm/x86/
H A Dpmu_counters_test.c518 u8 nr_fixed_counters = 0; in guest_test_fixed_counters() local
523 nr_fixed_counters = this_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in guest_test_fixed_counters()
533 nr_fixed_counters, supported_bitmask); in guest_test_fixed_counters()
539 if (i >= nr_fixed_counters && !(supported_bitmask & BIT_ULL(i))) { in guest_test_fixed_counters()
565 u8 nr_fixed_counters, u32 supported_bitmask) in test_fixed_counters() argument
576 nr_fixed_counters); in test_fixed_counters()
585 u8 nr_fixed_counters = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in test_intel_counters() local
674 for (j = 0; j <= nr_fixed_counters; j++) { in test_intel_counters()
675 for (k = 0; k <= (BIT(nr_fixed_counters) - 1); k++) in test_intel_counters()
H A Dpmu_event_filter_test.c688 u8 nr_fixed_counters = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in test_filter_ioctl() local
727 f.fixed_counter_bitmap = ~GENMASK_ULL(nr_fixed_counters, 0); in test_filter_ioctl()
734 u8 nr_fixed_counters = this_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in intel_run_fixed_counter_guest_code()
743 if (nr_fixed_counters > 1) in intel_run_fixed_counter_guest_code()
746 FIXED_PMC_CTRL((idx + 1) % nr_fixed_counters, FIXED_PMC_KERNEL)); in intel_run_fixed_counter_guest_code()
780 u8 nr_fixed_counters) in __test_fixed_counter_bitmap()
786 TEST_ASSERT(nr_fixed_counters < sizeof(bitmap) * 8, in __test_fixed_counter_bitmap()
787 "Invalid nr_fixed_counters"); in __test_fixed_counter_bitmap()
796 for (i = 0; i < BIT(nr_fixed_counters); i++) { in __test_fixed_counter_bitmap()
824 u8 nr_fixed_counters in test_fixed_counter_bitmap()
774 __test_fixed_counter_bitmap(struct kvm_vcpu * vcpu,u8 idx,u8 nr_fixed_counters) __test_fixed_counter_bitmap() argument
818 u8 nr_fixed_counters = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); test_fixed_counter_bitmap() local
[all...]