Lines Matching refs:aggr
836 tmp = evsel->prev_raw_counts->aggr; in compute_deltas()
837 evsel->prev_raw_counts->aggr = *count; in compute_deltas()
882 struct perf_counts_values *aggr = &evsel->counts->aggr, count; in __perf_evsel__read() local
884 aggr->val = aggr->ena = aggr->run = 0; in __perf_evsel__read()
895 aggr->val += count.val; in __perf_evsel__read()
897 aggr->ena += count.ena; in __perf_evsel__read()
898 aggr->run += count.run; in __perf_evsel__read()
903 compute_deltas(evsel, -1, aggr); in __perf_evsel__read()
907 if (aggr->run == 0) { in __perf_evsel__read()
909 aggr->val = 0; in __perf_evsel__read()
913 if (aggr->run < aggr->ena) { in __perf_evsel__read()
915 aggr->val = (u64)((double)aggr->val * aggr->ena / aggr->run + 0.5); in __perf_evsel__read()
918 aggr->ena = aggr->run = 0; in __perf_evsel__read()