Lines Matching refs:cache_op
252 static int is_cache_op_valid(u8 cache_type, u8 cache_op) in is_cache_op_valid() argument
254 if (hw_cache_stat[cache_type] & COP(cache_op)) in is_cache_op_valid()
260 static char *event_cache_name(u8 cache_type, u8 cache_op, u8 cache_result) in event_cache_name() argument
266 hw_cache_op[cache_op][0], in event_cache_name()
270 hw_cache_op[cache_op][1]); in event_cache_name()
325 u8 cache_type, cache_op, cache_result; in __event_name() local
331 cache_op = (config >> 8) & 0xff; in __event_name()
332 if (cache_op > PERF_COUNT_HW_CACHE_OP_MAX) in __event_name()
339 if (!is_cache_op_valid(cache_type, cache_op)) in __event_name()
342 return event_cache_name(cache_type, cache_op, cache_result); in __event_name()
384 int cache_type = -1, cache_op = -1, cache_result = -1; in parse_generic_hw_event() local
394 while ((cache_op == -1 || cache_result == -1) && *s == '-') { in parse_generic_hw_event()
397 if (cache_op == -1) { in parse_generic_hw_event()
398 cache_op = parse_aliases(&s, hw_cache_op, in parse_generic_hw_event()
400 if (cache_op >= 0) { in parse_generic_hw_event()
401 if (!is_cache_op_valid(cache_type, cache_op)) in parse_generic_hw_event()
425 if (cache_op == -1) in parse_generic_hw_event()
426 cache_op = PERF_COUNT_HW_CACHE_OP_READ; in parse_generic_hw_event()
434 attr->config = cache_type | (cache_op << 8) | (cache_result << 16); in parse_generic_hw_event()