Lines Matching defs:thread
36 #include "thread.h"
37 #include "thread-stack.h"
61 * Per-thread ignores the trace channel ID and instead assumes that
89 struct thread *thread;
90 struct thread *prev_packet_thread;
477 tidq->thread = machine__findnew_thread(&etm->session->machines.host, -1,
616 * thread at that time must also be assigned to that sample.
617 * Across discontinuity packets the thread can change, so by
618 * tracking the thread for the previous packet the branch sample
626 tidq->prev_packet_thread = thread__get(tidq->thread);
801 thread__zput(tidq->thread);
983 if (!thread__find_map(tidq->thread, cpumode, address, &al))
998 len = dso__data_read_offset(dso, maps__machine(thread__maps(tidq->thread)),
1369 thread__zput(tidq->thread);
1370 tidq->thread = machine__find_thread(machine, -1, tid);
1373 /* Couldn't find a known thread */
1374 if (!tidq->thread)
1375 tidq->thread = machine__idle_thread(machine);
1466 sample.pid = thread__pid(tidq->thread);
1467 sample.tid = thread__tid(tidq->thread);
2528 if (tid == -1 || thread__tid(tidq->thread) == tid)
2653 struct thread *th;
2678 struct thread *th;
2682 * Context switch in per-thread mode are irrelevant since perf
2733 * Don't need to wait for cs_etm__flush_events() in per-thread mode to
2735 * this thread. All this does is emit samples earlier than waiting for
2964 * In per-thread mode, auxtrace CPU is set to -1, but TID will be set instead. See
2977 * Found a per-cpu buffer after a per-thread one was
2980 pr_err("CS ETM: Inconsistent per-thread/per-cpu mode.\n");