Home
last modified time | relevance | path

Searched refs:thread_id (Results 1 – 11 of 11) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dmap_lock.c51 pthread_t thread_id[6]; in test_map_lock() local
71 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_map_lock()
75 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_map_lock()
80 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_map_lock()
84 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_map_lock()
Dspinlock.c21 pthread_t thread_id[4]; in test_spinlock() local
33 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_spinlock()
38 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_spinlock()
Dbpf_iter.c166 pthread_t thread_id; in test_task_file() local
176 if (CHECK(pthread_create(&thread_id, NULL, &do_nothing, NULL), in test_task_file()
182 if (CHECK(pthread_join(thread_id, &ret) || ret != NULL, in test_task_file()
/tools/testing/selftests/sync/
Dsync_stress_parallelism.c42 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/
Dcheck_gcr_el1_cswitch.c82 pthread_t thread_id[MAX_THREADS]; in execute_test() local
86 pthread_create(&thread_id[i], NULL, in execute_test()
90 pthread_join(thread_id[i], (void *)&thread_data[i]); in execute_test()
/tools/perf/scripts/python/
Dexport-to-postgresql.py987 def thread_table(thread_id, machine_id, process_id, pid, tid, *x): argument
988 value = struct.pack("!hiqiqiqiiii", 5, 8, thread_id, 8, machine_id, 8, process_id, 4, pid, 4, tid)
991 def comm_table(comm_id, comm_str, thread_id, time, exec_flag, *x): argument
995 value = struct.pack(fmt, 5, 8, comm_id, n, comm_str, 8, thread_id, 8, time, 1, exec_flag)
998 def comm_thread_table(comm_thread_id, comm_id, thread_id, *x): argument
1000 value = struct.pack(fmt, 3, 8, comm_thread_id, 8, comm_id, 8, thread_id)
1028 def sample_table(sample_id, evsel_id, machine_id, thread_id, comm_id, dso_id, symbol_id, sym_offset… argument
1030 …iiiqiqiqiqiiiBiqiqiq", 20, 8, sample_id, 8, evsel_id, 8, machine_id, 8, thread_id, 8, comm_id, 8, …
1032 …iqiqiqiqiqiiiBiqiqiq", 24, 8, sample_id, 8, evsel_id, 8, machine_id, 8, thread_id, 8, comm_id, 8, …
1040 def call_return_table(cr_id, thread_id, comm_id, call_path_id, call_time, return_time, branch_count… argument
[all …]
Dexported-sql-viewer.py528 …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
808 …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/
Dtlbie_test.c114 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/
Dtest_lpm_map.c758 pthread_t thread_id[4]; in test_lpm_multi_thread() local
774 assert(pthread_create(&thread_id[i], NULL, &lpm_test_command, &info[i]) == 0); in test_lpm_multi_thread()
778 assert(pthread_join(thread_id[i], &ret) == 0 && ret == (void *)&info[i]); in test_lpm_multi_thread()
/tools/power/x86/turbostat/
Dturbostat.c410 int thread_id; member
2883 int thread_id = 0; in get_thread_siblings() local
2886 if (thiscpu->thread_id < 0) in get_thread_siblings()
2887 thiscpu->thread_id = thread_id++; in get_thread_siblings()
2911 if ((so != cpu) && (cpus[so].thread_id < 0)) in get_thread_siblings()
2912 cpus[so].thread_id = thread_id++; in get_thread_siblings()
3042 cpus[cpu].thread_id = -1; in init_thread_id()
5702 if (cpus[i].thread_id == 0) in topology_probe()
5743 cpus[i].physical_node_id, cpus[i].logical_node_id, cpus[i].physical_core_id, cpus[i].thread_id); in topology_probe()
5790 int thread_id = cpus[cpu_id].thread_id; in init_counter() local
[all …]
/tools/perf/
Dbuiltin-record.c99 pthread_t thread_id; member
1497 pthread_kill(rec->thread_id, SIGUSR2); in record__process_signal_event()
1512 rec->thread_id = pthread_self(); in record__setup_sb_evlist()