Lines Matching refs:tid

128 	pid_t pid, tid;  member
210 ptq->tid = buffer->tid; in intel_pt_use_buffer_pid_tid()
213 ptq->queue_nr, ptq->cpu, ptq->pid, ptq->tid); in intel_pt_use_buffer_pid_tid()
217 if (ptq->tid != -1) { in intel_pt_use_buffer_pid_tid()
221 ptq->tid); in intel_pt_use_buffer_pid_tid()
224 ptq->tid); in intel_pt_use_buffer_pid_tid()
285 ptq->tid != buffer->tid)) in intel_pt_get_trace()
704 ptq->tid = -1; in intel_pt_alloc_queue()
780 if (queue->tid == -1 || pt->have_sched_switch) { in intel_pt_set_pid_tid_cpu()
781 ptq->tid = machine__get_current_tid(pt->machine, ptq->cpu); in intel_pt_set_pid_tid_cpu()
785 if (!ptq->thread && ptq->tid != -1) in intel_pt_set_pid_tid_cpu()
786 ptq->thread = machine__find_thread(pt->machine, -1, ptq->tid); in intel_pt_set_pid_tid_cpu()
837 ptq->tid = queue->tid; in intel_pt_setup_queue()
858 queue_nr, ptq->cpu, ptq->pid, ptq->tid); in intel_pt_setup_queue()
984 sample.tid = ptq->tid; in intel_pt_synth_branch_sample()
1040 sample.tid = ptq->tid; in intel_pt_synth_instruction_sample()
1097 sample.tid = ptq->tid; in intel_pt_synth_transaction_sample()
1137 pid_t pid, pid_t tid, u64 ip) in intel_pt_synth_error() argument
1146 code, cpu, pid, tid, ip, msg); in intel_pt_synth_error()
1159 pid_t tid = ptq->next_tid; in intel_pt_next_tid() local
1162 if (tid == -1) in intel_pt_next_tid()
1165 intel_pt_log("switch: cpu %d tid %d\n", ptq->cpu, tid); in intel_pt_next_tid()
1167 err = machine__set_current_tid(pt->machine, ptq->cpu, -1, tid); in intel_pt_next_tid()
1334 ptq->queue_nr, ptq->cpu, ptq->pid, ptq->tid); in intel_pt_run_decoder()
1352 ptq->tid, in intel_pt_run_decoder()
1455 static int intel_pt_process_timeless_queues(struct intel_pt *pt, pid_t tid, in intel_pt_process_timeless_queues() argument
1466 if (ptq && (tid == -1 || ptq->tid == tid)) { in intel_pt_process_timeless_queues()
1478 sample->pid, sample->tid, 0); in intel_pt_lost()
1509 static int intel_pt_sync_switch(struct intel_pt *pt, int cpu, pid_t tid, in intel_pt_sync_switch() argument
1528 ptq->next_tid = tid; in intel_pt_sync_switch()
1544 ptq->next_tid = tid; in intel_pt_sync_switch()
1558 pid_t tid; in intel_pt_process_switch() local
1565 tid = perf_evsel__intval(evsel, sample, "next_pid"); in intel_pt_process_switch()
1569 cpu, tid, sample->time, perf_time_to_tsc(sample->time, in intel_pt_process_switch()
1572 ret = intel_pt_sync_switch(pt, cpu, tid, sample->time); in intel_pt_process_switch()
1576 return machine__set_current_tid(pt->machine, cpu, -1, tid); in intel_pt_process_switch()
1583 pid_t pid, tid; in intel_pt_context_switch() local
1596 tid = event->context_switch.next_prev_tid; in intel_pt_context_switch()
1601 tid = sample->tid; in intel_pt_context_switch()
1604 if (tid == -1) { in intel_pt_context_switch()
1610 cpu, pid, tid, sample->time, perf_time_to_tsc(sample->time, in intel_pt_context_switch()
1613 ret = intel_pt_sync_switch(pt, cpu, tid, sample->time); in intel_pt_context_switch()
1617 return machine__set_current_tid(pt->machine, cpu, pid, tid); in intel_pt_context_switch()
1629 event->itrace_start.tid, sample->time, in intel_pt_process_itrace_start()
1634 event->itrace_start.tid); in intel_pt_process_itrace_start()
1669 event->fork.tid, in intel_pt_process_event()