Lines Matching refs:config
478 attr.config = evsel->tp_format->id;
528 static const char *__evsel__hw_name(u64 config)
530 if (config < PERF_COUNT_HW_MAX && evsel__hw_names[config])
531 return evsel__hw_names[config];
574 return scnprintf(bf, size, "%s", __evsel__hw_name(evsel->core.attr.config));
596 static const char *__evsel__sw_name(u64 config)
598 if (config < PERF_COUNT_SW_MAX && evsel__sw_names[config])
599 return evsel__sw_names[config];
605 int r = scnprintf(bf, size, "%s", __evsel__sw_name(evsel->core.attr.config));
701 static int __evsel__hw_cache_name(u64 config, char *bf, size_t size)
703 u8 op, result, type = (config >> 0) & 0xff;
709 op = (config >> 8) & 0xff;
714 result = (config >> 16) & 0xff;
730 int ret = __evsel__hw_cache_name(evsel->core.attr.config, bf, size);
736 int ret = scnprintf(bf, size, "raw 0x%" PRIx64, evsel->core.attr.config);
988 * inherit using config terms, override global
2841 evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES) {
2854 evsel->core.attr.config = PERF_COUNT_SW_CPU_CLOCK;