| /tools/testing/selftests/bpf/prog_tests/ |
| 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()
|
| 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()
|
| D | spin_lock.c | 133 pthread_t thread_id[4]; in test_spin_lock_success() local 144 err = pthread_create(&thread_id[i], NULL, &spin_lock_thread, &prog_fd); in test_spin_lock_success() 150 if (!ASSERT_OK(pthread_join(thread_id[i], &ret), "pthread_join")) in test_spin_lock_success()
|
| 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() 362 pthread_t thread_id; in test_task_file() local 373 ASSERT_OK(pthread_create(&thread_id, NULL, &do_nothing_wait, NULL), in test_task_file() 398 ASSERT_OK(pthread_join(thread_id, &ret), "pthread_join"); in test_task_file()
|
| /tools/testing/selftests/sync/ |
| 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/ |
| 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/ |
| 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()
|
| 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/ |
| 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 …]
|
| D | exported-sql-viewer.py | 528 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, br… argument 531 self.thread_id = thread_id 552 " AND thread_id = " + str(self.thread_id) + 564 …elThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.thread_id, query.value(0),… 572 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, name, dso, count, time, ins… argument 573 …super(CallGraphLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, call_path_id, … 589 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument 590 …super(CallGraphLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 1, 0, 0, 0, 0, p… 595 self.dbid = thread_id 811 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, call_time, time, insn_cnt, cyc_… argument [all …]
|
| /tools/testing/selftests/powerpc/mm/ |
| 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/selftests/bpf/ |
| D | test_lpm_map.c | 749 pthread_t thread_id[4]; in test_lpm_multi_thread() local 764 assert(pthread_create(&thread_id[i], NULL, &lpm_test_command, &info[i]) == 0); in test_lpm_multi_thread() 768 assert(pthread_join(thread_id[i], &ret) == 0 && ret == (void *)&info[i]); in test_lpm_multi_thread()
|
| /tools/power/x86/turbostat/ |
| D | turbostat.c | 1859 int thread_id; member 5485 int thread_id = 0; in get_thread_siblings() local 5488 if (thiscpu->thread_id < 0) in get_thread_siblings() 5489 thiscpu->thread_id = thread_id++; in get_thread_siblings() 5513 if ((so != cpu) && (cpus[so].thread_id < 0)) in get_thread_siblings() 5514 cpus[so].thread_id = thread_id++; in get_thread_siblings() 5700 cpus[cpu].thread_id = -1; in init_thread_id() 8455 if (cpus[i].thread_id == 0) in topology_probe() 8498 cpus[i].physical_node_id, cpus[i].logical_node_id, cpus[i].physical_core_id, cpus[i].thread_id); in topology_probe() 8549 int thread_id = cpus[cpu_id].thread_id; in init_counter() local [all …]
|
| /tools/perf/ |
| D | builtin-record.c | 162 pthread_t thread_id; member 2149 pthread_kill(rec->thread_id, SIGUSR2); in record__process_signal_event() 2164 rec->thread_id = pthread_self(); in record__setup_sb_evlist()
|