Lines Matching refs:thread
28 #include "thread.h"
29 #include "thread-stack.h"
934 event->stat.thread = bswap_32(event->stat.thread);
1790 struct thread *perf_session__findnew(struct perf_session *session, pid_t pid)
1797 * So here a single thread is created for that, but actually there is a separate
1798 * idle task per cpu, so there should be one 'struct thread' per cpu, but there
1804 struct thread *thread;
1807 thread = machine__findnew_thread(&session->machines.host, 0, 0);
1808 if (thread == NULL || thread__set_comm(thread, "swapper", 0)) {
1813 if (thread == NULL || thread__set_namespaces(thread, 0, NULL)) {
1818 /* machine__findnew_thread() got the thread, so put it */
1819 thread__put(thread);
1933 static int perf_session__flush_thread_stack(struct thread *thread,
1936 return thread_stack__flush(thread);