summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tapset/ChangeLog5
-rw-r--r--tapset/scheduler.stp6
2 files changed, 8 insertions, 3 deletions
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 <wenji.huang@oracle.com>
+
+ * scheduler.stp (scheduler.cpu_on,scheduler.migrate): Make optional.
+ (scheduler.migrate): Modify evaluating cpu_from with task_cpu.
+
2007-08-24 Zhaolei <zhaolei@cn.fujitsu.com>
* 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
}