Lines Matching refs:evsel
5 #include "evsel.h"
53 void evsel__reset_counts(struct evsel *evsel)
55 perf_counts__reset(evsel->counts);
58 int evsel__alloc_counts(struct evsel *evsel)
60 struct perf_cpu_map *cpus = evsel__cpus(evsel);
61 int nthreads = perf_thread_map__nr(evsel->core.threads);
63 evsel->counts = perf_counts__new(perf_cpu_map__nr(cpus), nthreads);
64 return evsel->counts != NULL ? 0 : -ENOMEM;
67 void evsel__free_counts(struct evsel *evsel)
69 perf_counts__delete(evsel->counts);
70 evsel->counts = NULL;