Searched refs:cache_result (Results 1 – 6 of 6) sorted by relevance
| /linux/arch/loongarch/kernel/ |
| H A D | perf_event.c | 603 unsigned int cache_type, cache_op, cache_result; in loongarch_pmu_map_cache_event() local 614 cache_result = (config >> 16) & 0xff; in loongarch_pmu_map_cache_event() 615 if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX) in loongarch_pmu_map_cache_event() 621 [cache_result]); in loongarch_pmu_map_cache_event()
|
| /linux/tools/perf/pmu-events/ |
| H A D | make_legacy_cache.py | 66 cache_id: int, cache_op: int, cache_result: int,
|
| /linux/tools/perf/util/ |
| H A D | parse-events.c | 368 int len, cache_type = -1, cache_op = -1, cache_result = -1; in parse_events__decode_legacy_cache() local 385 cache_result = parse_aliases(str, evsel__hw_cache_result, in parse_events__decode_legacy_cache() 387 if (cache_result >= 0) in parse_events__decode_legacy_cache() 399 } else if (cache_result < 0) { in parse_events__decode_legacy_cache() 400 cache_result = parse_aliases(str, evsel__hw_cache_result, in parse_events__decode_legacy_cache() 414 if (cache_result == -1) in parse_events__decode_legacy_cache() 415 cache_result = PERF_COUNT_HW_CACHE_RESULT_ACCESS; in parse_events__decode_legacy_cache() 417 *config = cache_type | (cache_op << 8) | (cache_result << 16); in parse_events__decode_legacy_cache() 1023 int cache_type, cache_op, cache_result; in config_term_pmu() local 1029 cache_result = (term->val.num >> 16) & 0xFF; in config_term_pmu() [all …]
|
| H A D | pmu.c | 1596 int cache_result = (term->val.num >> 16) & 0xFF; in pmu_config_term() local 1600 assert(cache_result < PERF_COUNT_HW_CACHE_RESULT_MAX); in pmu_config_term()
|
| /linux/arch/x86/events/ |
| H A D | core.c | 378 unsigned int cache_type, cache_op, cache_result; in set_ext_hw_attr() local 393 cache_result = (config >> 16) & 0xff; in set_ext_hw_attr() 394 if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX) in set_ext_hw_attr() 396 cache_result = array_index_nospec(cache_result, PERF_COUNT_HW_CACHE_RESULT_MAX); in set_ext_hw_attr() 398 val = hybrid_var(event->pmu, hw_cache_event_ids)[cache_type][cache_op][cache_result]; in set_ext_hw_attr() 406 attr->config1 = hybrid_var(event->pmu, hw_cache_extra_regs)[cache_type][cache_op][cache_result]; in set_ext_hw_attr()
|
| /linux/arch/sparc/kernel/ |
| H A 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()
|