/linux-6.1.9/arch/xtensa/kernel/ |
D | perf_event.c | 106 unsigned int cache_type, cache_op, cache_result; in xtensa_pmu_cache_event() local 111 cache_result = (config >> 16) & 0xff; in xtensa_pmu_cache_event() 115 cache_result >= C(RESULT_MAX)) in xtensa_pmu_cache_event() 118 ret = xtensa_cache_ctl[cache_type][cache_op][cache_result]; in xtensa_pmu_cache_event()
|
/linux-6.1.9/arch/arc/kernel/ |
D | perf_event.c | 303 unsigned int cache_type, cache_op, cache_result; in arc_pmu_cache_event() local 308 cache_result = (config >> 16) & 0xff; in arc_pmu_cache_event() 313 if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX) in arc_pmu_cache_event() 316 ret = arc_pmu_cache_map[cache_type][cache_op][cache_result]; in arc_pmu_cache_event() 322 cache_type, cache_op, cache_result, ret, in arc_pmu_cache_event()
|
/linux-6.1.9/drivers/perf/ |
D | arm_pmu.c | 125 unsigned int cache_type, cache_op, cache_result, ret; in armpmu_map_cache_event() local 135 cache_result = (config >> 16) & 0xff; in armpmu_map_cache_event() 136 if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX) in armpmu_map_cache_event() 142 ret = (int)(*cache_map)[cache_type][cache_op][cache_result]; in armpmu_map_cache_event()
|
D | riscv_pmu_sbi.c | 329 unsigned int cache_type, cache_op, cache_result, ret; in pmu_event_find_cache() local 339 cache_result = (config >> 16) & 0xff; in pmu_event_find_cache() 340 if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX) in pmu_event_find_cache() 343 ret = pmu_cache_event_map[cache_type][cache_op][cache_result].event_idx; in pmu_event_find_cache()
|
/linux-6.1.9/arch/loongarch/kernel/ |
D | perf_event.c | 614 unsigned int cache_type, cache_op, cache_result; in loongarch_pmu_map_cache_event() local 625 cache_result = (config >> 16) & 0xff; in loongarch_pmu_map_cache_event() 626 if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX) in loongarch_pmu_map_cache_event() 632 [cache_result]); in loongarch_pmu_map_cache_event()
|
/linux-6.1.9/arch/csky/kernel/ |
D | perf_event.c | 952 unsigned int cache_type, cache_op, cache_result; in csky_pmu_cache_event() local 956 cache_result = (config >> 16) & 0xff; in csky_pmu_cache_event() 962 if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX) in csky_pmu_cache_event() 965 return csky_pmu_cache_map[cache_type][cache_op][cache_result]; in csky_pmu_cache_event()
|
/linux-6.1.9/tools/perf/util/ |
D | parse-events.c | 367 int cache_type = -1, cache_op = -1, cache_result = -1; in parse_events_add_cache() local 398 if (cache_result == -1) { in parse_events_add_cache() 399 cache_result = parse_aliases(str, evsel__hw_cache_result, in parse_events_add_cache() 401 if (cache_result >= 0) in parse_events_add_cache() 415 if (cache_result == -1) in parse_events_add_cache() 416 cache_result = PERF_COUNT_HW_CACHE_RESULT_ACCESS; in parse_events_add_cache() 419 attr.config = cache_type | (cache_op << 8) | (cache_result << 16); in parse_events_add_cache()
|
/linux-6.1.9/arch/x86/events/ |
D | core.c | 363 unsigned int cache_type, cache_op, cache_result; in set_ext_hw_attr() local 378 cache_result = (config >> 16) & 0xff; in set_ext_hw_attr() 379 if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX) in set_ext_hw_attr() 381 cache_result = array_index_nospec(cache_result, PERF_COUNT_HW_CACHE_RESULT_MAX); in set_ext_hw_attr() 383 val = hybrid_var(event->pmu, hw_cache_event_ids)[cache_type][cache_op][cache_result]; in set_ext_hw_attr() 391 attr->config1 = hybrid_var(event->pmu, hw_cache_extra_regs)[cache_type][cache_op][cache_result]; in set_ext_hw_attr()
|
/linux-6.1.9/arch/sparc/kernel/ |
D | perf_event.c | 1198 unsigned int cache_type, cache_op, cache_result; in sparc_map_cache_event() local 1212 cache_result = (config >> 16) & 0xff; in sparc_map_cache_event() 1213 if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX) in sparc_map_cache_event() 1216 pmap = &((*sparc_pmu->cache_map)[cache_type][cache_op][cache_result]); in sparc_map_cache_event()
|
/linux-6.1.9/arch/mips/kernel/ |
D | perf_event_mipsxx.c | 733 unsigned int cache_type, cache_op, cache_result; in mipspmu_map_cache_event() local 744 cache_result = (config >> 16) & 0xff; in mipspmu_map_cache_event() 745 if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX) in mipspmu_map_cache_event() 751 [cache_result]); in mipspmu_map_cache_event()
|