Lines Matching defs:thread
26 #include "thread.h"
27 #include "thread-stack.h"
62 struct thread *unknown_thread;
164 struct thread *thread;
566 struct thread *thread;
583 thread = ptq->thread;
584 if (!thread) {
587 thread = ptq->pt->unknown_thread;
591 if (!thread__find_map(thread, cpumode, *ip, &al) || !al.map->dso)
732 struct thread *thread;
742 thread = ptq->thread;
743 if (!thread)
746 if (!thread__find_map(thread, cpumode, ip, &al) || !al.map->dso)
948 struct thread *thread = machine__findnew_thread(pt->machine,
952 thread_stack__sample_late(thread, sample->cpu, pt->chain,
986 struct thread *thread = machine__findnew_thread(pt->machine,
990 thread_stack__br_sample_late(thread, sample->cpu, pt->br_stack,
1104 thread__zput(ptq->thread);
1121 thread__zput(ptq->thread);
1124 if (!ptq->thread && ptq->tid != -1)
1125 ptq->thread = machine__find_thread(pt->machine, -1, ptq->tid);
1127 if (ptq->thread) {
1128 ptq->pid = ptq->thread->pid_;
1130 ptq->cpu = ptq->thread->cpu;
1420 thread_stack__sample(ptq->thread, ptq->cpu, ptq->chain,
1427 thread_stack__br_sample(ptq->thread, ptq->cpu, ptq->last_branch,
1834 thread_stack__sample(ptq->thread, ptq->cpu, ptq->chain,
1862 thread_stack__br_sample(ptq->thread, ptq->cpu,
2052 thread_stack__event(ptq->thread, ptq->cpu, ptq->flags,
2058 thread_stack__set_trace_nr(ptq->thread, ptq->cpu, state->trace_nr);
2417 thread__zput(ptq->thread);
2423 ptq->thread = machine__find_thread(m, -1, ptq->tid);
2424 if (ptq->thread)
2425 ptq->pid = ptq->thread->pid_;
2429 ptq->thread = machine__findnew_thread(m, ptq->pid, ptq->tid);
2648 static int intel_pt_find_map(struct thread *thread, u8 cpumode, u64 addr,
2652 if (!thread__find_map(thread, cpumode, addr, al))
2666 struct thread *thread = pt->unknown_thread;
2676 if (intel_pt_find_map(thread, cpumode, addr, &al)) {
3437 * Since this thread will not be kept in any rbtree not in a
3439 * current thread lifetime assuption is kept and we don't segfault