Lines Matching refs:aggr

83 	struct perf_stat_aggr *aggr = ps->aggr;  in evsel__reset_aggr_stats()  local
85 if (aggr) in evsel__reset_aggr_stats()
86 memset(aggr, 0, sizeof(*aggr) * ps->nr_aggr); in evsel__reset_aggr_stats()
105 ps->aggr = calloc(nr_aggr, sizeof(*ps->aggr)); in evsel__alloc_aggr_stats()
106 if (ps->aggr == NULL) in evsel__alloc_aggr_stats()
148 zfree(&ps->aggr); in evsel__free_stat_priv()
275 *ps->aggr[0].counts.values = avg_stats(&ps->res_stats); in evsel__copy_res_stats()
407 struct perf_counts_values *aggr_counts = &ps->aggr[thread].counts; in process_counter_values()
416 ps->aggr[thread].nr++; in process_counter_values()
424 if (ps->aggr) { in process_counter_values()
434 ps_aggr = &ps->aggr[i]; in process_counter_values()
500 count = ps->aggr[0].counts.values; in perf_stat_process_counter()
517 if (ps_a->aggr == NULL && ps_b->aggr == NULL) in evsel__merge_aggr_counters()
526 struct perf_counts_values *aggr_counts_a = &ps_a->aggr[i].counts; in evsel__merge_aggr_counters()
527 struct perf_counts_values *aggr_counts_b = &ps_b->aggr[i].counts; in evsel__merge_aggr_counters()
612 struct perf_stat_aggr *aggr = &ps->aggr[idx]; in evsel__update_percore_stats() local
618 counts.val += aggr->counts.val; in evsel__update_percore_stats()
619 counts.ena += aggr->counts.ena; in evsel__update_percore_stats()
620 counts.run += aggr->counts.run; in evsel__update_percore_stats()
625 struct perf_stat_aggr *aggr = &ps->aggr[idx]; in evsel__update_percore_stats() local
631 aggr->counts.val = counts.val; in evsel__update_percore_stats()
632 aggr->counts.ena = counts.ena; in evsel__update_percore_stats()
633 aggr->counts.run = counts.run; in evsel__update_percore_stats()
635 aggr->used = true; in evsel__update_percore_stats()
651 struct perf_stat_aggr *aggr = &ps->aggr[idx]; in evsel__process_percore() local
653 if (aggr->used) in evsel__process_percore()