Searched refs:threads (Results 1 - 25 of 271) sorted by relevance

1234567891011

/linux-master/tools/perf/util/
H A Dthreads.h20 struct threads { struct
24 void threads__init(struct threads *threads);
25 void threads__exit(struct threads *threads);
26 size_t threads__nr(struct threads *threads);
27 struct thread *threads__find(struct threads *threads, pid_t tid);
28 struct thread *threads__findnew(struct threads *thread
[all...]
H A Dthread_map.c36 struct perf_thread_map *threads; local
47 threads = thread_map__alloc(items);
48 if (threads != NULL) {
50 perf_thread_map__set_pid(threads, i, atoi(namelist[i]->d_name));
51 threads->nr = items;
52 refcount_set(&threads->refcnt, 1);
59 return threads;
64 struct perf_thread_map *threads = thread_map__alloc(1); local
66 if (threads != NULL) {
67 perf_thread_map__set_pid(threads,
81 struct perf_thread_map *threads = thread_map__alloc(max_threads); local
183 struct perf_thread_map *threads = NULL, *nt; local
245 struct perf_thread_map *threads = NULL, *nt; local
307 thread_map__fprintf(struct perf_thread_map *threads, FILE *fp) argument
363 thread_map__read_comms(struct perf_thread_map *threads) argument
371 thread_map__copy_event(struct perf_thread_map *threads, struct perf_record_thread_map *event) argument
388 struct perf_thread_map *threads; local
397 thread_map__has(struct perf_thread_map *threads, pid_t pid) argument
409 thread_map__remove(struct perf_thread_map *threads, int idx) argument
[all...]
H A Dthreads.c2 #include "threads.h"
6 static struct threads_table_entry *threads__table(struct threads *threads, pid_t tid) argument
9 return &threads->table[(unsigned int)tid % THREADS__TABLE_SIZE];
23 void threads__init(struct threads *threads) argument
26 struct threads_table_entry *table = &threads->table[i];
34 void threads__exit(struct threads *threads) argument
36 threads__remove_all_threads(threads);
45 threads__nr(struct threads *threads) argument
92 threads__find(struct threads *threads, pid_t tid) argument
109 threads__findnew(struct threads *threads, pid_t pid, pid_t tid, bool *created) argument
135 threads__remove_all_threads(struct threads *threads) argument
154 threads__remove(struct threads *threads, struct thread *thread) argument
168 threads__for_each_thread(struct threads *threads, int (*fn)(struct thread *thread, void *data), void *data) argument
[all...]
H A Dthread_map.h24 size_t thread_map__fprintf(struct perf_thread_map *threads, FILE *fp);
26 void thread_map__read_comms(struct perf_thread_map *threads);
27 bool thread_map__has(struct perf_thread_map *threads, pid_t pid);
28 int thread_map__remove(struct perf_thread_map *threads, int idx);
/linux-master/tools/lib/perf/tests/
H A Dtest-threadmap.c16 struct perf_thread_map *threads; local
19 threads = perf_thread_map__new_array(nr, array);
20 __T("Failed to allocate new thread map", threads);
22 __T("Unexpected number of threads", perf_thread_map__nr(threads) == nr);
26 perf_thread_map__pid(threads, i) == (array ? array[i] : -1));
30 perf_thread_map__set_pid(threads, i, i * 100);
33 perf_thread_map__pid(threads, 0) == (array ? array[0] : -1));
37 perf_thread_map__pid(threads, i) == i * 100);
40 perf_thread_map__put(threads);
48 struct perf_thread_map *threads; local
[all...]
H A Dtest-evsel.c56 struct perf_thread_map *threads; local
64 threads = perf_thread_map__new_dummy();
65 __T("failed to create threads", threads);
67 perf_thread_map__set_pid(threads, 0, 0);
72 err = perf_evsel__open(evsel, NULL, threads);
81 perf_thread_map__put(threads);
88 struct perf_thread_map *threads; local
97 threads = perf_thread_map__new_dummy();
98 __T("failed to create threads", thread
130 struct perf_thread_map *threads; local
195 test_stat_read_format_single(struct perf_event_attr *attr, struct perf_thread_map *threads) argument
230 test_stat_read_format_group(struct perf_event_attr *attr, struct perf_thread_map *threads) argument
293 struct perf_thread_map *threads; local
[all...]
H A Dtest-evlist.c95 struct perf_thread_map *threads; local
108 threads = perf_thread_map__new_dummy();
109 __T("failed to create threads", threads);
111 perf_thread_map__set_pid(threads, 0, 0);
130 perf_evlist__set_maps(evlist, NULL, threads);
143 perf_thread_map__put(threads);
150 struct perf_thread_map *threads; local
165 threads = perf_thread_map__new_dummy();
166 __T("failed to create threads", thread
219 struct perf_thread_map *threads; local
443 struct perf_thread_map *threads; local
[all...]
/linux-master/tools/perf/tests/
H A Dthread-map.c69 struct perf_thread_map *threads; local
75 threads = thread_map__new_event(&event->thread_map);
76 TEST_ASSERT_VAL("failed to alloc map", threads);
78 TEST_ASSERT_VAL("wrong nr", threads->nr == 1);
80 perf_thread_map__pid(threads, 0) == getpid());
82 perf_thread_map__comm(threads, 0) &&
83 !strcmp(perf_thread_map__comm(threads, 0), NAME));
85 refcount_read(&threads->refcnt) == 1);
86 perf_thread_map__put(threads);
92 struct perf_thread_map *threads; local
112 struct perf_thread_map *threads; local
[all...]
/linux-master/arch/arc/include/asm/
H A Dmmu.h11 #include <linux/threads.h> /* NR_CPUS */
/linux-master/tools/lib/perf/
H A Dthreadmap.c47 struct perf_thread_map *threads = thread_map__alloc(nr_threads); local
50 if (!threads)
54 perf_thread_map__set_pid(threads, i, array ? array[i] : -1);
56 threads->nr = nr_threads;
57 refcount_set(&threads->refcnt, 1);
59 return threads;
67 static void perf_thread_map__delete(struct perf_thread_map *threads) argument
69 if (threads) {
72 WARN_ONCE(refcount_read(&threads->refcnt) != 0,
74 for (i = 0; i < threads
93 perf_thread_map__nr(struct perf_thread_map *threads) argument
[all...]
/linux-master/arch/sparc/include/asm/
H A Dcpudata.h7 #include <linux/threads.h>
/linux-master/tools/perf/python/
H A Dtwatch.py13 threads = perf.thread_map(thread)
21 """What we want are just the PERF_RECORD_ lifetime events for threads,
25 threads comes and goes... So use (perf.TYPE_SOFTWARE, perf_COUNT_SW_DUMMY,
28 evsel.open(cpus = cpus, threads = threads);
29 evlist = perf.evlist(cpus, threads)
56 to figure out if this is a context switch in or out of the monitored threads.
/linux-master/arch/alpha/include/asm/
H A Dtopology.h6 #include <linux/threads.h>
/linux-master/arch/riscv/include/asm/
H A Dcpu_ops_sbi.h11 #include <linux/threads.h>
/linux-master/tools/testing/selftests/powerpc/math/
H A Dvmx_preempt.c8 * no way to be sure preemption happened so this test just uses many threads
28 * worker threads
59 int i, rc, threads; local
65 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR;
66 tids = malloc(threads * sizeof(pthread_t));
70 threads_starting = threads;
71 for (i = 0; i < threads; i++) {
93 for (i = 0; i < threads; i++) {
H A Dfpu_preempt.c8 * threads and a long wait. As such, a successful test doesn't mean much but
28 * worker threads
53 int i, rc, threads; local
56 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR;
57 tids = malloc((threads) * sizeof(pthread_t));
61 threads_starting = threads;
62 for (i = 0; i < threads; i++) {
84 for (i = 0; i < threads; i++) {
H A Dfpu_signal.c27 * worker threads
73 int i, j, rc, threads; local
77 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR;
78 tids = malloc(threads * sizeof(pthread_t));
82 threads_starting = threads;
83 for (i = 0; i < threads; i++) {
94 printf("\tSending signals to all threads %d times...", ITERATIONS);
96 for (j = 0; j < threads; j++) {
105 for (i = 0; i < threads; i++) {
H A Dvmx_signal.c28 * worker threads
95 int i, j, rc, threads; local
102 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR;
103 tids = malloc(threads * sizeof(pthread_t));
107 threads_starting = threads;
108 for (i = 0; i < threads; i++) {
114 printf("\tWaiting for %d workers to start... %d", threads, threads_starting);
122 printf("\tSending signals to all threads %d times...", ITERATIONS);
124 for (j = 0; j < threads; j++) {
133 for (i = 0; i < threads;
[all...]
/linux-master/tools/testing/selftests/dma/
H A Ddma_map_benchmark.c29 int threads = 1, seconds = 20, node = -1; local
41 threads = atoi(optarg);
66 if (threads <= 0 || threads > DMA_MAP_MAX_THREADS) {
67 fprintf(stderr, "invalid number of threads, must be in 1-%d\n",
109 map.threads = threads;
121 printf("dma mapping benchmark: threads:%d seconds:%d node:%d dir:%s granule: %d\n",
122 threads, seconds, node, dir[directions], granule);
/linux-master/tools/testing/selftests/powerpc/tm/
H A Dtm-vmx-unavail.c90 int threads; local
98 threads = sysconf(_SC_NPROCESSORS_ONLN) * 4;
99 thread = malloc(sizeof(pthread_t)*threads);
103 for (uint64_t i = 0; i < threads; i++)
106 for (uint64_t i = 0; i < threads; i++)
/linux-master/tools/lib/perf/Documentation/examples/
H A Dcounting.c23 struct perf_thread_map *threads; local
40 threads = perf_thread_map__new_dummy();
41 if (!threads) {
42 fprintf(stderr, "failed to create threads\n");
45 perf_thread_map__set_pid(threads, 0, 0);
63 perf_evlist__set_maps(evlist, NULL, threads);
81 perf_thread_map__put(threads);
/linux-master/tools/power/cpupower/lib/
H A Dcpupower.h6 /* Amount of CPU cores, packages and threads per core in the system */
9 unsigned int threads; /* per core */ member in struct:cpupower_topology
/linux-master/tools/testing/radix-tree/
H A Diteration_check_2.c56 pthread_t threads[2]; local
67 if (pthread_create(&threads[0], NULL, iterator, &array)) {
71 if (pthread_create(&threads[1], NULL, throbber, &array)) {
80 if (pthread_join(threads[i], NULL)) {
/linux-master/arch/um/include/asm/
H A Dfixmap.h8 #include <linux/threads.h>
/linux-master/include/asm-generic/
H A Dhardirq.h6 #include <linux/threads.h>

Completed in 251 milliseconds

1234567891011