diff options
Diffstat (limited to 'tapset/scheduler.stp')
-rw-r--r-- | tapset/scheduler.stp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tapset/scheduler.stp b/tapset/scheduler.stp index 6c8d5d17..a17a8eac 100644 --- a/tapset/scheduler.stp +++ b/tapset/scheduler.stp @@ -120,8 +120,12 @@ probe scheduler.balance = kernel.function("idle_balance")? {} * next_pid: The pid of the process to be switched in * prevtsk_state: the state of the process to be switched out */ -probe scheduler.ctxswitch - = kernel.function("__switch_to") +probe scheduler.ctxswitch = +%( arch == "x86_64" %? + kernel.function("context_switch") +%: + kernel.function("__switch_to") +%) { %( arch == "ppc64" %? prev_pid = $prev->pid @@ -129,11 +133,17 @@ probe scheduler.ctxswitch prev_task = $prev next_task = $new prevtsk_state = $prev->state +%: %( arch == "x86_64" %? + prev_pid = $prev->pid + next_pid = $new->pid + prev_task = $prev + next_task = $new + prevtsk_state = $prev->state %: prev_pid = $prev_p->pid next_pid = $next_p->pid prev_task = $prev_p next_task = $next_p prevtsk_state = $prev_p->state -%) +%) %) } |