From: Philippe Proulx Date: Wed, 27 Apr 2016 23:42:51 +0000 (-0400) Subject: Fix: cli/sched: use mi.Cpu class for CPU IDs X-Git-Url: http://git.efficios.com/?p=deliverable%2Flttng-analyses.git;a=commitdiff_plain;h=e44a0b2e1803b84febcd3c8bbaabd340b61b3fc4 Fix: cli/sched: use mi.Cpu class for CPU IDs Signed-off-by: Philippe Proulx --- diff --git a/lttnganalyses/cli/sched.py b/lttnganalyses/cli/sched.py index 84a4aa8..7e8ca18 100644 --- a/lttnganalyses/cli/sched.py +++ b/lttnganalyses/cli/sched.py @@ -64,7 +64,7 @@ class SchedAnalysisCommand(Command): ('switch_ts', 'Switch timestamp', mi.Timestamp), ('latency', 'Scheduling latency', mi.Duration), ('prio', 'Priority', mi.Integer), - ('target_cpu', 'Target CPU', mi.Integer), + ('target_cpu', 'Target CPU', mi.Cpu), ('wakee_proc', 'Wakee process', mi.Process), ('waker_proc', 'Waker process', mi.Process), ] @@ -76,7 +76,7 @@ class SchedAnalysisCommand(Command): ('switch_ts', 'Switch timestamp', mi.Timestamp), ('latency', 'Scheduling latency', mi.Duration), ('prio', 'Priority', mi.Integer), - ('target_cpu', 'Target CPU', mi.Integer), + ('target_cpu', 'Target CPU', mi.Cpu), ('wakee_proc', 'Wakee process', mi.Process), ('waker_proc', 'Waker process', mi.Process), ] @@ -330,7 +330,7 @@ class SchedAnalysisCommand(Command): switch_ts=mi.Timestamp(sched_event.switch_ts), latency=mi.Duration(sched_event.latency), prio=mi.Integer(sched_event.prio), - target_cpu=mi.Integer(sched_event.target_cpu), + target_cpu=mi.Cpu(sched_event.target_cpu), wakee_proc=wakee_proc, waker_proc=waker_proc, ) @@ -363,7 +363,7 @@ class SchedAnalysisCommand(Command): switch_ts=mi.Timestamp(sched_event.switch_ts), latency=mi.Duration(sched_event.latency), prio=mi.Integer(sched_event.prio), - target_cpu=mi.Integer(sched_event.target_cpu), + target_cpu=mi.Cpu(sched_event.target_cpu), wakee_proc=wakee_proc, waker_proc=waker_proc, ) @@ -692,7 +692,7 @@ class SchedAnalysisCommand(Command): switch_ts = row.switch_ts.value latency = row.latency.value prio = row.prio.value - target_cpu = row.target_cpu.value + target_cpu = row.target_cpu.id wakee_proc = row.wakee_proc waker_proc = row.waker_proc