Lines Matching defs:thread
30 #include "thread.h"
31 #include "thread-stack.h"
967 event->stat.thread = bswap_32(event->stat.thread);
1885 struct thread *perf_session__findnew(struct perf_session *session, pid_t pid)
1892 struct thread *thread = machine__idle_thread(&session->machines.host);
1894 /* machine__idle_thread() got the thread, so put it */
1895 thread__put(thread);
1896 return thread ? 0 : -1;
2016 static int perf_session__flush_thread_stack(struct thread *thread,
2019 return thread_stack__flush(thread);
2779 struct thread *thread;
2786 thread = machine__idle_thread(machine);
2787 if (!thread)
2789 thread__put(thread);
2800 struct thread *thread = machine__findnew_thread(machine, pid, tid);
2802 if (!thread)
2804 thread__set_guest_cpu(thread, guest_cpu);
2805 thread__put(thread);