Home
last modified time | relevance | path

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

12345

/tools/perf/scripts/python/
Dfutex-contention.py29 def syscalls__sys_enter_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument
35 process_names[tid] = comm
36 thread_thislock[tid] = uaddr
37 thread_blocktime[tid] = nsecs(s, ns)
40 def syscalls__sys_exit_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument
42 if tid in thread_blocktime:
43 elapsed = nsecs(s, ns) - thread_blocktime[tid]
44 add_stats(lock_waits, (tid, thread_thislock[tid]), elapsed)
45 del thread_blocktime[tid]
46 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 …]
Dpkey_siginfo.c102 int tid, i; in protect() local
104 tid = gettid(); in protect()
112 printf("tid %d, pkey permissions are %s\n", tid, pkey_rights(rights)); in protect()
144 int tid, i; in protect_access() local
146 tid = gettid(); in protect_access()
157 printf("tid %d, pkey permissions are %s\n", tid, pkey_rights(rights)); in protect_access()
158 printf("tid %d, %s randomly in range [%p, %p]\n", tid, in protect_access()
/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);
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()
Djitdump.c330 jr->load.tid = bswap_32(jr->load.tid); in jit_get_next_entry()
341 jr->move.tid = bswap_32(jr->move.tid); in jit_get_next_entry()
415 pid_t pid, tid; in jit_repipe_code_load() local
417 u32 pid, tid; in jit_repipe_code_load() member
422 tid = jr->load.tid; in jit_repipe_code_load()
476 event->mmap2.tid = tid; in jit_repipe_code_load()
487 id->tid = tid; in jit_repipe_code_load()
499 sample.tid = tid; in jit_repipe_code_load()
528 pid_t pid, tid; in jit_repipe_code_move() local
530 u32 pid, tid; in jit_repipe_code_move() member
[all …]
Dthread.c26 if (pid == thread->tid || pid == -1) { in thread__init_maps()
39 struct thread *thread__new(pid_t pid, pid_t tid) in thread__new() argument
47 thread->tid = tid; in thread__new()
60 snprintf(comm_str, 32, ":%d", tid); in thread__new()
233 if (second_last && !last->start && thread->pid_ == thread->tid) in thread__exec_comm()
283 thread->pid_, thread->tid) >= (int)sizeof(path)) && in thread__set_comm_from_proc()
328 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_maps()
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,
Darm-spe.c81 pid_t tid; member
197 speq->tid = -1; in arm_spe__alloc_queue()
238 sample->tid = speq->tid; in arm_spe_prep_sample()
491 pid_t tid; in arm_spe_set_pid_tid_cpu() local
493 tid = machine__get_current_tid(spe->machine, speq->cpu); in arm_spe_set_pid_tid_cpu()
494 if (tid != -1) { in arm_spe_set_pid_tid_cpu()
495 speq->tid = tid; in arm_spe_set_pid_tid_cpu()
498 speq->tid = queue->tid; in arm_spe_set_pid_tid_cpu()
500 if ((!speq->thread) && (speq->tid != -1)) { in arm_spe_set_pid_tid_cpu()
502 speq->tid); in arm_spe_set_pid_tid_cpu()
[all …]
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.h65 static inline struct threads *machine__threads(struct machine *machine, pid_t tid) in machine__threads() argument
68 return &machine->threads[(unsigned int)tid % THREADS__TABLE_SIZE]; in machine__threads()
108 pid_t tid);
209 struct thread *__machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid);
210 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid);
266 pid_t tid);
/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/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/lib/perf/include/perf/
Devent.h15 __u32 pid, tid; member
24 __u32 pid, tid; member
39 __u32 pid, tid; member
45 __u32 pid, tid; member
53 __u32 tid, ptid; member
73 __u32 pid, tid; member
227 __u64 tid; member
249 __u32 tid; member
262 __u32 tid; member
279 __u32 tid; member
/tools/lib/perf/Documentation/
Dlibperf-sampling.txt23 cpu 0, pid 0, tid 0, ip ffffffffad06c4e6, period 1
24 cpu 0, pid 4465, tid 4469, ip ffffffffad118748, period 18322959
25 cpu 0, pid 0, tid 0, ip ffffffffad115722, period 33544846
26 cpu 0, pid 4465, tid 4470, ip 7f84fe0cdad6, period 23687474
27 cpu 0, pid 0, tid 0, ip ffffffffad9e0349, period 34255790
28 cpu 0, pid 4465, tid 4469, ip ffffffffad136581, period 38664069
29 cpu 0, pid 0, tid 0, ip ffffffffad9e55e2, period 21922384
30 cpu 0, pid 4465, tid 4470, ip 7f84fe0ebebf, period 17655175
192 85 int cpu, pid, tid;
203 96 tid = u.val32[1];
[all …]
/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/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()
/tools/testing/selftests/x86/
Dfsgsbase_restore.c131 pid_t pid = getpid(), tid = syscall(SYS_gettid); in tracee_zap_segment() local
134 syscall(SYS_tgkill, pid, tid, SIGSTOP); in tracee_zap_segment()
165 pid_t pid = getpid(), tid = syscall(SYS_gettid); in main() local
168 syscall(SYS_tgkill, pid, tid, SIGSTOP); in main()
/tools/lib/perf/Documentation/examples/
Dsampling.c85 int cpu, pid, tid; in main() local
96 tid = u.val32[1]; in main()
106 cpu, pid, tid, ip, period); in main()
/tools/perf/bench/
Dfutex-lock-pi.c27 int tid; member
99 w->tid, w->futex, ret); in workerfn()
110 w->tid, w->futex, ret); in workerfn()
127 worker[i].tid = i; in create_threads()
220 worker[i].tid, worker[i].futex, t); in bench_futex_lock_pi()
Dfutex-hash.c47 int tid; member
167 worker[i].tid = i; in bench_futex_hash()
214 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash()
217 worker[i].tid, &worker[i].futex[0], in bench_futex_hash()

12345