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()
774 u8 nr_fixed_counters) in __test_fixed_counter_bitmap() argument
780 TEST_ASSERT(nr_fixed_counters < sizeof(bitmap) * 8, in __test_fixed_counter_bitmap()
790 for (i = 0; i < BIT(nr_fixed_counters); i++) { in __test_fixed_counter_bitmap()
818 u8 nr_fixed_counters = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in test_fixed_counter_bitmap() local
827 for (idx = 0; idx < nr_fixed_counters; idx++) { in test_fixed_counter_bitmap()
831 __test_fixed_counter_bitmap(vcpu, idx, nr_fixed_counters); in test_fixed_counter_bitmap()