Home
last modified time | relevance | path

Searched refs:threads (Results 201 - 225 of 929) sorted by relevance

12345678910>>...38

/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Ddbexec.c437 * Allow any handlers in separate threads to complete. in acpi_db_execute()
518 * Prevent acpi_gbl_db_method_info from being modified by multiple threads in acpi_db_method_thread()
533 if (info->threads && (info->num_created < info->num_threads)) { in acpi_db_method_thread()
534 info->threads[info->num_created++] = acpi_os_get_thread_id(); in acpi_db_method_thread()
709 * PARAMETERS: num_threads_arg - Number of threads to create
715 * DESCRIPTION: Create threads to execute method(s)
745 * the created threads with the main thread. in acpi_db_create_execution_threads()
757 * between the created threads. in acpi_db_create_execution_threads()
762 "synchronization between the created threads, %s\n", in acpi_db_create_execution_threads()
782 /* Array to store IDs of threads */ in acpi_db_create_execution_threads()
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dcode-reading.c569 struct perf_thread_map *threads = NULL; in do_test_code_reading() local
613 threads = thread_map__new_by_tid(pid); in do_test_code_reading()
614 if (!threads) { in do_test_code_reading()
619 ret = perf_event__synthesize_thread_map(NULL, threads, in do_test_code_reading()
648 perf_evlist__set_maps(&evlist->core, cpus, threads); in do_test_code_reading()
671 * Both cpus and threads are now owned by evlist in do_test_code_reading()
676 perf_thread_map__get(threads); in do_test_code_reading()
723 perf_thread_map__put(threads); in do_test_code_reading()
/kernel/linux/linux-6.6/tools/lib/perf/
H A Devsel.c114 struct perf_thread_map *threads) in perf_evsel__open()
131 if (threads == NULL) { in perf_evsel__open()
140 threads = empty_thread_map; in perf_evsel__open()
144 perf_evsel__alloc_fd(evsel, perf_cpu_map__nr(cpus), threads->nr) < 0) in perf_evsel__open()
148 for (thread = 0; thread < threads->nr; thread++) { in perf_evsel__open()
162 threads->map[thread].pid, in perf_evsel__open()
505 return evsel->threads; in perf_evsel__threads()
113 perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) perf_evsel__open() argument
/third_party/ltp/testcases/kernel/sched/pthreads/
H A Dpth_str03.c24 * DESCRIPTION : create a tree of threads does calculations, and
51 pthread_t *threads; /* dynamic array of thread id of kids */ member
71 pthread_attr_t attr; /* attributes for created threads */
376 pthread_create(&(info_p->threads[child]), &attr, in doit()
385 &(info_p->threads[child])); in doit()
401 &(info_p->threads[child])); in doit()
405 pthread_join((info_p->threads[child]), &status))) { in doit()
548 tst_resm(TINFO, "Can't create %d threads; max is %d.", in main()
567 if ((child_info[ind].threads = malloc(breadth * sizeof(pthread_t))) == in main()
569 perror("malloc threads"); in main()
[all...]
H A Dpth_str01.c24 * DESCRIPTION : create a tree of threads
52 pthread_attr_t attr; /* attributes for created threads */
387 &(info_p->threads[child])); in doit()
391 pthread_create(&(info_p->threads[child]), &attr, in doit()
400 &(info_p->threads[child])); in doit()
418 &(info_p->threads[child])); in doit()
422 pthread_join((info_p->threads[child]), &status))) { in doit()
592 if ((child_info[ind].threads = malloc(breadth * sizeof(pthread_t))) in main()
594 perror("malloc threads"); in main()
597 memset(child_info[ind].threads, in main()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/
H A Dstress.c21 * -> For each king of mutex, we create 10*F threads (F is a scalability factor)
22 * -> we call those threads 1 to 10.
23 * -> thread 1 sends signal USR2 to the other 9 threads (which have a handler for it)
100 #define N 2 /* N * 10 * 6 * SCALABILITY_FACTOR threads will be created */
115 * for one group of ten threads */
117 pthread_t threads[10]; /* The 10 threads */ member
118 pthread_mutex_t mtx; /* The mutex those threads work on */
120 char sigok; /* Used to tell the threads they can return */
122 int id; /* An identifier for the threads grou
[all...]
/third_party/ltp/testcases/realtime/func/rt-migrate/
H A Drt-migrate.c28 * - Creates N+1 threads with lower real time priorities.
185 "-a priority Priority of the threads" in usage()
186 "-r time Run time (ms) to busy loop the threads (20)\n" in usage()
397 int *threads; in main() local
428 threads = malloc(sizeof(*threads) * nr_tasks); in main()
429 if (!threads) in main()
431 memset(threads, 0, sizeof(*threads) * nr_tasks); in main()
450 threads[ in main()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/signal/
H A Dsigfuz.c46 #define THREADS 16 /* Number of threads */
252 pthread_t *threads; in signal_fuzzer() local
254 threads = malloc(nthread * sizeof(pthread_t)); in signal_fuzzer()
257 rc = pthread_create(&threads[t], NULL, sigfuz_test, in signal_fuzzer()
264 rc = pthread_join(threads[t], NULL); in signal_fuzzer()
269 free(threads); in signal_fuzzer()
284 printf("\t-t\t Amount of threads. (Default = %d)\n", THREADS); in show_help()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dmachine.h33 struct threads { struct
50 struct threads threads[THREADS__TABLE_SIZE]; member
65 static inline struct threads *machine__threads(struct machine *machine, pid_t tid) in machine__threads()
68 return &machine->threads[(unsigned int)tid % THREADS__TABLE_SIZE]; in machine__threads()
H A Dpython.c640 struct perf_thread_map *threads; member
653 pthreads->threads = thread_map__new(pid, tid, uid); in pyrf_thread_map__init()
654 if (pthreads->threads == NULL) in pyrf_thread_map__init()
661 perf_thread_map__put(pthreads->threads); in pyrf_thread_map__delete()
669 return pthreads->threads->nr; in pyrf_thread_map__length()
676 if (i >= pthreads->threads->nr) in pyrf_thread_map__item()
679 return Py_BuildValue("i", pthreads->threads->map[i]); in pyrf_thread_map__item()
832 struct perf_thread_map *threads = NULL; in pyrf_evsel__open() local
835 static char *kwlist[] = { "cpus", "threads", "group", "inherit", NULL }; in pyrf_evsel__open()
842 threads in pyrf_evsel__open()
901 struct perf_thread_map *threads; pyrf_evlist__init() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_ipi.c247 pthread_t threads[2]; in main() local
276 r = pthread_create(&threads[0], NULL, vcpu_thread, vcpu[1]); in main()
279 r = pthread_create(&threads[1], NULL, vcpu_thread, vcpu[2]); in main()
306 cancel_join_vcpu_thread(threads[0], vcpu[1]); in main()
307 cancel_join_vcpu_thread(threads[1], vcpu[2]); in main()
H A Dxapic_ipi_test.c400 pthread_t threads[2]; in main() local
435 r = pthread_create(&threads[0], NULL, vcpu_thread, &params[0]); in main()
454 r = pthread_create(&threads[1], NULL, vcpu_thread, &params[1]); in main()
467 * Cancel threads and wait for them to stop. in main()
469 cancel_join_vcpu_thread(threads[0], params[0].vcpu); in main()
470 cancel_join_vcpu_thread(threads[1], params[1].vcpu); in main()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dmachine.h34 struct threads { struct
52 struct threads threads[THREADS__TABLE_SIZE]; member
73 static inline struct threads *machine__threads(struct machine *machine, pid_t tid) in machine__threads()
76 return &machine->threads[(unsigned int)tid % THREADS__TABLE_SIZE]; in machine__threads()
H A Dpython.c743 struct perf_thread_map *threads; member
756 pthreads->threads = thread_map__new(pid, tid, uid); in pyrf_thread_map__init()
757 if (pthreads->threads == NULL) in pyrf_thread_map__init()
764 perf_thread_map__put(pthreads->threads); in pyrf_thread_map__delete()
772 return perf_thread_map__nr(pthreads->threads); in pyrf_thread_map__length()
779 if (i >= perf_thread_map__nr(pthreads->threads)) in pyrf_thread_map__item()
782 return Py_BuildValue("i", perf_thread_map__pid(pthreads->threads, i)); in pyrf_thread_map__item()
935 struct perf_thread_map *threads = NULL; in pyrf_evsel__open() local
938 static char *kwlist[] = { "cpus", "threads", "group", "inherit", NULL }; in pyrf_evsel__open()
945 threads in pyrf_evsel__open()
1004 struct perf_thread_map *threads; pyrf_evlist__init() local
[all...]
H A Devsel.c375 evsel->core.threads = perf_thread_map__get(orig->core.threads); in evsel__clone()
1476 perf_thread_map__put(evsel->core.threads); in evsel__exit()
1714 struct perf_thread_map *threads, in evsel__ignore_missing_thread()
1717 pid_t ignore_pid = perf_thread_map__pid(threads, thread); in evsel__ignore_missing_thread()
1722 /* The system wide setup does not work with threads. */ in evsel__ignore_missing_thread()
1731 if (threads->nr == 1) in evsel__ignore_missing_thread()
1736 * because thread_map__remove() will decrease threads->nr. in evsel__ignore_missing_thread()
1738 if (update_fds(evsel, nr_cpus, cpu_map_idx, threads->nr, thread)) in evsel__ignore_missing_thread()
1741 if (thread_map__remove(threads, threa in evsel__ignore_missing_thread()
1712 evsel__ignore_missing_thread(struct evsel *evsel, int nr_cpus, int cpu_map_idx, struct perf_thread_map *threads, int thread, int err) evsel__ignore_missing_thread() argument
1792 __evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) __evsel__prepare_open() argument
1867 evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) evsel__prepare_open() argument
2019 evsel__open_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads, int start_cpu_map_idx, int end_cpu_map_idx) evsel__open_cpu() argument
2171 evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) evsel__open() argument
2191 evsel__open_per_thread(struct evsel *evsel, struct perf_thread_map *threads) evsel__open_per_thread() argument
3087 struct perf_thread_map *threads = evsel->core.threads; evsel__store_ids() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dmap_percpu_stats.c174 pthread_t threads[N_THREADS]; in upsert_elements() local
178 for (i = 0; i < ARRAY_SIZE(threads); i++) { in upsert_elements()
179 ret = pthread_create(&i[threads], NULL, patch_map_thread, opts); in upsert_elements()
183 for (i = 0; i < ARRAY_SIZE(threads); i++) { in upsert_elements()
184 ret = pthread_join(i[threads], NULL); in upsert_elements()
286 * N_THREADS threads. Check values, then delete all elements and check in __test()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/signal/
H A Dsigfuz.c46 #define THREADS 16 /* Number of threads */
252 pthread_t *threads; in signal_fuzzer() local
254 threads = malloc(nthread * sizeof(pthread_t)); in signal_fuzzer()
257 rc = pthread_create(&threads[t], NULL, sigfuz_test, in signal_fuzzer()
264 rc = pthread_join(threads[t], NULL); in signal_fuzzer()
269 free(threads); in signal_fuzzer()
284 printf("\t-t\t Amount of threads. (Default = %d)\n", THREADS); in show_help()
/third_party/libuv/src/
H A Dthreadpool.c51 static uv_thread_t* threads; variable
474 if (uv_thread_join(threads + i)) in uv__threadpool_cleanup()
477 if (threads != default_threads) in uv__threadpool_cleanup()
478 uv__free(threads); in uv__threadpool_cleanup()
483 threads = NULL; in uv__threadpool_cleanup()
510 threads = default_threads; in init_threads()
512 threads = uv__malloc(nthreads * sizeof(threads[0])); in init_threads()
513 if (threads == NULL) { in init_threads()
515 threads in init_threads()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/
H A Dselftest_hangcheck.c968 struct active_engine *threads; in __igt_reset_engines() local
989 threads = kmalloc_array(I915_NUM_ENGINES, sizeof(*threads), GFP_KERNEL); in __igt_reset_engines()
990 if (!threads) in __igt_reset_engines()
1012 memset(threads, 0, sizeof(*threads) * I915_NUM_ENGINES); in __igt_reset_engines()
1016 threads[tmp].resets = in __igt_reset_engines()
1025 threads[tmp].engine = other; in __igt_reset_engines()
1026 threads[tmp].flags = flags; in __igt_reset_engines()
1037 threads[tm in __igt_reset_engines()
[all...]
/kernel/linux/linux-5.10/tools/perf/python/
H A Dtracepoint.py20 threads = perf.thread_map(-1)
22 evlist = perf.evlist(cpus, threads)
/kernel/linux/linux-6.6/tools/perf/python/
H A Dtracepoint.py20 threads = perf.thread_map(-1)
22 evlist = perf.evlist(cpus, threads)
/third_party/node/test/parallel/
H A Dtest-trace-events-async-hooks-dynamic.js58 const threads = new Set();
60 threads.add(trace.tid);
/third_party/rust/crates/once_cell/examples/
H A Dbench_acquire.rs16 let threads = in main()
18 for thread in threads { in main()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/
H A DServer.cpp190 for(auto thread : lock.threads()) in Impl()
208 response.threads.push_back(out); in Impl()
330 auto threads = lock.threads(); in Impl()
331 for(auto thread : threads) in Impl()
339 if(clientIsVisualStudio && !threads.empty()) in Impl()
341 event.threadId = threads.front()->id.value(); in Impl()
365 for(auto it : lock.threads()) in Impl()
/kernel/linux/linux-6.6/tools/testing/selftests/timers/
H A Dposix_timers.c207 * Test that all running threads _eventually_ receive CLOCK_PROCESS_CPUTIME_ID
215 pthread_t threads[nthreads]; in check_timer_distribution() local
226 remain = nthreads + 1; /* worker threads + this thread */ in check_timer_distribution()
240 if (pthread_create(&threads[i], NULL, distribution_thread, NULL)) { in check_timer_distribution()
246 /* Wait for all threads to receive the signal. */ in check_timer_distribution()
250 if (pthread_join(threads[i], NULL)) { in check_timer_distribution()
268 printf("based timers if other threads run on the CPU...\n"); in main()

Completed in 20 milliseconds

12345678910>>...38