Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/linux-6.3-rc2/tools/perf/util/
A Dthread_map.c59 return threads; in thread_map__new_by_pid()
72 return threads; in thread_map__new_by_tid()
131 perf_thread_map__set_pid(threads, threads->nr + i, in __thread_map__new_all_cpus()
145 return threads; in __thread_map__new_all_cpus()
148 free(threads); in __thread_map__new_all_cpus()
218 threads = nt; in thread_map__new_by_pid_str()
230 if (threads) in thread_map__new_by_pid_str()
283 if (threads) in thread_map__new_by_tid_str()
312 threads->nr, threads->nr > 1 ? "s" : ""); in thread_map__fprintf()
392 if (threads) in thread_map__new_event()
[all …]
A Dvalues.c22 values->threads = 0; in perf_read_values_init()
54 for (i = 0; i < values->threads; i++) in perf_read_values_destroy()
93 for (i = 0; i < values->threads; i++) 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; i++) { in perf_read_values__display_pretty()
238 for (i = 0; i < values->threads; i++) { in perf_read_values__display_pretty()
261 for (i = 0; i < values->threads; i++) { in perf_read_values__display_raw()
277 for (i = 0; i < values->threads; i++) { in perf_read_values__display_raw()
[all …]
/linux-6.3-rc2/tools/perf/tests/
A Dthread-map.c69 struct perf_thread_map *threads; in process_event() local
86 perf_thread_map__put(threads); in process_event()
92 struct perf_thread_map *threads; in test__thread_map_synthesize() local
101 thread_map__read_comms(threads); in test__thread_map_synthesize()
106 perf_thread_map__put(threads); in test__thread_map_synthesize()
112 struct perf_thread_map *threads; in test__thread_map_remove() local
122 threads); in test__thread_map_remove()
128 !thread_map__remove(threads, 0)); in test__thread_map_remove()
136 !thread_map__remove(threads, 0)); in test__thread_map_remove()
144 thread_map__remove(threads, 0)); in test__thread_map_remove()
[all …]
A Devent-times.c62 struct perf_thread_map *threads; in attach__current_disabled() local
67 threads = thread_map__new(-1, getpid(), UINT_MAX); in attach__current_disabled()
68 if (threads == NULL) { in attach__current_disabled()
75 err = evsel__open_per_thread(evsel, threads); in attach__current_disabled()
81 perf_thread_map__put(threads); in attach__current_disabled()
88 struct perf_thread_map *threads; in attach__current_enabled() local
93 threads = thread_map__new(-1, getpid(), UINT_MAX); in attach__current_enabled()
94 if (threads == NULL) { in attach__current_enabled()
99 err = evsel__open_per_thread(evsel, threads); in attach__current_enabled()
101 perf_thread_map__put(threads); in attach__current_enabled()
A Dmmap-basic.c36 struct perf_thread_map *threads; in test__basic_mmap() local
49 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__basic_mmap()
50 if (threads == NULL) { in test__basic_mmap()
77 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__basic_mmap()
98 if (evsel__open(evsels[i], cpus, threads) < 0) { in test__basic_mmap()
168 perf_thread_map__put(threads); in test__basic_mmap()
175 struct perf_thread_map *threads; in test_stat_user_read() local
188 threads = perf_thread_map__new_dummy(); in test_stat_user_read()
191 perf_thread_map__set_pid(threads, 0, 0); in test_stat_user_read()
196 err = perf_evsel__open(evsel, NULL, threads); in test_stat_user_read()
[all …]
/linux-6.3-rc2/tools/lib/perf/tests/
A Dtest-threadmap.c16 struct perf_thread_map *threads; in test_threadmap_array() local
19 threads = perf_thread_map__new_array(nr, array); in test_threadmap_array()
20 __T("Failed to allocate new thread map", threads); in test_threadmap_array()
30 perf_thread_map__set_pid(threads, i, i * 100); in test_threadmap_array()
40 perf_thread_map__put(threads); in test_threadmap_array()
48 struct perf_thread_map *threads; in test_threadmap() local
56 threads = perf_thread_map__new_dummy(); in test_threadmap()
57 if (!threads) in test_threadmap()
60 perf_thread_map__get(threads); in test_threadmap()
61 perf_thread_map__put(threads); in test_threadmap()
[all …]
A Dtest-evsel.c56 struct perf_thread_map *threads; in test_stat_thread() local
64 threads = perf_thread_map__new_dummy(); in test_stat_thread()
81 perf_thread_map__put(threads); in test_stat_thread()
88 struct perf_thread_map *threads; in test_stat_thread_enable() local
97 threads = perf_thread_map__new_dummy(); in test_stat_thread_enable()
123 perf_thread_map__put(threads); in test_stat_thread_enable()
130 struct perf_thread_map *threads; in test_stat_user_read() local
191 perf_thread_map__put(threads); in test_stat_user_read()
293 struct perf_thread_map *threads; in test_stat_read_format() local
331 perf_thread_map__put(threads); in test_stat_read_format()
[all …]
A Dtest-evlist.c95 struct perf_thread_map *threads; in test_stat_thread() local
108 threads = perf_thread_map__new_dummy(); in test_stat_thread()
143 perf_thread_map__put(threads); in test_stat_thread()
150 struct perf_thread_map *threads; in test_stat_thread_enable() local
165 threads = perf_thread_map__new_dummy(); in test_stat_thread_enable()
209 perf_thread_map__put(threads); in test_stat_thread_enable()
219 struct perf_thread_map *threads; in test_mmap_thread() local
312 perf_thread_map__put(threads); in test_mmap_thread()
443 struct perf_thread_map *threads; in test_stat_multiplexing() local
490 perf_thread_map__put(threads); in test_stat_multiplexing()
[all …]
/linux-6.3-rc2/tools/lib/perf/
A Dthreadmap.c50 if (!threads) in perf_thread_map__new_array()
56 threads->nr = nr_threads; in perf_thread_map__new_array()
57 refcount_set(&threads->refcnt, 1); in perf_thread_map__new_array()
59 return threads; in perf_thread_map__new_array()
69 if (threads) { in perf_thread_map__delete()
72 WARN_ONCE(refcount_read(&threads->refcnt) != 0, in perf_thread_map__delete()
74 for (i = 0; i < threads->nr; i++) in perf_thread_map__delete()
75 free(perf_thread_map__comm(threads, i)); in perf_thread_map__delete()
76 free(threads); in perf_thread_map__delete()
93 int perf_thread_map__nr(struct perf_thread_map *threads) in perf_thread_map__nr() argument
[all …]
A Devlist.c56 perf_thread_map__put(evsel->threads); in __perf_evlist__propagate_maps()
57 evsel->threads = perf_thread_map__new_dummy(); in __perf_evlist__propagate_maps()
59 perf_thread_map__put(evsel->threads); in __perf_evlist__propagate_maps()
60 evsel->threads = perf_thread_map__get(evlist->threads); in __perf_evlist__propagate_maps()
140 perf_thread_map__put(evlist->threads); in perf_evlist__exit()
143 evlist->threads = NULL; in perf_evlist__exit()
161 struct perf_thread_map *threads) in perf_evlist__set_maps() argument
175 if (threads != evlist->threads) { in perf_evlist__set_maps()
176 perf_thread_map__put(evlist->threads); in perf_evlist__set_maps()
177 evlist->threads = perf_thread_map__get(threads); in perf_evlist__set_maps()
[all …]
/linux-6.3-rc2/tools/perf/bench/
A Dbreakpoint.c83 pthread_t *threads; in breakpoint_thread() local
85 threads = calloc(thread_params.nthreads, sizeof(threads[0])); in breakpoint_thread()
86 if (!threads) in breakpoint_thread()
98 pthread_join(threads[i], NULL); in breakpoint_thread()
100 free(threads); in breakpoint_thread()
191 pthread_t *threads; in bench_breakpoint_enable() local
202 threads = calloc(nthreads, sizeof(threads[0])); in bench_breakpoint_enable()
203 if (!threads) in bench_breakpoint_enable()
207 if (pthread_create(&threads[i], NULL, in bench_breakpoint_enable()
224 pthread_join(threads[i], NULL); in bench_breakpoint_enable()
[all …]
A Dsynthesize.c62 struct perf_thread_map *threads, in do_run_single_threaded() argument
81 target, threads, in do_run_single_threaded()
116 struct perf_thread_map *threads; in run_single_threaded() local
125 threads = thread_map__new_by_pid(getpid()); in run_single_threaded()
126 if (!threads) { in run_single_threaded()
136 err = do_run_single_threaded(session, threads, &target, false); in run_single_threaded()
140 err = do_run_single_threaded(session, threads, &target, true); in run_single_threaded()
143 if (threads) in run_single_threaded()
144 perf_thread_map__put(threads); in run_single_threaded()
/linux-6.3-rc2/tools/testing/selftests/powerpc/math/
A Dvmx_signal.c95 int i, j, rc, threads; in test_signal_vmx() local
102 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; in test_signal_vmx()
103 tids = malloc(threads * sizeof(pthread_t)); in test_signal_vmx()
107 threads_starting = threads; in test_signal_vmx()
108 for (i = 0; i < threads; i++) { in test_signal_vmx()
114 printf("\tWaiting for %d workers to start... %d", threads, threads_starting); in test_signal_vmx()
124 for (j = 0; j < threads; j++) { in test_signal_vmx()
133 for (i = 0; i < threads; i++) { in test_signal_vmx()
A Dfpu_preempt.c57 int i, rc, threads; in test_preempt_fpu() local
60 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; in test_preempt_fpu()
61 tids = malloc((threads) * sizeof(pthread_t)); in test_preempt_fpu()
65 threads_starting = threads; in test_preempt_fpu()
66 for (i = 0; i < threads; i++) { in test_preempt_fpu()
88 for (i = 0; i < threads; i++) { in test_preempt_fpu()
A Dfpu_signal.c77 int i, j, rc, threads; in test_signal_fpu() local
81 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; in test_signal_fpu()
82 tids = malloc(threads * sizeof(pthread_t)); in test_signal_fpu()
86 threads_starting = threads; in test_signal_fpu()
87 for (i = 0; i < threads; i++) { in test_signal_fpu()
100 for (j = 0; j < threads; j++) { in test_signal_fpu()
109 for (i = 0; i < threads; i++) { in test_signal_fpu()
A Dvmx_preempt.c57 int i, rc, threads; in test_preempt_vmx() local
63 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; in test_preempt_vmx()
64 tids = malloc(threads * sizeof(pthread_t)); in test_preempt_vmx()
68 threads_starting = threads; in test_preempt_vmx()
69 for (i = 0; i < threads; i++) { in test_preempt_vmx()
91 for (i = 0; i < threads; i++) { in test_preempt_vmx()
A Dvsx_preempt.c92 int i, rc, threads; in test_preempt_vsx() local
97 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; in test_preempt_vsx()
98 tids = malloc(threads * sizeof(pthread_t)); in test_preempt_vsx()
102 threads_starting = threads; in test_preempt_vsx()
103 for (i = 0; i < threads; i++) { in test_preempt_vsx()
125 for (i = 0; i < threads; i++) { in test_preempt_vsx()
/linux-6.3-rc2/tools/testing/selftests/dma/
A Ddma_map_benchmark.c29 int threads = 1, seconds = 20, node = -1; in main() local
41 threads = atoi(optarg); in main()
66 if (threads <= 0 || threads > DMA_MAP_MAX_THREADS) { in main()
109 map.threads = threads; in main()
122 threads, seconds, node, dir[directions], granule); in main()
/linux-6.3-rc2/tools/lib/perf/Documentation/examples/
A Dcounting.c23 struct perf_thread_map *threads; in main() local
40 threads = perf_thread_map__new_dummy(); in main()
41 if (!threads) { in main()
45 perf_thread_map__set_pid(threads, 0, 0); in main()
63 perf_evlist__set_maps(evlist, NULL, threads); in main()
81 perf_thread_map__put(threads); in main()
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/
A Dselftest_slpc.c451 struct slpc_thread *threads; in live_slpc_tile_interaction() local
454 threads = kcalloc(I915_MAX_GT, sizeof(*threads), GFP_KERNEL); in live_slpc_tile_interaction()
455 if (!threads) in live_slpc_tile_interaction()
461 if (IS_ERR(threads[i].worker)) { in live_slpc_tile_interaction()
462 ret = PTR_ERR(threads[i].worker); in live_slpc_tile_interaction()
466 threads[i].gt = gt; in live_slpc_tile_interaction()
468 kthread_queue_work(threads[i].worker, &threads[i].work); in live_slpc_tile_interaction()
474 if (IS_ERR_OR_NULL(threads[i].worker)) in live_slpc_tile_interaction()
477 kthread_flush_work(&threads[i].work); in live_slpc_tile_interaction()
478 status = READ_ONCE(threads[i].result); in live_slpc_tile_interaction()
[all …]
/linux-6.3-rc2/tools/testing/selftests/mm/
A Dmigration.c24 pthread_t *threads; in FIXTURE() local
50 self->threads = malloc(self->nthreads * sizeof(*self->threads)); in FIXTURE_SETUP()
51 ASSERT_NE(self->threads, NULL); in FIXTURE_SETUP()
58 free(self->threads); in FIXTURE_TEARDOWN()
128 if (pthread_create(&self->threads[i], NULL, access_mem, ptr))
133 ASSERT_EQ(pthread_cancel(self->threads[i]), 0);
185 if (pthread_create(&self->threads[i], NULL, access_mem, ptr))
190 ASSERT_EQ(pthread_cancel(self->threads[i]), 0);
/linux-6.3-rc2/tools/testing/selftests/powerpc/tm/
A Dtm-vmx-unavail.c90 int threads; in tm_vmx_unavail_test() local
98 threads = sysconf(_SC_NPROCESSORS_ONLN) * 4; in tm_vmx_unavail_test()
99 thread = malloc(sizeof(pthread_t)*threads); in tm_vmx_unavail_test()
103 for (uint64_t i = 0; i < threads; i++) in tm_vmx_unavail_test()
106 for (uint64_t i = 0; i < threads; i++) in tm_vmx_unavail_test()
/linux-6.3-rc2/tools/testing/radix-tree/
A Diteration_check.c15 static pthread_t threads[NUM_THREADS]; variable
178 if (pthread_create(&threads[0], NULL, tagged_iteration_fn, NULL)) { in iteration_test()
182 if (pthread_create(&threads[1], NULL, untagged_iteration_fn, NULL)) { in iteration_test()
186 if (pthread_create(&threads[2], NULL, add_entries_fn, NULL)) { in iteration_test()
190 if (pthread_create(&threads[3], NULL, remove_entries_fn, NULL)) { in iteration_test()
194 if (pthread_create(&threads[4], NULL, tag_entries_fn, NULL)) { in iteration_test()
203 if (pthread_join(threads[i], NULL)) { in iteration_test()
/linux-6.3-rc2/Documentation/x86/
A Dtopology.rst24 threads, cores, packages, etc.
37 - threads
95 A core consists of 1 or more threads. It does not matter whether the threads
96 are SMT- or CMT-type threads.
105 The number of threads in a core. The number of threads in a package can be
116 AMDs nomenclature for CMT threads is "Compute Unit Core". The kernel always
123 The cpumask contains all online threads in the package to which a thread
130 The cpumask contains all online threads in the core to which a thread
153 threads. Many BIOSes enumerate all threads 0 first and then all threads 1.
169 b) Two threads per core::
[all …]
/linux-6.3-rc2/Documentation/driver-api/dmaengine/
A Ddmatest.rst171 dmatest: Added 1 threads using dma0chan2
179 dmatest: Added 1 threads using dma0chan1
181 dmatest: Added 1 threads using dma0chan2
191 dmatest: Added 1 threads using dma0chan0
205 dmatest: 1 threads using dma0chan0
206 dmatest: 1 threads using dma0chan3
207 dmatest: 1 threads using dma0chan4
208 dmatest: 1 threads using dma0chan5
209 dmatest: 1 threads using dma0chan6
210 dmatest: 1 threads using dma0chan7
[all …]

Completed in 27 milliseconds

12345678910>>...12