Lines Matching defs:config
35 PMU_FORMAT_ATTR(event, "config:0-47");
36 PMU_FORMAT_ATTR(firmware, "config:63");
359 if (event->attr.config == PERF_COUNT_HW_CPU_CYCLES) {
362 } else if (event->attr.config == PERF_COUNT_HW_INSTRUCTIONS) {
371 cmask, cflags, hwc->event_base, hwc->config,
372 hwc->config >> 32);
375 cmask, cflags, hwc->event_base, hwc->config, 0);
378 pr_debug("Not able to find a counter for event %lx config %llx\n",
379 hwc->event_base, hwc->config);
413 static int pmu_event_find_cache(u64 config)
417 cache_type = (config >> 0) & 0xff;
421 cache_op = (config >> 8) & 0xff;
425 cache_result = (config >> 16) & 0xff;
437 u64 config = event->attr.config;
439 if ((type == PERF_TYPE_RAW) && ((config >> 63) == 1))
448 u64 config = event->attr.config;
455 if (config >= PERF_COUNT_HW_MAX)
457 ret = pmu_hw_event_map[event->attr.config].event_idx;
460 ret = pmu_event_find_cache(config);
468 bSoftware = config >> 63;
469 raw_config_val = config & RISCV_PMU_RAW_EVENT_MASK;
927 if (event->attr.config != PERF_COUNT_HW_CPU_CYCLES &&
928 event->attr.config != PERF_COUNT_HW_INSTRUCTIONS) {
962 if (event->attr.config != PERF_COUNT_HW_CPU_CYCLES &&
963 event->attr.config != PERF_COUNT_HW_INSTRUCTIONS) {