Lines Matching defs:thread

27 #include "thread.h"
28 #include "thread-stack.h"
69 struct thread *unknown_thread;
200 struct thread *thread;
202 struct thread *guest_thread;
203 struct thread *unknown_guest_thread;
753 struct thread *thread;
788 thread = ptq->guest_thread;
789 if (!thread) {
791 intel_pt_log("ERROR: no guest thread\n");
795 thread = ptq->unknown_guest_thread;
798 thread = ptq->thread;
799 if (!thread) {
801 intel_pt_log("ERROR: no thread\n");
805 thread = ptq->pt->unknown_thread;
812 if (!thread__find_map(thread, cpumode, *ip, &al) || !map__dso(al.map)) {
814 intel_pt_log("ERROR: thread has no dso for %#" PRIx64 "\n", *ip);
816 intel_pt_log("ERROR: thread has no map for %#" PRIx64 "\n", *ip);
984 struct thread *thread;
1001 thread = ptq->thread;
1002 if (!thread)
1006 if (!thread__find_map(thread, cpumode, ip, &al) || !map__dso(al.map))
1236 struct thread *thread = machine__findnew_thread(pt->machine,
1240 thread_stack__sample_late(thread, sample->cpu, pt->chain,
1274 struct thread *thread = machine__findnew_thread(pt->machine,
1278 thread_stack__br_sample_late(thread, sample->cpu, pt->br_stack,
1283 thread__put(thread);
1402 thread__zput(ptq->thread);
1453 vcpu = ptq->thread ? thread__guest_cpu(ptq->thread) : -1;
1485 thread__zput(ptq->thread);
1488 if (!ptq->thread && ptq->tid != -1)
1489 ptq->thread = machine__find_thread(pt->machine, -1, ptq->tid);
1491 if (ptq->thread) {
1492 ptq->pid = thread__pid(ptq->thread);
1494 ptq->cpu = thread__cpu(ptq->thread);
1819 thread_stack__sample(ptq->thread, ptq->cpu, ptq->chain,
1826 thread_stack__br_sample(ptq->thread, ptq->cpu, ptq->last_branch,
2281 thread_stack__sample(ptq->thread, ptq->cpu, ptq->chain,
2309 thread_stack__br_sample(ptq->thread, ptq->cpu,
2688 thread_stack__event(ptq->thread, ptq->cpu, ptq->flags,
2694 thread_stack__set_trace_nr(ptq->thread, ptq->cpu, state->trace_nr);
3093 thread__zput(ptq->thread);
3099 ptq->thread = machine__find_thread(m, -1, ptq->tid);
3100 if (ptq->thread)
3101 ptq->pid = thread__pid(ptq->thread);
3105 ptq->thread = machine__findnew_thread(m, ptq->pid, ptq->tid);
3380 static int intel_pt_find_map(struct thread *thread, u8 cpumode, u64 addr,
3384 if (!thread__find_map(thread, cpumode, addr, al))
3398 struct thread *thread = pt->unknown_thread;
3412 if (intel_pt_find_map(thread, cpumode, addr, &al)) {