Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/kvm/x86_64/
H A Dpmu_counters_test.c338 static void guest_test_rdpmc(uint32_t rdpmc_idx, bool expect_success, in guest_test_rdpmc() argument
344 vector = rdpmc_safe(rdpmc_idx, &val); in guest_test_rdpmc()
345 GUEST_ASSERT_PMC_MSR_ACCESS(RDPMC, rdpmc_idx, !expect_success, vector); in guest_test_rdpmc()
347 GUEST_ASSERT_PMC_VALUE(RDPMC, rdpmc_idx, val, expected_val); in guest_test_rdpmc()
352 vector = rdpmc_safe_fep(rdpmc_idx, &val); in guest_test_rdpmc()
353 GUEST_ASSERT_PMC_MSR_ACCESS(RDPMC, rdpmc_idx, !expect_success, vector); in guest_test_rdpmc()
355 GUEST_ASSERT_PMC_VALUE(RDPMC, rdpmc_idx, val, expected_val); in guest_test_rdpmc()
386 uint32_t rdpmc_idx; in guest_rd_wr_counters() local
404 rdpmc_idx = i; in guest_rd_wr_counters()
406 rdpmc_idx |= INTEL_RDPMC_FIXED; in guest_rd_wr_counters()
[all …]