Home
last modified time | relevance | path

Searched refs:threads (Results 76 - 100 of 539) sorted by relevance

12345678910>>...22

/kernel/linux/linux-6.6/tools/perf/util/
H A Dvalues.c19 pr_debug("failed to allocate read_values threads arrays"); in perf_read_values_init()
22 values->threads = 0; in perf_read_values_init()
54 for (i = 0; i < values->threads; i++) in perf_read_values_destroy()
84 pr_debug("failed to enlarge read_values threads arrays"); in perf_read_values__enlarge_threads()
93 for (i = 0; i < values->threads; i++) in perf_read_values__findnew_thread()
97 if (values->threads == values->threads_max) { in perf_read_values__findnew_thread()
103 i = values->threads; in perf_read_values__findnew_thread()
112 values->threads = i + 1; in perf_read_values__findnew_thread()
134 for (i = 0; i < values->threads; i++) { in perf_read_values__enlarge_counters()
217 for (i = 0; i < values->threads; in perf_read_values__display_pretty()
[all...]
H A Dpfm.c128 struct perf_thread_map *threads) in is_libpfm_event_supported()
148 if (evsel__open(evsel, cpus, threads) < 0) in is_libpfm_event_supported()
181 struct perf_thread_map *threads = thread_map__new_by_tid(0); in print_libpfm_event() local
222 if (is_libpfm_event_supported(name, cpus, threads)) { in print_libpfm_event()
253 if (!is_libpfm_event_supported(name, cpus, threads)) in print_libpfm_event()
268 perf_thread_map__put(threads); in print_libpfm_event()
127 is_libpfm_event_supported(const char *name, struct perf_cpu_map *cpus, struct perf_thread_map *threads) is_libpfm_event_supported() argument
/kernel/linux/linux-5.10/tools/usb/
H A Dffs-test.c357 } threads[] = { variable
399 if (t != threads) { in cleanup_thread()
666 init_thread(threads); in main()
667 ep0_init(threads, legacy_descriptors); in main()
669 for (i = 1; i < sizeof threads / sizeof *threads; ++i) in main()
670 init_thread(threads + i); in main()
672 for (i = 1; i < sizeof threads / sizeof *threads; ++i) in main()
673 start_thread(threads in main()
[all...]
/kernel/linux/linux-6.6/tools/usb/
H A Dffs-test.c357 } threads[] = { variable
399 if (t != threads) { in cleanup_thread()
666 init_thread(threads); in main()
667 ep0_init(threads, legacy_descriptors); in main()
669 for (i = 1; i < sizeof threads / sizeof *threads; ++i) in main()
670 init_thread(threads + i); in main()
672 for (i = 1; i < sizeof threads / sizeof *threads; ++i) in main()
673 start_thread(threads in main()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dsend_signal_sched_switch.c31 pthread_t threads[THREAD_COUNT]; in test_send_signal_sched_switch() local
49 err = pthread_create(threads + i, NULL, worker, NULL); in test_send_signal_sched_switch()
56 pthread_join(threads[i], NULL); in test_send_signal_sched_switch()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dsend_signal_sched_switch.c32 pthread_t threads[THREAD_COUNT]; in serial_test_send_signal_sched_switch() local
50 err = pthread_create(threads + i, NULL, worker, NULL); in serial_test_send_signal_sched_switch()
57 pthread_join(threads[i], NULL); in serial_test_send_signal_sched_switch()
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/
H A DIt_posix_mutex_036.c54 * -- Create N threads. Each is looped M times to acquire the mutex,
93 pthread_t threads[THREAD_NUM]; in Testcase() local
100 /* Create threads */ in Testcase()
102 rc = pthread_create(&threads[i], &pta, TaskF01, NULL); in Testcase()
106 /* Wait to join all threads */ in Testcase()
108 rc = pthread_join(threads[i], NULL); in Testcase()
H A DIt_posix_mutex_040.c47 * If there are threads blocked on the mutex object referenced by 'mutex' when
57 * -- Create N threads. Each is looped M times to acquire the mutex,
95 pthread_t threads[THREAD_NUM]; in Testcase() local
98 /* Create threads */ in Testcase()
100 rc = pthread_create(&threads[i], NULL, TaskF01, NULL); in Testcase()
104 /* Wait to join all threads */ in Testcase()
106 rc = pthread_join(threads[i], NULL); in Testcase()
/kernel/liteos_m/testsuites/sample/posix/mutex/
H A DIt_posix_mutex_036.c48 * -- Create N threads. Each is looped M times to acquire the mutex,
87 pthread_t threads[THREAD_NUM]; in Testcase() local
97 /* Create threads */ in Testcase()
99 rc = pthread_create(&threads[i], &pta, TaskF01, NULL); in Testcase()
103 /* Wait to join all threads */ in Testcase()
105 rc = pthread_join(threads[i], NULL); in Testcase()
H A DIt_posix_mutex_038.c74 pthread_t threads[THREAD_NUM]; in Testcase() local
77 /* Create threads */ in Testcase()
79 rc = pthread_create(&threads[i], NULL, TaskF01, NULL); in Testcase()
83 /* Wait to join all threads */ in Testcase()
85 rc = pthread_join(threads[i], NULL); in Testcase()
/kernel/linux/linux-5.10/tools/perf/scripts/python/
H A Dstat-cpi.py7 threads = [] variable
20 if (thread not in threads):
21 threads.append(thread)
55 for thread in threads:
72 # for thread in threads:
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dopenat-syscall-all-cpus.c30 struct perf_thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); in test__openat_syscall_event_on_all_cpus() local
34 if (threads == NULL) { in test__openat_syscall_event_on_all_cpus()
54 if (evsel__open(evsel, cpus, threads) < 0) { in test__openat_syscall_event_on_all_cpus()
128 perf_thread_map__put(threads); in test__openat_syscall_event_on_all_cpus()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dopenat-syscall-all-cpus.c31 struct perf_thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); in test__openat_syscall_event_on_all_cpus() local
35 if (threads == NULL) { in test__openat_syscall_event_on_all_cpus()
56 if (evsel__open(evsel, cpus, threads) < 0) { in test__openat_syscall_event_on_all_cpus()
123 perf_thread_map__put(threads); in test__openat_syscall_event_on_all_cpus()
H A Dperf-time-to-tsc.c79 struct perf_thread_map *threads = NULL; in test__perf_time_to_tsc() local
93 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc()
94 CHECK_NOT_NULL__(threads); in test__perf_time_to_tsc()
102 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__perf_time_to_tsc()
204 perf_thread_map__put(threads); in test__perf_time_to_tsc()
/kernel/linux/linux-6.6/tools/perf/scripts/python/
H A Dstat-cpi.py7 threads = [] variable
20 if (thread not in threads):
21 threads.append(thread)
55 for thread in threads:
72 # for thread in threads:
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/
H A DIt_posix_pthread_107.c96 pthread_t threads[3]; // 3, need 3 pthread for test. in Testcase() local
105 rc = pthread_create(&threads[0], &attr, PthreadF01, (void *)t1); in Testcase()
108 rc = pthread_create(&threads[1], &attr, PthreadF02, (void *)t2); in Testcase()
111 /* Wait for all threads to complete */ in Testcase()
113 rc = pthread_join(threads[i], NULL); in Testcase()
/kernel/liteos_m/testsuites/sample/posix/pthread/
H A DIt_posix_pthread_013.c90 pthread_t threads[3]; // 3, need 3 pthread for test. in Testcase() local
99 rc = pthread_create(&threads[0], &attr, PthreadF01, (void *)t1); in Testcase()
102 rc = pthread_create(&threads[1], &attr, PthreadF02, (void *)t2); in Testcase()
106 rc = pthread_join(threads[i], NULL); in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
H A DIt_posix_pthread_107.cpp89 pthread_t threads[3]; in Testcase() local
97 rc = pthread_create(&threads[0], &attr, pthread_f01, (void *)t1); in Testcase()
100 rc = pthread_create(&threads[1], &attr, pthread_f02, (void *)t2); in Testcase()
106 rc = pthread_join(threads[i], NULL); in Testcase()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/
H A Di915_request.c464 struct smoke_thread *threads; in mock_breadcrumbs_smoketest() local
470 * threads. A very simple test to only catch the most egregious of bugs. in mock_breadcrumbs_smoketest()
474 threads = kcalloc(ncpus, sizeof(*threads), GFP_KERNEL); in mock_breadcrumbs_smoketest()
475 if (!threads) in mock_breadcrumbs_smoketest()
502 threads[n].worker = worker; in mock_breadcrumbs_smoketest()
503 threads[n].t = &t; in mock_breadcrumbs_smoketest()
504 threads[n].stop = false; in mock_breadcrumbs_smoketest()
505 threads[n].result = 0; in mock_breadcrumbs_smoketest()
507 kthread_init_work(&threads[ in mock_breadcrumbs_smoketest()
1618 struct parallel_thread *threads; live_parallel_engines() local
1732 struct smoke_thread *threads; live_breadcrumbs_smoketest() local
[all...]
/kernel/linux/linux-5.10/tools/lib/perf/
H A Devsel.c67 struct perf_thread_map *threads) in perf_evsel__open()
83 if (threads == NULL) { in perf_evsel__open()
92 threads = empty_thread_map; in perf_evsel__open()
96 perf_evsel__alloc_fd(evsel, cpus->nr, threads->nr) < 0) in perf_evsel__open()
100 for (thread = 0; thread < threads->nr; thread++) { in perf_evsel__open()
104 threads->map[thread].pid, in perf_evsel__open()
265 return evsel->threads; in perf_evsel__threads()
66 perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) perf_evsel__open() argument
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/dscr/
H A Ddscr_default_test.c6 * it's sysfs interface and then verifies that all threads
62 pthread_t threads[THREADS]; in dscr_default() local
74 /* Spawn all testing threads */ in dscr_default()
76 if (pthread_create(&threads[i], NULL, do_test, (void *)i)) { in dscr_default()
105 if (pthread_join(threads[i], (void **)&(status[i]))) { in dscr_default()
/kernel/linux/linux-5.10/tools/perf/arch/x86/tests/
H A Dperf-time-to-tsc.c59 struct perf_thread_map *threads = NULL; in test__perf_time_to_tsc() local
72 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc()
73 CHECK_NOT_NULL__(threads); in test__perf_time_to_tsc()
81 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__perf_time_to_tsc()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/
H A Dhardware_disable_test.c92 pthread_t threads[VCPU_NUM]; in run_test() local
107 check_create_thread(&threads[i], NULL, run_vcpu, vcpu); in run_test()
108 check_set_affinity(threads[i], &cpu_set); in run_test()
116 pr_debug("%s: [%d] all threads launched\n", __func__, run); in run_test()
119 check_join(threads[i], &b); in run_test()
/kernel/linux/linux-5.10/drivers/dma-buf/
H A Dst-dma-fence-chain.c450 struct task_struct **threads; in find_race() local
459 threads = kmalloc_array(ncpus, sizeof(*threads), GFP_KERNEL); in find_race()
460 if (!threads) { in find_race()
467 threads[i] = kthread_run(__find_race, &data, "dmabuf/%d", i); in find_race()
468 if (IS_ERR(threads[i])) { in find_race()
473 get_task_struct(threads[i]); in find_race()
483 ret = kthread_stop(threads[i]); in find_race()
486 put_task_struct(threads[i]); in find_race()
488 kfree(threads); in find_race()
[all...]
/kernel/linux/linux-6.6/drivers/dma-buf/
H A Dst-dma-fence-chain.c446 struct task_struct **threads; in find_race() local
455 threads = kmalloc_array(ncpus, sizeof(*threads), GFP_KERNEL); in find_race()
456 if (!threads) { in find_race()
463 threads[i] = kthread_run(__find_race, &data, "dmabuf/%d", i); in find_race()
464 if (IS_ERR(threads[i])) { in find_race()
469 get_task_struct(threads[i]); in find_race()
479 ret = kthread_stop(threads[i]); in find_race()
482 put_task_struct(threads[i]); in find_race()
484 kfree(threads); in find_race()
[all...]

Completed in 15 milliseconds

12345678910>>...22