Lines Matching refs:sched_in
1138 struct thread *sched_out, *sched_in; in latency_switch_event() local
1158 sched_in = machine__findnew_thread(machine, -1, next_pid); in latency_switch_event()
1159 if (sched_out == NULL || sched_in == NULL) in latency_switch_event()
1175 in_events = thread_atoms_search(&sched->atom_root, sched_in, &sched->cmp_pid); in latency_switch_event()
1177 if (thread_atoms_insert(sched, sched_in)) in latency_switch_event()
1179 in_events = thread_atoms_search(&sched->atom_root, sched_in, &sched->cmp_pid); in latency_switch_event()
1195 thread__put(sched_in); in latency_switch_event()
1627 struct thread *sched_in, *sched_out; in map_switch_event() local
1669 sched_in = map__findnew_thread(sched, machine, -1, next_pid); in map_switch_event()
1671 if (sched_in == NULL || sched_out == NULL) in map_switch_event()
1674 tr = thread__get_runtime(sched_in); in map_switch_event()
1681 sched->curr_thread[this_cpu.cpu] = thread__get(sched_in); in map_switch_event()
1686 str = thread__comm_str(sched_in); in map_switch_event()
1689 if (!strcmp(thread__comm_str(sched_in), "swapper")) { in map_switch_event()
1720 str = thread__comm_str(sched_in); in map_switch_event()
1743 if (new_shortname || tr->comm_changed || (verbose > 0 && thread__tid(sched_in))) { in map_switch_event()
1746 if (thread__has_color(sched_in)) in map_switch_event()
1750 tr->shortname, thread__comm_str(sched_in), thread__tid(sched_in)); in map_switch_event()
1781 thread__put(sched_in); in map_switch_event()