Lines Matching refs:ps
82 struct perf_stat_evsel *ps = evsel->stats;
83 struct perf_stat_aggr *aggr = ps->aggr;
86 memset(aggr, 0, sizeof(*aggr) * ps->nr_aggr);
91 struct perf_stat_evsel *ps = evsel->stats;
93 init_stats(&ps->res_stats);
99 struct perf_stat_evsel *ps = evsel->stats;
101 if (ps == NULL)
104 ps->nr_aggr = nr_aggr;
105 ps->aggr = calloc(nr_aggr, sizeof(*ps->aggr));
106 if (ps->aggr == NULL)
125 struct perf_stat_evsel *ps;
127 ps = zalloc(sizeof(*ps));
128 if (ps == NULL)
131 evsel->stats = ps;
135 free(ps);
145 struct perf_stat_evsel *ps = evsel->stats;
147 if (ps) {
148 zfree(&ps->aggr);
149 zfree(&ps->group_data);
269 struct perf_stat_evsel *ps = evsel->stats;
275 *ps->aggr[0].counts.values = avg_stats(&ps->res_stats);
390 struct perf_stat_evsel *ps = evsel->stats;
407 struct perf_counts_values *aggr_counts = &ps->aggr[thread].counts;
416 ps->aggr[thread].nr++;
424 if (ps->aggr) {
430 for (i = 0; i < ps->nr_aggr; i++) {
434 ps_aggr = &ps->aggr[i];
482 struct perf_stat_evsel *ps = counter->stats;
498 * so we can use ps->aggr[0] as the actual output.
500 count = ps->aggr[0].counts.values;
501 update_stats(&ps->res_stats, *count);
604 struct perf_stat_evsel *ps = evsel->stats;
612 struct perf_stat_aggr *aggr = &ps->aggr[idx];
625 struct perf_stat_aggr *aggr = &ps->aggr[idx];
642 struct perf_stat_evsel *ps = evsel->stats;
651 struct perf_stat_aggr *aggr = &ps->aggr[idx];