From c5b064726ec7648c8fb46c4c00ecadfd83cfa4c8 Mon Sep 17 00:00:00 2001 From: wenji Date: Fri, 24 Aug 2007 09:16:47 +0000 Subject: 2007-08-24 Wenji Huang * scheduler.stp (scheduler.cpu_on,scheduler.migrate): Make optional. (scheduler.migrate): Modify evaluating cpu_from with task_cpu. --- tapset/scheduler.stp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tapset/scheduler.stp') diff --git a/tapset/scheduler.stp b/tapset/scheduler.stp index 83b14642..8b6db182 100644 --- a/tapset/scheduler.stp +++ b/tapset/scheduler.stp @@ -53,7 +53,7 @@ probe scheduler.cpu_off * idle - boolean indicating whether current is the idle process */ probe scheduler.cpu_on - = kernel.function("finish_task_switch") + = kernel.function("finish_task_switch")? { task_prev = $prev idle = __is_idle() @@ -89,9 +89,9 @@ probe scheduler.tick = kernel.function("scheduler_tick") * cpu_from - the cpu that is losing the task * cpu_to - the cpu that is claiming the task */ -probe scheduler.migrate = kernel.function("pull_task") { +probe scheduler.migrate = kernel.function("pull_task")? { task = $p - cpu_from = $p->thread_info->cpu + cpu_from = task_cpu($p) /*thread_info renamed to stack since 2.6.22*/ cpu_to = $this_cpu } -- cgit