Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 25 of 109) sorted by relevance

12345

/tools/perf/scripts/python/
Dfutex-contention.py26 def syscalls__sys_enter_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument
32 process_names[tid] = comm
33 thread_thislock[tid] = uaddr
34 thread_blocktime[tid] = nsecs(s, ns)
36 def syscalls__sys_exit_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument
38 if tid in thread_blocktime:
39 elapsed = nsecs(s, ns) - thread_blocktime[tid]
40 add_stats(lock_waits, (tid, thread_thislock[tid]), elapsed)
41 del thread_blocktime[tid]
42 del thread_thislock[tid]
[all …]
/tools/testing/selftests/powerpc/mm/
Dtlbie_test.c202 static inline unsigned int compute_store_pattern(unsigned int tid, in compute_store_pattern() argument
207 char *start = compute_chunk_start_addr(tid); in compute_store_pattern()
210 ret += (tid & THREAD_ID_MASK) << THREAD_ID_SHIFT; in compute_store_pattern()
257 static inline void start_verification_log(unsigned int tid, in start_verification_log() argument
266 char *chunk_start = compute_chunk_start_addr(tid); in start_verification_log()
269 sprintf(logfile, logfilename, tid); in start_verification_log()
279 fp[tid] = f; in start_verification_log()
283 fprintf(f, "Thread id = %02d\n", tid); in start_verification_log()
292 static inline void log_anamoly(unsigned int tid, unsigned int *addr, in log_anamoly() argument
295 FILE *f = fp[tid]; in log_anamoly()
[all …]
/tools/perf/util/
Dvalues.c16 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
18 if (!values->pid || !values->tid || !values->value) { in perf_read_values_init()
42 zfree(&values->tid); in perf_read_values_init()
58 zfree(&values->tid); in perf_read_values_destroy()
69 *ntid = realloc(values->tid, nthreads_max * sizeof(*values->tid)), in perf_read_values__enlarge_threads()
77 values->tid = ntid; in perf_read_values__enlarge_threads()
89 u32 pid, u32 tid) in perf_read_values__findnew_thread() argument
94 if (values->pid[i] == pid && values->tid[i] == tid) in perf_read_values__findnew_thread()
111 values->tid[i] = tid; in perf_read_values__findnew_thread()
185 u32 pid, u32 tid, in perf_read_values_add_value() argument
[all …]
Dthread_map.c61 struct perf_thread_map *thread_map__new_by_tid(pid_t tid) in thread_map__new_by_tid() argument
66 perf_thread_map__set_pid(threads, 0, tid); in thread_map__new_by_tid()
170 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid) in thread_map__new() argument
175 if (tid == -1 && uid != UINT_MAX) in thread_map__new()
178 return thread_map__new_by_tid(tid); in thread_map__new()
247 pid_t tid, prev_tid = INT_MAX; in thread_map__new_by_tid_str() local
262 tid = strtol(pos->s, &end_ptr, 10); in thread_map__new_by_tid_str()
264 if (tid == INT_MIN || tid == INT_MAX || in thread_map__new_by_tid_str()
268 if (tid == prev_tid) in thread_map__new_by_tid_str()
278 perf_thread_map__set_pid(threads, ntasks - 1, tid); in thread_map__new_by_tid_str()
[all …]
Dthread_map.h15 struct perf_thread_map *thread_map__new_by_tid(pid_t tid);
18 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid);
22 const char *tid, uid_t uid, bool all_threads);
Djitdump.c329 jr->load.tid = bswap_32(jr->load.tid); in jit_get_next_entry()
340 jr->move.tid = bswap_32(jr->move.tid); in jit_get_next_entry()
400 pid_t pid, tid; in jit_repipe_code_load() local
402 u32 pid, tid; in jit_repipe_code_load() member
407 tid = jr->load.tid; in jit_repipe_code_load()
461 event->mmap2.tid = tid; in jit_repipe_code_load()
472 id->tid = tid; in jit_repipe_code_load()
484 sample.tid = tid; in jit_repipe_code_load()
513 pid_t pid, tid; in jit_repipe_code_move() local
515 u32 pid, tid; in jit_repipe_code_move() member
[all …]
Dtarget.c22 target->tid = target->pid; in target__validate()
25 if (target->tid && target->cpu_list) { in target__validate()
32 if (target->tid && target->uid_str) { in target__validate()
46 if (target->tid && target->system_wide) { in target__validate()
Dthread.c26 if (pid == thread->tid || pid == -1) { in thread__init_map_groups()
39 struct thread *thread__new(pid_t pid, pid_t tid) in thread__new() argument
47 thread->tid = tid; in thread__new()
59 snprintf(comm_str, 32, ":%d", tid); in thread__new()
231 if (second_last && !last->start && thread->pid_ == thread->tid) in thread__exec_comm()
281 thread->pid_, thread->tid) >= (int)sizeof(path)) && in thread__set_comm_from_proc()
326 return fprintf(fp, "Thread %d %s\n", thread->tid, thread__comm_str(thread)) + in thread__fprintf()
384 thread->pid_, thread->tid, parent->pid_, parent->tid); in thread__clone_map_groups()
403 thread->ppid = parent->tid; in thread__fork()
427 if (thread->pid_ == thread->tid) in thread__main_thread()
Dvalues.h10 u32 *pid, *tid; member
22 u32 pid, u32 tid,
Dtarget.h10 const char *tid; member
54 return target->tid || target->pid || target->uid_str; in target__has_task()
Dintel-bts.c73 pid_t tid; member
138 sample->tid, 0, "Lost trace data", sample->time); in intel_bts_lost()
160 btsq->tid = -1; in intel_bts_alloc_queue()
183 btsq->tid = queue->tid; in intel_bts_setup_queue()
287 sample.tid = btsq->tid; in intel_bts_synth_branch_sample()
327 thread = machine__find_thread(machine, -1, btsq->tid); in intel_bts_get_next_insn()
345 pid_t tid, u64 ip) in intel_bts_synth_error() argument
351 INTEL_BTS_ERR_NOINSN, cpu, pid, tid, ip, in intel_bts_synth_error()
386 btsq->pid, btsq->tid, in intel_bts_get_branch_type()
457 btsq->tid); in intel_bts_process_queue()
[all …]
Dmachine.h64 static inline struct threads *machine__threads(struct machine *machine, pid_t tid) in machine__threads() argument
67 return &machine->threads[(unsigned int)tid % THREADS__TABLE_SIZE]; in machine__threads()
107 pid_t tid);
202 struct thread *__machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid);
203 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid);
256 pid_t tid);
Dtop.c87 else if (target->tid) in perf_top__header_snprintf()
89 target->tid); in perf_top__header_snprintf()
101 if (target->tid) in perf_top__header_snprintf()
Dthread.h30 pid_t tid; member
55 struct thread *thread__new(pid_t pid, pid_t tid);
138 !intlist__has_entry(symbol_conf.tid_list, thread->tid)) { in thread__is_filtered()
Dmachine.c403 if (th->pid_ == th->tid) in machine__update_thread_pid()
427 th->pid_, th->tid); in machine__update_thread_pid()
436 pr_err("Failed to join map groups for %d:%d\n", th->pid_, th->tid); in machine__update_thread_pid()
447 int pid, int tid) in __threads__get_last_match() argument
453 if (th->tid == tid) { in __threads__get_last_match()
466 int pid, int tid) in threads__get_last_match() argument
471 th = __threads__get_last_match(threads, machine, pid, tid); in threads__get_last_match()
495 pid_t pid, pid_t tid, in ____machine__findnew_thread() argument
503 th = threads__get_last_match(threads, machine, pid, tid); in ____machine__findnew_thread()
511 if (th->tid == tid) { in ____machine__findnew_thread()
[all …]
Djitdump.h69 uint32_t tid; member
84 uint32_t tid; member
Dintel-pt.c154 pid_t pid, tid; member
891 ptq->tid = -1; in intel_pt_alloc_queue()
975 if (queue->tid == -1 || pt->have_sched_switch) { in intel_pt_set_pid_tid_cpu()
976 ptq->tid = machine__get_current_tid(pt->machine, ptq->cpu); in intel_pt_set_pid_tid_cpu()
980 if (!ptq->thread && ptq->tid != -1) in intel_pt_set_pid_tid_cpu()
981 ptq->thread = machine__find_thread(pt->machine, -1, ptq->tid); in intel_pt_set_pid_tid_cpu()
1055 ptq->tid = queue->tid; in intel_pt_setup_queue()
1079 queue_nr, ptq->cpu, ptq->pid, ptq->tid); in intel_pt_setup_queue()
1210 sample->tid = ptq->tid; in intel_pt_prep_a_sample()
1825 pid_t pid, pid_t tid, u64 ip, u64 timestamp) in intel_pt_synth_error() argument
[all …]
/tools/perf/ui/browsers/
Dres_sample.c52 res_samples[i].cpu, res_samples[i].tid) < 0) { in res_sample_browse()
83 r->tid ? "--tid " : "", in res_sample_browse()
84 r->tid ? (sprintf(tidbuf, "%d", r->tid), tidbuf) : "", in res_sample_browse()
90 r->tid ? "--show-switch-events --show-task-events " : "", in res_sample_browse()
/tools/perf/
Dbuiltin-lock.c117 u32 tid; member
123 static struct thread_stat *thread_stat_find(u32 tid) in thread_stat_find() argument
131 if (st->tid == tid) in thread_stat_find()
133 else if (tid < st->tid) in thread_stat_find()
152 if (new->tid < p->tid) in thread_stat_insert()
154 else if (new->tid > p->tid) in thread_stat_insert()
164 static struct thread_stat *thread_stat_findnew_after_first(u32 tid) in thread_stat_findnew_after_first() argument
168 st = thread_stat_find(tid); in thread_stat_findnew_after_first()
178 st->tid = tid; in thread_stat_findnew_after_first()
186 static struct thread_stat *thread_stat_findnew_first(u32 tid);
[all …]
/tools/perf/lib/include/perf/
Devent.h13 __u32 pid, tid; member
22 __u32 pid, tid; member
37 __u32 pid, tid; member
43 __u32 pid, tid; member
51 __u32 tid, ptid; member
71 __u32 pid, tid; member
201 __u64 tid; member
223 __u32 tid; member
236 __u32 tid; member
253 __u32 tid; member
/tools/testing/selftests/proc/
Dthread-self.c30 pid_t pid, tid; in f() local
34 tid = sys_gettid(); in f()
35 snprintf(buf1, sizeof(buf1), "%u/task/%u", pid, tid); in f()
/tools/accounting/
Dgetdelays.c272 pid_t tid = 0; in main() local
329 tid = atoi(optarg); in main()
330 if (!tid) in main()
335 tid = atoi(optarg); in main()
336 if (!tid) in main()
350 tid = fork(); in main()
351 if (tid < 0) in main()
353 if (tid == 0) in main()
409 if (tid && containerset) { in main()
418 if (tid && forking) { in main()
[all …]
/tools/perf/bench/
Dfutex-lock-pi.c27 int tid; member
100 w->tid, w->futex, ret); in workerfn()
111 w->tid, w->futex, ret); in workerfn()
128 worker[i].tid = i; in create_threads()
219 worker[i].tid, worker[i].futex, t); in bench_futex_lock_pi()
Dfutex-hash.c47 int tid; member
166 worker[i].tid = i; in bench_futex_hash()
212 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash()
215 worker[i].tid, &worker[i].futex[0], in bench_futex_hash()
/tools/perf/tests/
Dmmap-thread-lookup.c27 pid_t tid; member
48 td->tid = syscall(SYS_gettid); in thread_init()
50 pr_debug("tid = %d, map = %p\n", td->tid, map); in thread_init()
190 thread = machine__findnew_thread(machine, getpid(), td->tid); in mmap_events()

12345