diff options
-rw-r--r-- | tapset/ChangeLog | 6 | ||||
-rw-r--r-- | tapset/scheduler.stp | 16 |
2 files changed, 19 insertions, 3 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 5a305cd3..0cec6fc3 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,9 @@ +2008-1-4 Masami Hiramatsu <mhiramat@redhat.com> + + PR5152 + * scheduler.stp (scheduler.ctxswitch): Change probe point __switch_to + to context_switch on ia64. + 2007-12-27 Zhaolei <zhaolei@cn.fujitsu.com> From Yang Zhiguo <yzgcsu@cn.fujitsu.com> diff --git a/tapset/scheduler.stp b/tapset/scheduler.stp index 8b6db182..55e230c2 100644 --- a/tapset/scheduler.stp +++ b/tapset/scheduler.stp @@ -121,10 +121,14 @@ probe scheduler.balance = kernel.function("idle_balance")? {} * prevtsk_state: the state of the process to be switched out */ probe scheduler.ctxswitch = -%( arch == "x86_64" %? +%( arch != "x86_64" %? + %( arch != "ia64" %? + kernel.function("__switch_to") + %: kernel.function("context_switch") + %) %: - kernel.function("__switch_to") + kernel.function("context_switch") %) { %( arch == "ppc64" %? @@ -139,11 +143,17 @@ probe scheduler.ctxswitch = prev_task = $prev next_task = $next prevtsk_state = $prev->state +%: %( arch == "ia64" %? + prev_pid = $prev->pid + next_pid = $next->pid + prev_task = $prev + next_task = $next + 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 -%) %) +%) %) %) } |