1 #ifndef __PERF_COUNTS_H
2 #define __PERF_COUNTS_H
6 struct perf_counts_values {
20 struct perf_counts_values aggr;
21 struct xyarray *values;
25 static inline struct perf_counts_values*
26 perf_counts(struct perf_counts *counts, int cpu, int thread)
28 return xyarray__entry(counts->values, cpu, thread);
31 struct perf_counts *perf_counts__new(int ncpus, int nthreads);
32 void perf_counts__delete(struct perf_counts *counts);
34 void perf_evsel__reset_counts(struct perf_evsel *evsel);
35 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus, int nthreads);
36 void perf_evsel__free_counts(struct perf_evsel *evsel);
38 #endif /* __PERF_COUNTS_H */