Searched refs:threads (Results 201 - 225 of 271) sorted by path

1234567891011

/linux-master/tools/perf/tests/
H A Dcode-reading.c547 struct perf_thread_map *threads = NULL; local
593 threads = thread_map__new_by_tid(pid);
594 if (!threads) {
599 ret = perf_event__synthesize_thread_map(NULL, threads,
628 perf_evlist__set_maps(&evlist->core, cpus, threads);
657 * Both cpus and threads are now owned by evlist
662 perf_thread_map__get(threads);
703 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 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-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 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...]
H A Dopenat-syscall-all-cpus.c31 struct perf_thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); local
35 if (threads == NULL) {
56 if (evsel__open(evsel, cpus, threads) < 0) {
123 perf_thread_map__put(threads);
H A Dopenat-syscall-tp-fields.c67 perf_thread_map__set_pid(evlist->core.threads, 0, getpid());
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 Dperf-time-to-tsc.c79 struct perf_thread_map *threads = NULL; local
93 threads = thread_map__new(-1, getpid(), UINT_MAX);
94 CHECK_NOT_NULL__(threads);
102 perf_evlist__set_maps(&evlist->core, cpus, threads);
204 perf_thread_map__put(threads);
H A Dsigtrap.c28 int tids_want_signal; /* Which threads still want a signal. */
189 static int run_test_threads(pthread_t *threads, pthread_barrier_t *barrier) argument
195 TEST_ASSERT_EQUAL("pthread_join() failed", pthread_join(threads[i], NULL), 0);
200 static int run_stress_test(int fd, pthread_t *threads, pthread_barrier_t *barrier) argument
208 ret = run_test_threads(threads, barrier);
238 pthread_t threads[NUM_THREADS]; local
271 if (pthread_create(&threads[i], NULL, test_thread, &barrier)) {
277 ret = run_stress_test(fd, threads, &barrier);
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 Dswitch-tracking.c340 struct perf_thread_map *threads = NULL; local
348 threads = thread_map__new(-1, getpid(), UINT_MAX);
349 if (!threads) {
366 perf_evlist__set_maps(&evlist->core, cpus, threads);
577 perf_thread_map__put(threads);
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 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/tools/perf/tests/shell/
H A Drecord.sh121 if ! perf record -aB --synth=no -e cpu-clock,cs --threads=cpu \
124 echo "System-wide record [Failed record --threads option]"
130 echo "System-wide record [Failed --threads missing output]"
151 if ! perf record -e cpu-clock,cs --threads=package \
154 echo "Workload record [Failed record --threads option]"
160 echo "Workload record [Failed --threads missing output]"
/linux-master/tools/perf/util/
H A Dauxtrace.c188 if (evlist->core.threads)
189 mp->tid = perf_thread_map__pid(evlist->core.threads, 0);
194 mp->tid = perf_thread_map__pid(evlist->core.threads, idx);
H A Dbpf_counter.c232 // threads but its possible showed 0-31 -acme
384 *filter_entry_cnt = perf_thread_map__nr(evsel->core.threads);
387 *filter_entry_cnt = perf_thread_map__nr(evsel->core.threads);
549 key = perf_thread_map__pid(evsel->core.threads, i);
H A Dbpf_ftrace.c46 ntasks = perf_thread_map__nr(ftrace->evlist->core.threads);
79 pid = perf_thread_map__pid(ftrace->evlist->core.threads, i);
H A Dbpf_lock_contention.c52 ntasks = perf_thread_map__nr(evlist->core.threads);
119 pid = perf_thread_map__pid(evlist->core.threads, i);
H A Dbpf_off_cpu.c77 perf_thread_map__pid(evlist->core.threads, 0) != -1) {
85 pid = perf_thread_map__pid(evlist->core.threads, 0);
177 ntasks = perf_thread_map__nr(evlist->core.threads);
247 pid = perf_thread_map__pid(evlist->core.threads, i);
H A Dcounts.c61 int nthreads = perf_thread_map__nr(evsel->core.threads);
H A Devent.c360 struct perf_thread_map *threads = thread_map__new_event(&event->thread_map); local
365 if (threads)
366 ret += thread_map__fprintf(threads, fp);
368 ret += fprintf(fp, "failed to get threads from event\n");
370 perf_thread_map__put(threads);
H A Devlist.c72 struct perf_thread_map *threads)
75 perf_evlist__set_maps(&evlist->core, cpus, threads);
1039 struct perf_thread_map *threads; local
1057 * thread_map__new_all_cpus to enumerate all threads.
1059 threads = thread_map__new_str(target->pid, target->tid, target->uid,
1062 if (!threads)
1075 perf_evlist__set_maps(&evlist->core, cpus, threads);
1079 perf_thread_map__put(threads);
1084 perf_thread_map__put(threads);
1351 struct perf_thread_map *threads; local
71 evlist__init(struct evlist *evlist, struct perf_cpu_map *cpus, struct perf_thread_map *threads) argument
[all...]
H A Devlist.h96 struct perf_thread_map *threads);
H A Devsel.c376 evsel->core.threads = perf_thread_map__get(orig->core.threads);
1477 perf_thread_map__put(evsel->core.threads);
1715 struct perf_thread_map *threads,
1718 pid_t ignore_pid = perf_thread_map__pid(threads, thread);
1723 /* The system wide setup does not work with threads. */
1732 if (threads->nr == 1)
1737 * because thread_map__remove() will decrease threads->nr.
1739 if (update_fds(evsel, nr_cpus, cpu_map_idx, threads->nr, thread))
1742 if (thread_map__remove(threads, threa
1713 evsel__ignore_missing_thread(struct evsel *evsel, int nr_cpus, int cpu_map_idx, struct perf_thread_map *threads, int thread, int err) argument
1793 __evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) argument
1870 evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) argument
2000 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) argument
2152 evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) argument
2172 evsel__open_per_thread(struct evsel *evsel, struct perf_thread_map *threads) argument
3142 struct perf_thread_map *threads = evsel->core.threads; local
[all...]

Completed in 274 milliseconds

1234567891011