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_64/
H A Dpmu_counters_test.c480 uint8_t nr_fixed_counters = 0; in guest_test_fixed_counters() local
485 nr_fixed_counters = this_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in guest_test_fixed_counters()
495 nr_fixed_counters, supported_bitmask); in guest_test_fixed_counters()
501 if (i >= nr_fixed_counters && !(supported_bitmask & BIT_ULL(i))) { in guest_test_fixed_counters()
527 uint8_t nr_fixed_counters, in test_fixed_counters() argument
539 nr_fixed_counters); in test_fixed_counters()
549 uint8_t nr_fixed_counters = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in test_intel_counters() local
622 for (j = 0; j <= nr_fixed_counters; j++) { in test_intel_counters()
623 for (k = 0; k <= (BIT(nr_fixed_counters) - 1); k++) in test_intel_counters()
H A Dpmu_event_filter_test.c685 uint8_t nr_fixed_counters = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in test_filter_ioctl() local
724 f.fixed_counter_bitmap = ~GENMASK_ULL(nr_fixed_counters, 0); in test_filter_ioctl()
771 uint8_t nr_fixed_counters) in __test_fixed_counter_bitmap() argument
777 TEST_ASSERT(nr_fixed_counters < sizeof(bitmap) * 8, in __test_fixed_counter_bitmap()
787 for (i = 0; i < BIT(nr_fixed_counters); i++) { in __test_fixed_counter_bitmap()
815 uint8_t nr_fixed_counters = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in test_fixed_counter_bitmap() local
824 for (idx = 0; idx < nr_fixed_counters; idx++) { in test_fixed_counter_bitmap()
828 __test_fixed_counter_bitmap(vcpu, idx, nr_fixed_counters); in test_fixed_counter_bitmap()