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 uint8_t 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 uint8_t nr_fixed_counters, in test_fixed_counters() argument
577 nr_fixed_counters); in test_fixed_counters()
586 uint8_t nr_fixed_counters = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in test_intel_counters() local
675 for (j = 0; j <= nr_fixed_counters; j++) { in test_intel_counters()
676 for (k = 0; k <= (BIT(nr_fixed_counters) - 1); k++) in test_intel_counters()
H A Dpmu_event_filter_test.c687 uint8_t nr_fixed_counters = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in test_filter_ioctl() local
726 f.fixed_counter_bitmap = ~GENMASK_ULL(nr_fixed_counters, 0); in test_filter_ioctl()
773 uint8_t nr_fixed_counters) in __test_fixed_counter_bitmap() argument
779 TEST_ASSERT(nr_fixed_counters < sizeof(bitmap) * 8, in __test_fixed_counter_bitmap()
789 for (i = 0; i < BIT(nr_fixed_counters); i++) { in __test_fixed_counter_bitmap()
817 uint8_t nr_fixed_counters = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in test_fixed_counter_bitmap() local
826 for (idx = 0; idx < nr_fixed_counters; idx++) { in test_fixed_counter_bitmap()
830 __test_fixed_counter_bitmap(vcpu, idx, nr_fixed_counters); in test_fixed_counter_bitmap()