Lines Matching full:counts
5 #include "counts.h"
10 struct perf_counts *counts = zalloc(sizeof(*counts)); in perf_counts__new() local
12 if (counts) { in perf_counts__new()
17 free(counts); in perf_counts__new()
21 counts->values = values; in perf_counts__new()
24 return counts; in perf_counts__new()
27 void perf_counts__delete(struct perf_counts *counts) in perf_counts__delete() argument
29 if (counts) { in perf_counts__delete()
30 xyarray__delete(counts->values); in perf_counts__delete()
31 free(counts); in perf_counts__delete()
35 static void perf_counts__reset(struct perf_counts *counts) in perf_counts__reset() argument
37 xyarray__reset(counts->values); in perf_counts__reset()
42 perf_counts__reset(evsel->counts); in perf_evsel__reset_counts()
47 evsel->counts = perf_counts__new(ncpus, nthreads); in perf_evsel__alloc_counts()
48 return evsel->counts != NULL ? 0 : -ENOMEM; in perf_evsel__alloc_counts()
53 perf_counts__delete(evsel->counts); in perf_evsel__free_counts()
54 evsel->counts = NULL; in perf_evsel__free_counts()