Home
last modified time | relevance | path

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

/tools/testing/selftests/powerpc/pmu/sampling_tests/
Dmisc.h121 static inline int get_mmcr2_fcs(u64 mmcr2, int pmc) in get_mmcr2_fcs() argument
123 return ((mmcr2 & (1ull << (63 - (((pmc) - 1) * 9)))) >> (63 - (((pmc) - 1) * 9))); in get_mmcr2_fcs()
126 static inline int get_mmcr2_fcp(u64 mmcr2, int pmc) in get_mmcr2_fcp() argument
128 return ((mmcr2 & (1ull << (62 - (((pmc) - 1) * 9)))) >> (62 - (((pmc) - 1) * 9))); in get_mmcr2_fcp()
131 static inline int get_mmcr2_fcpc(u64 mmcr2, int pmc) in get_mmcr2_fcpc() argument
133 return ((mmcr2 & (1ull << (61 - (((pmc) - 1) * 9)))) >> (61 - (((pmc) - 1) * 9))); in get_mmcr2_fcpc()
136 static inline int get_mmcr2_fcm1(u64 mmcr2, int pmc) in get_mmcr2_fcm1() argument
138 return ((mmcr2 & (1ull << (60 - (((pmc) - 1) * 9)))) >> (60 - (((pmc) - 1) * 9))); in get_mmcr2_fcm1()
141 static inline int get_mmcr2_fcm0(u64 mmcr2, int pmc) in get_mmcr2_fcm0() argument
143 return ((mmcr2 & (1ull << (59 - (((pmc) - 1) * 9)))) >> (59 - (((pmc) - 1) * 9))); in get_mmcr2_fcm0()
[all …]
/tools/perf/arch/powerpc/util/
Dperf_regs.c68 SMPL_REG(mmcr2, PERF_REG_POWERPC_MMCR2),