summaryrefslogtreecommitdiffstats
path: root/tapset/scheduler.stp
diff options
context:
space:
mode:
authorwenji <wenji>2007-08-24 09:16:47 +0000
committerwenji <wenji>2007-08-24 09:16:47 +0000
commitc5b064726ec7648c8fb46c4c00ecadfd83cfa4c8 (patch)
tree04f29fdd1b26c2448a5be362793d5e8418a43b58 /tapset/scheduler.stp
parentc1381ac7624e86097d36ab0eb62a8caf5608f420 (diff)
downloadsystemtap-steved-c5b064726ec7648c8fb46c4c00ecadfd83cfa4c8.tar.gz
systemtap-steved-c5b064726ec7648c8fb46c4c00ecadfd83cfa4c8.tar.xz
systemtap-steved-c5b064726ec7648c8fb46c4c00ecadfd83cfa4c8.zip
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.
Diffstat (limited to 'tapset/scheduler.stp')
-rw-r--r--tapset/scheduler.stp6
1 files changed, 3 insertions, 3 deletions
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
}