From 9fcddfc27d30b644044102cb829ef1c94492805c Mon Sep 17 00:00:00 2001 From: hiramatu Date: Fri, 4 Jan 2008 17:29:04 +0000 Subject: 2008-1-4 Masami Hiramatsu PR5152 * scheduler.stp (scheduler.ctxswitch): Change probe point __switch_to to context_switch on ia64. --- tapset/scheduler.stp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'tapset/scheduler.stp') 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 -%) %) +%) %) %) } -- cgit