Lines Matching defs:config
189 int evlist__alloc_stats(struct perf_stat_config *config,
195 if (config && config->aggr_map)
196 nr_aggr = config->aggr_map->nr;
278 void evlist__copy_res_stats(struct perf_stat_config *config, struct evlist *evlist)
282 if (config->aggr_mode != AGGR_GLOBAL)
368 struct perf_stat_config *config)
375 if (config->aggr_mode == AGGR_GLOBAL)
386 process_counter_values(struct perf_stat_config *config, struct evsel *evsel,
404 perf_counts_values__scale(count, config->scale, NULL);
406 if (config->aggr_mode == AGGR_THREAD) {
413 if (count->val == 0 && config->system_wide)
426 struct aggr_cpu_id aggr_id = config->aggr_get_id(config, cpu);
431 if (!aggr_cpu_id__equal(&aggr_id, &config->aggr_map->map[i]))
442 if (evsel__count_has_error(evsel, count, config) && !ps_aggr->failed) {
461 static int process_counter_maps(struct perf_stat_config *config,
470 if (process_counter_values(config, counter, idx, thread,
479 int perf_stat_process_counter(struct perf_stat_config *config,
489 ret = process_counter_maps(config, counter);
493 if (config->aggr_mode != AGGR_GLOBAL)
504 fprintf(config->output, "%s: %" PRIu64 " %" PRIu64 " %" PRIu64 "\n",
575 const struct perf_stat_config *config)
577 return config->hybrid_merge && evsel__is_hybrid(evsel);
580 static void evsel__merge_stats(struct evsel *evsel, struct perf_stat_config *config)
586 if (evsel->auto_merge_stats || evsel__should_merge_hybrid(evsel, config))
591 void perf_stat_merge_counters(struct perf_stat_config *config, struct evlist *evlist)
595 if (config->aggr_mode == AGGR_NONE)
599 evsel__merge_stats(evsel, config);
662 void perf_stat_process_percore(struct perf_stat_config *config, struct evlist *evlist)
666 if (config->aggr_mode != AGGR_NONE)
746 struct perf_stat_config *config,
764 attr->inherit = !config->no_inherit && list_empty(&evsel->bpf_counter_list);
772 if (config->identifier)
775 if (config->all_user) {
780 if (config->all_kernel) {