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.c144 pthread_t thread_id; in test_task_file() local
154 if (CHECK(pthread_create(&thread_id, NULL, &do_nothing, NULL), in test_task_file()
160 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.py527 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, br… argument
530 self.thread_id = thread_id
551 " AND thread_id = " + str(self.thread_id) +
563 …elThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.thread_id, query.value(0),…
571 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, name, dso, count, time, ins… argument
572 …super(CallGraphLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, call_path_id, …
588 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument
589 …super(CallGraphLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 1, 0, 0, 0, 0, p…
594 self.dbid = thread_id
807 …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.c115 static inline char *compute_chunk_start_addr(unsigned int thread_id) in compute_chunk_start_addr() argument
120 (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.c397 int thread_id; member
2758 int thread_id = 0; in get_thread_siblings() local
2761 if (thiscpu->thread_id < 0) in get_thread_siblings()
2762 thiscpu->thread_id = thread_id++; in get_thread_siblings()
2788 (cpus[so].thread_id < 0)) in get_thread_siblings()
2789 cpus[so].thread_id = in get_thread_siblings()
2790 thread_id++; in get_thread_siblings()
2931 cpus[cpu].thread_id = -1; in init_thread_id()
5445 if (cpus[i].thread_id == 0) in topology_probe()
5492 cpus[i].thread_id); in topology_probe()
[all …]
/tools/perf/
Dbuiltin-record.c97 pthread_t thread_id; member
1517 pthread_kill(rec->thread_id, SIGUSR2); in record__process_signal_event()
1532 rec->thread_id = pthread_self(); in record__setup_sb_evlist()