Lines Matching refs:cpu
177 def sched_switch(self, ts_list, prev, prev_state, next, cpu): argument
178 old_rq = self.prev.rqs[cpu]
184 self.rqs[cpu] = new_rq
187 self.event_cpus = [cpu]
208 def wake_up(self, ts_list, pid, cpu, fork): argument
209 old_rq = self.prev.rqs[cpu]
217 self.rqs[cpu] = new_rq
220 self.event_cpus = [cpu]
263 def mouse_down(self, cpu, t): argument
269 rq = ts.rqs[cpu]
270 raw = "CPU: %d\n" % cpu
280 def update_rectangle_cpu(self, slice, cpu): argument
281 rq = slice.rqs[cpu]
293 if cpu in slice.event_cpus:
296 self.root_win.paint_rectangle_zone(cpu, color, top_color, slice.start, slice.end)
308 for cpu in timeslice.rqs:
309 self.update_rectangle_cpu(timeslice, cpu)
320 for cpu in last_ts.rqs:
321 if cpu > max_cpu:
322 max_cpu = cpu
336 on_cpu_task = self.current_tsk[headers.cpu]
340 (headers.ts_format(), headers.cpu, prev_comm, prev_pid, next_comm, next_pid)
344 self.current_tsk[headers.cpu] = next_pid
347 ts.sched_switch(self.timeslices, prev_pid, prev_state, next_pid, headers.cpu)