Searched refs:threads (Results 26 - 50 of 271) sorted by relevance

1234567891011

/linux-master/arch/loongarch/include/asm/
H A Dhardirq.h9 #include <linux/threads.h>
/linux-master/arch/arm64/include/asm/
H A Dcpu_ops.h9 #include <linux/threads.h>
/linux-master/tools/perf/tests/
H A Dopenat-syscall.c23 struct perf_thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); local
27 if (threads == NULL) {
40 if (evsel__open_per_thread(evsel, threads) < 0) {
70 perf_thread_map__put(threads);
H A Devent-times.c62 struct perf_thread_map *threads; local
67 threads = thread_map__new(-1, getpid(), UINT_MAX);
68 if (threads == NULL) {
75 err = evsel__open_per_thread(evsel, threads);
81 perf_thread_map__put(threads);
88 struct perf_thread_map *threads; local
93 threads = thread_map__new(-1, getpid(), UINT_MAX);
94 if (threads == NULL) {
99 err = evsel__open_per_thread(evsel, threads);
101 perf_thread_map__put(threads);
[all...]
H A Dmmap-basic.c36 struct perf_thread_map *threads; local
49 threads = thread_map__new(-1, getpid(), UINT_MAX);
50 if (threads == NULL) {
77 perf_evlist__set_maps(&evlist->core, cpus, threads);
98 if (evsel__open(evsels[i], cpus, threads) < 0) {
168 perf_thread_map__put(threads);
175 struct perf_thread_map *threads; local
188 threads = perf_thread_map__new_dummy();
189 TEST_ASSERT_VAL("failed to create threads", threads);
[all...]
H A Dtask-exit.c55 struct perf_thread_map *threads; local
68 * Create maps of threads and cpus to monitor. In this case
69 * we start with all threads and cpus (-1, -1) but then in
74 threads = thread_map__new_by_tid(-1);
75 if (!cpus || !threads) {
81 perf_evlist__set_maps(&evlist->core, cpus, threads);
150 perf_thread_map__put(threads);
H A Dsw-clock.c47 struct perf_thread_map *threads = NULL; local
66 threads = thread_map__new_by_tid(getpid());
67 if (!cpus || !threads) {
73 perf_evlist__set_maps(&evlist->core, cpus, threads);
132 perf_thread_map__put(threads);
H A Dkeep-tracking.c74 struct perf_thread_map *threads = NULL; local
81 threads = thread_map__new(-1, getpid(), UINT_MAX);
82 CHECK_NOT_NULL__(threads);
90 perf_evlist__set_maps(&evlist->core, cpus, threads);
159 perf_thread_map__put(threads);
H A Dmmap-thread-lookup.c32 static struct thread_data threads[THREADS]; variable in typeref:struct:thread_data
81 struct thread_data *td = &threads[i];
101 struct thread_data *td0 = &threads[0];
118 struct thread_data *td0 = &threads[0];
127 err = pthread_join(threads[i].pt, NULL);
162 * The threads_create will not return before all threads
168 TEST_ASSERT_VAL("failed to create threads", !threads_create());
178 TEST_ASSERT_VAL("failed to destroy threads", !threads_destroy());
186 struct thread_data *td = &threads[i];
216 * This test creates 'THREADS' number of threads (includin
[all...]
/linux-master/arch/riscv/include/asm/
H A Dcpu_ops.h11 #include <linux/threads.h>
/linux-master/tools/perf/bench/
H A Dbreakpoint.c33 OPT_UINTEGER('t', "threads", &thread_params.nthreads, "Specify amount of threads"),
89 pthread_t *threads; local
91 threads = calloc(thread_params.nthreads, sizeof(threads[0]));
92 if (!threads)
98 if (pthread_create(&threads[i], NULL, passive_thread, &done))
104 pthread_join(threads[i], NULL);
106 free(threads);
111 // then starts nparallel threads whic
203 pthread_t *threads; local
[all...]
/linux-master/tools/testing/selftests/sync/
H A Dsync_stress_consumer.c56 int threads; member in struct:__anon15381
112 int n = test_data_mpsc.threads;
143 /* Release the producer threads */
145 "Failure releasing producer threads\n");
160 pthread_t threads[n]; local
169 test_data_mpsc.threads = n;
174 pthread_create(&threads[i], NULL, (void * (*)(void *))
182 pthread_join(threads[i], NULL);
/linux-master/tools/testing/selftests/powerpc/math/
H A Dvsx_preempt.c7 * uses many threads and a long wait. As such, a successful test
27 * worker threads
92 int i, rc, threads; local
97 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR;
98 tids = malloc(threads * sizeof(pthread_t));
102 threads_starting = threads;
103 for (i = 0; i < threads; i++) {
125 for (i = 0; i < threads; i++) {
/linux-master/arch/powerpc/include/asm/
H A Dhardirq.h5 #include <linux/threads.h>
/linux-master/arch/xtensa/include/asm/
H A Dfixmap.h17 #include <linux/threads.h>
/linux-master/arch/parisc/include/asm/
H A Dhardirq.h12 #include <linux/threads.h>
/linux-master/arch/csky/include/asm/
H A Dfixmap.h9 #include <linux/threads.h>
H A Dsmp.h8 #include <linux/threads.h>
/linux-master/include/linux/
H A Dmap_benchmark.h23 __u32 threads; /* how many threads will do map/unmap in parallel */ member in struct:map_benchmark
/linux-master/arch/mips/include/asm/
H A Dfixmap.h19 #include <linux/threads.h>
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsend_signal_sched_switch.c32 pthread_t threads[THREAD_COUNT]; local
50 err = pthread_create(threads + i, NULL, worker, NULL);
57 pthread_join(threads[i], NULL);
/linux-master/tools/testing/radix-tree/
H A Diteration_check.c15 static pthread_t threads[NUM_THREADS]; variable
178 if (pthread_create(&threads[0], NULL, tagged_iteration_fn, NULL)) {
182 if (pthread_create(&threads[1], NULL, untagged_iteration_fn, NULL)) {
186 if (pthread_create(&threads[2], NULL, add_entries_fn, NULL)) {
190 if (pthread_create(&threads[3], NULL, remove_entries_fn, NULL)) {
194 if (pthread_create(&threads[4], NULL, tag_entries_fn, NULL)) {
203 if (pthread_join(threads[i], NULL)) {
H A Dregression1.c168 static pthread_t *threads; variable
180 threads = malloc(nr_threads * sizeof(*threads));
184 if (pthread_create(&threads[i], NULL, regression1_fn, (void *)arg)) {
191 if (pthread_join(threads[i], NULL)) {
197 free(threads);
/linux-master/tools/testing/selftests/powerpc/dscr/
H A Ddscr_default_test.c6 * it's sysfs interface and then verifies that all threads
121 struct random_thread_args threads[THREADS]; local
137 threads[i].expected_system_dscr = &expected_system_dscr;
138 threads[i].rw_lock = &rw_lock;
139 threads[i].barrier = &barrier;
141 FAIL_IF(pthread_create(&threads[i].thread_id, NULL,
142 dscr_default_random_thread, (void *)&threads[i]));
146 FAIL_IF(pthread_join(threads[i].thread_id, NULL));
H A Ddscr_explicit_test.c135 struct random_thread_args threads[THREADS]; local
143 threads[i].do_yields = i % 2 == 0;
144 threads[i].barrier = &barrier;
146 FAIL_IF(pthread_create(&threads[i].thread_id, NULL,
147 dscr_explicit_random_thread, (void *)&threads[i]));
151 FAIL_IF(pthread_join(threads[i].thread_id, NULL));

Completed in 280 milliseconds

1234567891011