| /tools/testing/selftests/bpf/prog_tests/ |
| A D | map_lock.c | 54 pthread_t thread_id[6]; in test_map_lock() local 74 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_map_lock() 78 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_map_lock() 83 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_map_lock() 87 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_map_lock()
|
| A D | arena_spin_lock.c | 52 pthread_t thread_id[16]; in test_arena_spin_lock_size() local 57 nthreads = MIN(get_nprocs(), ARRAY_SIZE(thread_id)); in test_arena_spin_lock_size() 77 err = pthread_create(&thread_id[i], NULL, &spin_lock_thread, &prog_fd); in test_arena_spin_lock_size() 83 if (!ASSERT_OK(pthread_join(thread_id[i], &ret), "pthread_join")) in test_arena_spin_lock_size()
|
| A D | timer.c | 28 pthread_t thread_id[NUM_THR]; in timer() local 67 err = pthread_create(&thread_id[i], NULL, in timer() 74 err = pthread_join(thread_id[--i], &ret); in timer()
|
| A D | res_spin_lock.c | 45 pthread_t thread_id[16]; in test_res_spin_lock_success() local 74 err = pthread_create(&thread_id[i], NULL, &spin_lock_thread, &prog_fd); in test_res_spin_lock_success() 89 if (!ASSERT_OK(pthread_join(thread_id[i], &ret), "pthread_join")) in test_res_spin_lock_success()
|
| A D | spin_lock.c | 136 pthread_t thread_id[4]; in test_spin_lock_success() local 147 err = pthread_create(&thread_id[i], NULL, &spin_lock_thread, &prog_fd); in test_spin_lock_success() 153 if (!ASSERT_OK(pthread_join(thread_id[i], &ret), "pthread_join")) in test_spin_lock_success()
|
| A D | bpf_iter.c | 217 pthread_t thread_id; in test_task_common_nocheck() local 226 ASSERT_OK(pthread_create(&thread_id, NULL, &do_nothing_wait, NULL), in test_task_common_nocheck() 237 ASSERT_FALSE(pthread_join(thread_id, &ret) || ret != NULL, in test_task_common_nocheck() 282 pthread_t thread_id; in test_task_tid() local 285 ASSERT_OK(pthread_create(&thread_id, NULL, &run_test_task_tid, NULL), in test_task_tid() 287 ASSERT_FALSE(pthread_join(thread_id, NULL), "pthread_join"); in test_task_tid() 430 pthread_t thread_id; in test_task_file() local 441 ASSERT_OK(pthread_create(&thread_id, NULL, &do_nothing_wait, NULL), in test_task_file() 466 ASSERT_OK(pthread_join(thread_id, &ret), "pthread_join"); in test_task_file()
|
| /tools/testing/selftests/sync/ |
| A D | sync_stress_parallelism.c | 42 int thread_id = (long)d; in test_stress_two_threads_shared_timeline_thread() local 49 i * 2 + thread_id); in test_stress_two_threads_shared_timeline_thread() 61 ASSERT(test_data_two_threads.counter == i * 2 + thread_id, in test_stress_two_threads_shared_timeline_thread()
|
| /tools/testing/selftests/arm64/mte/ |
| A D | check_gcr_el1_cswitch.c | 71 pthread_t thread_id[MAX_THREADS]; in execute_test() local 75 pthread_create(&thread_id[i], NULL, in execute_test() 79 pthread_join(thread_id[i], (void *)&thread_data[i]); in execute_test()
|
| /tools/testing/selftests/powerpc/dscr/ |
| A D | dscr_explicit_test.c | 90 pthread_t thread_id; member 146 FAIL_IF(pthread_create(&threads[i].thread_id, NULL, in dscr_explicit_random_test() 151 FAIL_IF(pthread_join(threads[i].thread_id, NULL)); in dscr_explicit_random_test()
|
| A D | dscr_default_test.c | 73 pthread_t thread_id; member 141 FAIL_IF(pthread_create(&threads[i].thread_id, NULL, in dscr_default_random_test() 146 FAIL_IF(pthread_join(threads[i].thread_id, NULL)); in dscr_default_random_test()
|
| /tools/perf/scripts/python/ |
| A D | export-to-postgresql.py | 990 def thread_table(thread_id, machine_id, process_id, pid, tid, *x): argument 991 value = struct.pack("!hiqiqiqiiii", 5, 8, thread_id, 8, machine_id, 8, process_id, 4, pid, 4, tid) 994 def comm_table(comm_id, comm_str, thread_id, time, exec_flag, *x): argument 998 value = struct.pack(fmt, 5, 8, comm_id, n, comm_str, 8, thread_id, 8, time, 1, exec_flag) 1001 def comm_thread_table(comm_thread_id, comm_id, thread_id, *x): argument 1003 value = struct.pack(fmt, 3, 8, comm_thread_id, 8, comm_id, 8, thread_id) 1031 def sample_table(sample_id, evsel_id, machine_id, thread_id, comm_id, dso_id, symbol_id, sym_offset… argument 1033 …iqiqiqiqiiiBiqiqiqii", 21, 8, sample_id, 8, evsel_id, 8, machine_id, 8, thread_id, 8, comm_id, 8, … 1035 …iqiqiqiqiiiBiqiqiqii", 25, 8, sample_id, 8, evsel_id, 8, machine_id, 8, thread_id, 8, comm_id, 8, … 1043 def call_return_table(cr_id, thread_id, comm_id, call_path_id, call_time, return_time, branch_count… argument [all …]
|
| A D | exported-sql-viewer.py | 531 self.thread_id = thread_id 595 self.dbid = thread_id 814 self.thread_id = thread_id 880 self.dbid = thread_id 1136 for dbid in (comm_id, thread_id): 1179 def ExecComm(db, thread_id, time): argument 1252 self.thread_id = thread_id 1346 thread_id = query.value(2) 1351 last_thread_id = thread_id 1354 exec_comm_id = ExecComm(db, thread_id, time) [all …]
|
| /tools/testing/selftests/powerpc/mm/ |
| A D | tlbie_test.c | 114 static inline char *compute_chunk_start_addr(unsigned int thread_id) in compute_chunk_start_addr() argument 119 (thread_id * RIM_CHUNK_SIZE)); in compute_chunk_start_addr()
|
| /tools/testing/vsock/ |
| A D | vsock_test.c | 1972 pthread_t thread_id; in test_stream_transport_change_client() local 1994 ret = pthread_create(&thread_id, NULL, test_stream_transport_change_thread, &pid); in test_stream_transport_change_client() 2058 ret = pthread_cancel(thread_id); in test_stream_transport_change_client() 2064 ret = pthread_join(thread_id, NULL); in test_stream_transport_change_client()
|
| /tools/testing/selftests/bpf/map_tests/ |
| A D | lpm_trie_map_basic_ops.c | 767 pthread_t thread_id[4]; in test_lpm_multi_thread() local 782 assert(pthread_create(&thread_id[i], NULL, &lpm_test_command, &info[i]) == 0); in test_lpm_multi_thread() 786 assert(pthread_join(thread_id[i], &ret) == 0 && ret == (void *)&info[i]); in test_lpm_multi_thread()
|
| /tools/power/x86/turbostat/ |
| A D | turbostat.c | 2283 int thread_id; member 6062 int thread_id = 0; in get_thread_siblings() local 6065 if (thiscpu->thread_id < 0) in get_thread_siblings() 6066 thiscpu->thread_id = thread_id++; in get_thread_siblings() 6090 if ((so != cpu) && (cpus[so].thread_id < 0)) in get_thread_siblings() 6091 cpus[so].thread_id = thread_id++; in get_thread_siblings() 6273 cpus[cpu].thread_id = -1; in init_thread_id() 9242 if (cpus[i].thread_id == 0) in topology_probe() 9288 cpus[i].physical_node_id, cpus[i].logical_node_id, cpus[i].physical_core_id, cpus[i].thread_id); in topology_probe() 9339 int thread_id = cpus[cpu_id].thread_id; in init_counter() local [all …]
|
| /tools/perf/ |
| A D | builtin-record.c | 164 pthread_t thread_id; member 2182 pthread_kill(rec->thread_id, SIGUSR2); in record__process_signal_event() 2197 rec->thread_id = pthread_self(); in record__setup_sb_evlist()
|