Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 – 12 of 12) sorted by relevance

/tools/perf/bench/
Dfutex-requeue.c41 static unsigned int ncpus, threads_starting, nthreads = 0; variable
45 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
65 nthreads, in print_summary()
89 threads_starting = nthreads; in block_threads()
92 for (i = 0; i < nthreads; i++) { in block_threads()
129 if (!nthreads) in bench_futex_requeue()
130 nthreads = ncpus; in bench_futex_requeue()
132 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_requeue()
139 if (nrequeue > nthreads) in bench_futex_requeue()
140 nrequeue = nthreads; in bench_futex_requeue()
[all …]
Dfutex-wake.c42 static unsigned int ncpus, threads_starting, nthreads = 0; variable
46 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
84 nthreads, in print_summary()
95 threads_starting = nthreads; in block_threads()
98 for (i = 0; i < nthreads; i++) { in block_threads()
137 if (!nthreads) in bench_futex_wake()
138 nthreads = ncpus; in bench_futex_wake()
140 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_wake()
149 getpid(), nthreads, fshared ? "shared":"private", &futex1, nwakes); in bench_futex_wake()
176 while (nwoken != nthreads) in bench_futex_wake()
[all …]
Dfutex-lock-pi.c33 static unsigned int ncpus, nthreads = 0; variable
42 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
117 threads_starting = nthreads; in create_threads()
119 for (i = 0; i < nthreads; i++) { in create_threads()
158 if (!nthreads) in bench_futex_lock_pi()
159 nthreads = ncpus; in bench_futex_lock_pi()
161 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_lock_pi()
169 getpid(), nthreads, nsecs); in bench_futex_lock_pi()
176 threads_starting = nthreads; in bench_futex_lock_pi()
192 for (i = 0; i < nthreads; i++) { in bench_futex_lock_pi()
[all …]
Dfutex-hash.c29 static unsigned int nthreads = 0; variable
50 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
136 if (!nthreads) /* default to the number of CPUs */ in bench_futex_hash()
137 nthreads = ncpus; in bench_futex_hash()
139 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_hash()
147 getpid(), nthreads, nfutexes, fshared ? "shared":"private", nsecs); in bench_futex_hash()
154 threads_starting = nthreads; in bench_futex_hash()
157 for (i = 0; i < nthreads; i++) { in bench_futex_hash()
187 for (i = 0; i < nthreads; i++) { in bench_futex_hash()
198 for (i = 0; i < nthreads; i++) { in bench_futex_hash()
/tools/perf/util/
Dcounts.c5 struct perf_counts *perf_counts__new(int ncpus, int nthreads) in perf_counts__new() argument
12 values = xyarray__new(ncpus, nthreads, sizeof(struct perf_counts_values)); in perf_counts__new()
42 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_counts() argument
44 evsel->counts = perf_counts__new(ncpus, nthreads); in perf_evsel__alloc_counts()
Dcounts.h30 struct perf_counts *perf_counts__new(int ncpus, int nthreads);
34 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus, int nthreads);
Dstat.c131 int ncpus, int nthreads) in perf_evsel__alloc_prev_raw_counts() argument
135 counts = perf_counts__new(ncpus, nthreads); in perf_evsel__alloc_prev_raw_counts()
151 int nthreads = thread_map__nr(evsel->threads); in perf_evsel__alloc_stats() local
154 perf_evsel__alloc_counts(evsel, ncpus, nthreads) < 0 || in perf_evsel__alloc_stats()
155 (alloc_raw && perf_evsel__alloc_prev_raw_counts(evsel, ncpus, nthreads) < 0)) in perf_evsel__alloc_stats()
291 int nthreads = thread_map__nr(counter->threads); in process_counter_maps() local
296 nthreads = 1; in process_counter_maps()
298 for (thread = 0; thread < nthreads; thread++) { in process_counter_maps()
Devsel.c986 static int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_fd() argument
989 nthreads = 1; in perf_evsel__alloc_fd()
991 evsel->fd = xyarray__new(ncpus, nthreads, sizeof(int)); in perf_evsel__alloc_fd()
996 for (thread = 0; thread < nthreads; thread++) { in perf_evsel__alloc_fd()
1005 static int perf_evsel__run_ioctl(struct perf_evsel *evsel, int ncpus, int nthreads, in perf_evsel__run_ioctl() argument
1011 nthreads = 1; in perf_evsel__run_ioctl()
1014 for (thread = 0; thread < nthreads; thread++) { in perf_evsel__run_ioctl()
1026 int perf_evsel__apply_filter(struct perf_evsel *evsel, int ncpus, int nthreads, in perf_evsel__apply_filter() argument
1029 return perf_evsel__run_ioctl(evsel, ncpus, nthreads, in perf_evsel__apply_filter()
1076 int nthreads = thread_map__nr(evsel->threads); in perf_evsel__enable() local
[all …]
Devsel.h220 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads);
221 void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
241 int perf_evsel__apply_filter(struct perf_evsel *evsel, int ncpus, int nthreads,
252 void perf_evsel__close(struct perf_evsel *evsel, int ncpus, int nthreads);
Devlist.c1403 nthreads = thread_map__nr(evlist->threads); in perf_evlist__apply_filters() local
1413 err = perf_evsel__apply_filter(evsel, ncpus, nthreads, evsel->filter); in perf_evlist__apply_filters()
1607 int nthreads = thread_map__nr(evlist->threads); in perf_evlist__close() local
1611 perf_evsel__close(evsel, n, nthreads); in perf_evlist__close()
/tools/perf/
Dbuiltin-stat.c295 int nthreads = thread_map__nr(evsel_list->threads); in read_counter() local
307 nthreads = 1; in read_counter()
309 for (thread = 0; thread < nthreads; thread++) { in read_counter()
1247 int nthreads = thread_map__nr(counter->threads); in print_aggr_thread() local
1252 for (thread = 0; thread < nthreads; thread++) { in print_aggr_thread()
Dbuiltin-script.c922 int nthreads = thread_map__nr(counter->threads); in __process_stat() local
928 nthreads = 1; in __process_stat()
936 for (thread = 0; thread < nthreads; thread++) { in __process_stat()