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/ChangeLog | 5 +++++ tapset/scheduler.stp | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'tapset') diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 795a7ed2..b7e9d5e9 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,8 @@ +2007-08-24 Wenji Huang + + * scheduler.stp (scheduler.cpu_on,scheduler.migrate): Make optional. + (scheduler.migrate): Modify evaluating cpu_from with task_cpu. + 2007-08-24 Zhaolei * syscalls2.stp(send): Add len argument into argstr. 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