Home
last modified time | relevance | path

Searched refs:tids (Results 1 – 14 of 14) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
A Dhtab_update.c79 pthread_t *tids; in test_concurrent_update() local
91 tids = calloc(nr, sizeof(*tids)); in test_concurrent_update()
92 if (!ASSERT_NEQ(tids, NULL, "no mem")) in test_concurrent_update()
96 err = pthread_create(&tids[i], NULL, htab_update_thread, &ctx); in test_concurrent_update()
102 pthread_join(tids[j], NULL); in test_concurrent_update()
110 pthread_join(tids[i], &thread_err); in test_concurrent_update()
115 if (tids) in test_concurrent_update()
116 free(tids); in test_concurrent_update()
A Dhtab_reuse.c65 pthread_t tids[wr_nr + rd_nr]; in test_htab_reuse() local
78 memset(tids, 0, sizeof(tids)); in test_htab_reuse()
80 err = pthread_create(&tids[i], NULL, htab_update_fn, &ctx); in test_htab_reuse()
87 err = pthread_create(&tids[i + wr_nr], NULL, htab_lookup_fn, &ctx); in test_htab_reuse()
96 if (!tids[i]) in test_htab_reuse()
98 pthread_join(tids[i], NULL); in test_htab_reuse()
A Dfd_htab_lookup.c143 pthread_t tids[wr_nr + rd_nr]; in test_fd_htab_lookup() local
161 memset(tids, 0, sizeof(tids)); in test_fd_htab_lookup()
163 err = pthread_create(&tids[i], NULL, htab_update_fn, &ctx); in test_fd_htab_lookup()
170 err = pthread_create(&tids[i + wr_nr], NULL, htab_lookup_fn, &ctx); in test_fd_htab_lookup()
182 if (!tids[i]) in test_fd_htab_lookup()
186 err = pthread_join(tids[i], &ret); in test_fd_htab_lookup()
A Dtask_local_storage.c147 static void waitall(const pthread_t *tids, int nr) in waitall() argument
153 pthread_join(tids[i], NULL); in waitall()
177 pthread_t tids[nr_threads]; in test_nodeadlock() local
209 err = pthread_create(&tids[i], NULL, sock_create_loop, skel); in test_nodeadlock()
215 waitall(tids, i); in test_nodeadlock()
222 waitall(tids, nr_threads); in test_nodeadlock()
/tools/testing/selftests/powerpc/math/
A Dfpu_preempt.c54 pthread_t *tids; in test_preempt_fpu() local
57 tids = malloc((threads) * sizeof(pthread_t)); in test_preempt_fpu()
58 FAIL_IF(!tids); in test_preempt_fpu()
63 rc = pthread_create(&tids[i], NULL, preempt_fpu_c, NULL); in test_preempt_fpu()
86 pthread_join(tids[i], &rc_p); in test_preempt_fpu()
98 free(tids); in test_preempt_fpu()
A Dfpu_signal.c75 pthread_t *tids; in test_signal_fpu() local
78 tids = malloc(threads * sizeof(pthread_t)); in test_signal_fpu()
79 FAIL_IF(!tids); in test_signal_fpu()
84 rc = pthread_create(&tids[i], NULL, signal_fpu_c, NULL); in test_signal_fpu()
97 pthread_kill(tids[j], SIGUSR1); in test_signal_fpu()
106 pthread_join(tids[i], &rc_p); in test_signal_fpu()
120 free(tids); in test_signal_fpu()
A Dvmx_preempt.c60 pthread_t *tids; in test_preempt_vmx() local
66 tids = malloc(threads * sizeof(pthread_t)); in test_preempt_vmx()
67 FAIL_IF(!tids); in test_preempt_vmx()
72 rc = pthread_create(&tids[i], NULL, preempt_vmx_c, NULL); in test_preempt_vmx()
95 pthread_join(tids[i], &rc_p); in test_preempt_vmx()
A Dvmx_signal.c97 pthread_t *tids; in test_signal_vmx() local
103 tids = malloc(threads * sizeof(pthread_t)); in test_signal_vmx()
104 FAIL_IF(!tids); in test_signal_vmx()
109 rc = pthread_create(&tids[i], NULL, signal_vmx_c, NULL); in test_signal_vmx()
125 pthread_kill(tids[j], SIGUSR1); in test_signal_vmx()
134 pthread_join(tids[i], &rc_p); in test_signal_vmx()
148 free(tids); in test_signal_vmx()
A Dvsx_preempt.c93 pthread_t *tids; in test_preempt_vsx() local
98 tids = malloc(threads * sizeof(pthread_t)); in test_preempt_vsx()
99 FAIL_IF(!tids); in test_preempt_vsx()
104 rc = pthread_create(&tids[i], NULL, preempt_vsx_c, NULL); in test_preempt_vsx()
127 pthread_join(tids[i], &rc_p); in test_preempt_vsx()
/tools/testing/selftests/bpf/map_tests/
A Dlpm_trie_map_get_next_key.c46 static void abort_get_next_key(struct get_next_key_ctx *ctx, pthread_t *tids, in abort_get_next_key() argument
54 pthread_join(tids[i], NULL); in abort_get_next_key()
71 pthread_t tids[MAX_NR_THREADS]; in test_lpm_trie_map_get_next_key() local
95 err = pthread_create(&tids[i], NULL, get_next_key_fn, &ctx); in test_lpm_trie_map_get_next_key()
97 abort_get_next_key(&ctx, tids, i); in test_lpm_trie_map_get_next_key()
104 pthread_join(tids[i], NULL); in test_lpm_trie_map_get_next_key()
A Dtask_storage_map.c42 static void abort_lookup(struct lookup_ctx *ctx, pthread_t *tids, unsigned int nr) in abort_lookup() argument
49 pthread_join(tids[i], NULL); in abort_lookup()
57 pthread_t tids[MAX_NR_THREAD]; in test_task_storage_map_stress_lookup() local
102 err = pthread_create(&tids[i], NULL, lookup_fn, &ctx); in test_task_storage_map_stress_lookup()
104 abort_lookup(&ctx, tids, i); in test_task_storage_map_stress_lookup()
112 pthread_join(tids[i], NULL); in test_task_storage_map_stress_lookup()
/tools/perf/tests/
A Dswitch-tracking.c66 pid_t *tids; member
99 if (!switch_tracking->tids) { in check_cpu()
100 switch_tracking->tids = calloc(nr, sizeof(pid_t)); in check_cpu()
101 if (!switch_tracking->tids) in check_cpu()
104 switch_tracking->tids[i] = -1; in check_cpu()
115 switch_tracking->tids = addr; in check_cpu()
117 switch_tracking->tids[i] = -1; in check_cpu()
155 if (switch_tracking->tids[cpu] != -1 && in process_sample_event()
156 switch_tracking->tids[cpu] != prev_tid) { in process_sample_event()
161 switch_tracking->tids[cpu] = next_tid; in process_sample_event()
[all …]
/tools/perf/tests/shell/
A Dtest_task_analyzer.sh82 perf script report task-analyzer --ns --rename-comms-by-tids 0:random > "$out"
/tools/perf/
A Dbuiltin-inject.c101 struct hlist_head tids[PERF_EVLIST__HLIST_SIZE]; member
1071 hlist_add_head(&guest_tid->node, &gs->tids[hash]); in guest_session__map_tid()
1314 head = &gs->tids[hash]; in guest_session__lookup_tid()
1512 free_hlist(gs->tids, PERF_EVLIST__HLIST_SIZE); in guest_session__exit()

Completed in 22 milliseconds