Lines Matching refs:tid

160 	pid_t pid, tid;
950 sample->tid);
988 sample->tid);
1033 ptq->tid = -1;
1117 if (queue->tid == -1 || pt->have_sched_switch) {
1118 ptq->tid = machine__get_current_tid(pt->machine, ptq->cpu);
1119 if (ptq->tid == -1)
1124 if (!ptq->thread && ptq->tid != -1)
1125 ptq->thread = machine__find_thread(pt->machine, -1, ptq->tid);
1200 ptq->tid = queue->tid;
1223 intel_pt_log("queue %u decoding cpu %d pid %d tid %d\n",
1224 queue_nr, ptq->cpu, ptq->pid, ptq->tid);
1303 sample->tid = ptq->tid;
1902 pid_t pid, pid_t tid, u64 ip, u64 timestamp)
1920 code, cpu, pid, tid, ip, msg, timestamp);
1939 ptq->tid, state->from_ip, tm);
1945 pid_t tid = ptq->next_tid;
1948 if (tid == -1)
1951 intel_pt_log("switch: cpu %d tid %d\n", ptq->cpu, tid);
1953 err = machine__set_current_tid(pt->machine, ptq->cpu, -1, tid);
2258 intel_pt_log("queue %u decoding cpu %d pid %d tid %d\n",
2259 ptq->queue_nr, ptq->cpu, ptq->pid, ptq->tid);
2384 static int intel_pt_process_timeless_queues(struct intel_pt *pt, pid_t tid,
2395 if (ptq && (tid == -1 || ptq->tid == tid)) {
2411 ptq->tid = sample->tid;
2414 intel_pt_log("queue %u cpu %d pid %d tid %d\n",
2415 ptq->queue_nr, ptq->cpu, ptq->pid, ptq->tid);
2419 if (ptq->tid == -1)
2423 ptq->thread = machine__find_thread(m, -1, ptq->tid);
2429 ptq->thread = machine__findnew_thread(m, ptq->pid, ptq->tid);
2457 sample->pid, sample->tid, 0, sample->time);
2488 static int intel_pt_sync_switch(struct intel_pt *pt, int cpu, pid_t tid,
2506 ptq->next_tid = tid;
2537 pid_t tid;
2544 tid = evsel__intval(evsel, sample, "next_pid");
2547 intel_pt_log("sched_switch: cpu %d tid %d time %"PRIu64" tsc %#"PRIx64"\n",
2548 cpu, tid, sample->time, perf_time_to_tsc(sample->time,
2551 ret = intel_pt_sync_switch(pt, cpu, tid, sample->time);
2555 return machine__set_current_tid(pt->machine, cpu, -1, tid);
2562 pid_t tid = sample->tid;
2587 * If the current tid has not been updated yet, ensure it is now that
2590 if (machine__get_current_tid(pt->machine, cpu) == tid)
2593 return machine__set_current_tid(pt->machine, cpu, pid, tid);
2600 pid_t pid, tid;
2613 tid = event->context_switch.next_prev_tid;
2618 tid = sample->tid;
2621 if (tid == -1)
2622 intel_pt_log("context_switch event has no tid\n");
2624 ret = intel_pt_sync_switch(pt, cpu, tid, sample->time);
2628 return machine__set_current_tid(pt->machine, cpu, pid, tid);
2638 intel_pt_log("itrace_start: cpu %d pid %d tid %d time %"PRIu64" tsc %#"PRIx64"\n",
2640 event->itrace_start.tid, sample->time,
2645 event->itrace_start.tid);
2745 event->fork.tid,