Searched refs:pmc (Results 1 – 2 of 2) sorted by relevance
/tools/testing/selftests/powerpc/pmu/ebb/ |
D | ebb.h | 14 #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); 59 int count_pmc(int pmc, uint32_t sample_period); 64 void write_pmc(int pmc, u64 value); 65 u64 read_pmc(int pmc);
|
D | ebb.c | 72 bool ebb_check_count(int pmc, u64 sample_period, int fudge) in ebb_check_count() argument 76 count = ebb_state.stats.pmc_count[PMC_INDEX(pmc)]; in ebb_check_count() 82 pmc, count, lower, lower - count); in ebb_check_count() 90 pmc, count, upper, count - upper); in ebb_check_count() 95 pmc, count, lower, upper, count - lower, upper - count); in ebb_check_count() 253 int count_pmc(int pmc, uint32_t sample_period) in count_pmc() argument 261 val = read_pmc(pmc); in count_pmc() 265 ebb_state.stats.pmc_count[PMC_INDEX(pmc)] += val - start_value; in count_pmc() 267 trace_log_reg(ebb_state.trace, SPRN_PMC1 + pmc - 1, val); in count_pmc() 270 write_pmc(pmc, start_value); in count_pmc() [all …]
|