Lines Matching refs:counts
7 struct perf_counts *counts = zalloc(sizeof(*counts)); in perf_counts__new() local
9 if (counts) { in perf_counts__new()
14 free(counts); in perf_counts__new()
18 counts->values = values; in perf_counts__new()
21 return counts; in perf_counts__new()
24 void perf_counts__delete(struct perf_counts *counts) in perf_counts__delete() argument
26 if (counts) { in perf_counts__delete()
27 xyarray__delete(counts->values); in perf_counts__delete()
28 free(counts); in perf_counts__delete()
32 static void perf_counts__reset(struct perf_counts *counts) in perf_counts__reset() argument
34 xyarray__reset(counts->values); in perf_counts__reset()
39 perf_counts__reset(evsel->counts); in perf_evsel__reset_counts()
44 evsel->counts = perf_counts__new(ncpus, nthreads); in perf_evsel__alloc_counts()
45 return evsel->counts != NULL ? 0 : -ENOMEM; in perf_evsel__alloc_counts()
50 perf_counts__delete(evsel->counts); in perf_evsel__free_counts()
51 evsel->counts = NULL; in perf_evsel__free_counts()