Lines Matching refs:ncpus
145 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_fd() argument
148 evsel->fd = xyarray__new(ncpus, nthreads, sizeof(int)); in perf_evsel__alloc_fd()
151 for (cpu = 0; cpu < ncpus; cpu++) { in perf_evsel__alloc_fd()
161 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_id() argument
163 evsel->sample_id = xyarray__new(ncpus, nthreads, sizeof(struct perf_sample_id)); in perf_evsel__alloc_id()
167 evsel->id = zalloc(ncpus * nthreads * sizeof(u64)); in perf_evsel__alloc_id()
177 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus) in perf_evsel__alloc_counts() argument
180 (ncpus * sizeof(struct perf_counts_values)))); in perf_evsel__alloc_counts()
198 void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__close_fd() argument
202 for (cpu = 0; cpu < ncpus; cpu++) in perf_evsel__close_fd()
253 int ncpus, int nthreads, bool scale) in __perf_evsel__read() argument
261 for (cpu = 0; cpu < ncpus; cpu++) { in __perf_evsel__read()
348 void perf_evsel__close(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__close() argument
353 perf_evsel__close_fd(evsel, ncpus, nthreads); in perf_evsel__close()