Home
last modified time | relevance | path

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

/tools/testing/selftests/powerpc/pmu/sampling_tests/
A Dmisc.h112 return ((mmcr1 >> (38 - ((pmc - 1) * 2))) & 0x3); in get_mmcr1_comb()
127 return ((mmcr2 & (1ull << (63 - (((pmc) - 1) * 9)))) >> (63 - (((pmc) - 1) * 9))); in get_mmcr2_fcs()
132 return ((mmcr2 & (1ull << (62 - (((pmc) - 1) * 9)))) >> (62 - (((pmc) - 1) * 9))); in get_mmcr2_fcp()
137 return ((mmcr2 & (1ull << (61 - (((pmc) - 1) * 9)))) >> (61 - (((pmc) - 1) * 9))); in get_mmcr2_fcpc()
142 return ((mmcr2 & (1ull << (60 - (((pmc) - 1) * 9)))) >> (60 - (((pmc) - 1) * 9))); in get_mmcr2_fcm1()
147 return ((mmcr2 & (1ull << (59 - (((pmc) - 1) * 9)))) >> (59 - (((pmc) - 1) * 9))); in get_mmcr2_fcm0()
152 return ((mmcr2 & (1ull << (58 - (((pmc) - 1) * 9)))) >> (58 - (((pmc) - 1) * 9))); in get_mmcr2_fcwait()
157 return ((mmcr2 & (1ull << (57 - (((pmc) - 1) * 9)))) >> (57 - (((pmc) - 1) * 9))); in get_mmcr2_fch()
162 return ((mmcr2 & (1ull << (56 - (((pmc) - 1) * 9)))) >> (56 - (((pmc) - 1) * 9))); in get_mmcr2_fcti()
167 return ((mmcr2 & (1ull << (55 - (((pmc) - 1) * 9)))) >> (55 - (((pmc) - 1) * 9))); in get_mmcr2_fcta()
[all …]
/tools/testing/selftests/powerpc/pmu/ebb/
A Debb.h14 #define PMC_INDEX(pmc) ((pmc)-1) argument
41 static inline void ebb_enable_pmc_counting(int pmc) in ebb_enable_pmc_counting() argument
43 ebb_state.pmc_enable[PMC_INDEX(pmc)] = true; in ebb_enable_pmc_counting()
46 bool ebb_check_count(int pmc, u64 sample_period, int fudge);
58 int count_pmc(int pmc, uint32_t sample_period);
63 void write_pmc(int pmc, u64 value);
64 u64 read_pmc(int pmc);
A Debb.c71 bool ebb_check_count(int pmc, u64 sample_period, int fudge) in ebb_check_count() argument
75 count = ebb_state.stats.pmc_count[PMC_INDEX(pmc)]; in ebb_check_count()
81 pmc, count, lower, lower - count); in ebb_check_count()
89 pmc, count, upper, count - upper); in ebb_check_count()
252 int count_pmc(int pmc, uint32_t sample_period) in count_pmc() argument
260 val = read_pmc(pmc); in count_pmc()
269 write_pmc(pmc, start_value); in count_pmc()
440 void write_pmc(int pmc, u64 value) in write_pmc() argument
442 switch (pmc) { in write_pmc()
452 u64 read_pmc(int pmc) in read_pmc() argument
[all …]
/tools/testing/selftests/kvm/arm64/
A Dvpmu_counter_access.c363 int i, pmc; in guest_code() local
391 for (pmc = 0; pmc < pmcr_n; pmc++) in guest_code()
392 test_access_pmc_regs(&pmc_accessors[i], pmc); in guest_code()
400 for (pmc = pmcr_n; pmc < ARMV8_PMU_MAX_GENERAL_COUNTERS; pmc++) in guest_code()
401 test_access_invalid_pmc_regs(&pmc_accessors[i], pmc); in guest_code()
/tools/testing/selftests/kvm/x86/
A Dpmu_counters_test.c151 static void guest_assert_event_count(uint8_t idx, uint32_t pmc, uint32_t pmc_msr) in guest_assert_event_count() argument
155 count = _rdpmc(pmc); in guest_assert_event_count()
187 GUEST_ASSERT_EQ(_rdpmc(pmc), count); in guest_assert_event_count()
190 GUEST_ASSERT_EQ(_rdpmc(pmc), 0xdead); in guest_assert_event_count()
240 static void __guest_test_arch_event(uint8_t idx, uint32_t pmc, uint32_t pmc_msr, in __guest_test_arch_event() argument
243 GUEST_TEST_EVENT(idx, pmc, pmc_msr, ctrl_msr, ctrl_msr_value, ""); in __guest_test_arch_event()
246 GUEST_TEST_EVENT(idx, pmc, pmc_msr, ctrl_msr, ctrl_msr_value, KVM_FEP); in __guest_test_arch_event()
/tools/testing/vma/
A Dvma_internal.h1389 static inline unsigned long move_page_tables(struct pagetable_move_control *pmc) in move_page_tables() argument
1391 (void)pmc; in move_page_tables()

Completed in 16 milliseconds