Lines Matching refs:sched_in
1137 struct thread *sched_out, *sched_in; in latency_switch_event() local
1157 sched_in = machine__findnew_thread(machine, -1, next_pid); in latency_switch_event()
1158 if (sched_out == NULL || sched_in == NULL) in latency_switch_event()
1174 in_events = thread_atoms_search(&sched->atom_root, sched_in, &sched->cmp_pid); in latency_switch_event()
1176 if (thread_atoms_insert(sched, sched_in)) in latency_switch_event()
1178 in_events = thread_atoms_search(&sched->atom_root, sched_in, &sched->cmp_pid); in latency_switch_event()
1194 thread__put(sched_in); in latency_switch_event()
1555 struct thread *sched_in; in map_switch_event() local
1595 sched_in = map__findnew_thread(sched, machine, -1, next_pid); in map_switch_event()
1596 if (sched_in == NULL) in map_switch_event()
1599 tr = thread__get_runtime(sched_in); in map_switch_event()
1601 thread__put(sched_in); in map_switch_event()
1605 sched->curr_thread[this_cpu.cpu] = thread__get(sched_in); in map_switch_event()
1611 if (!strcmp(thread__comm_str(sched_in), "swapper")) { in map_switch_event()
1661 thread__put(sched_in); in map_switch_event()
1674 if (new_shortname || tr->comm_changed || (verbose > 0 && sched_in->tid)) { in map_switch_event()
1677 if (thread__has_color(sched_in)) in map_switch_event()
1681 tr->shortname, thread__comm_str(sched_in), sched_in->tid); in map_switch_event()
1691 thread__put(sched_in); in map_switch_event()