summaryrefslogtreecommitdiffstats
path: root/tapset/scheduler.stp
diff options
context:
space:
mode:
authorhiramatu <hiramatu>2008-01-04 17:29:04 +0000
committerhiramatu <hiramatu>2008-01-04 17:29:04 +0000
commit9fcddfc27d30b644044102cb829ef1c94492805c (patch)
treee159a1a868d4ecc91bccd899ad83d7e4bc5a4c39 /tapset/scheduler.stp
parentd5d7f324c3d0efd0c3072fc0c54f8f0cf070ddf4 (diff)
downloadsystemtap-steved-9fcddfc27d30b644044102cb829ef1c94492805c.tar.gz
systemtap-steved-9fcddfc27d30b644044102cb829ef1c94492805c.tar.xz
systemtap-steved-9fcddfc27d30b644044102cb829ef1c94492805c.zip
2008-1-4 Masami Hiramatsu <mhiramat@redhat.com>
PR5152 * scheduler.stp (scheduler.ctxswitch): Change probe point __switch_to to context_switch on ia64.
Diffstat (limited to 'tapset/scheduler.stp')
-rw-r--r--tapset/scheduler.stp16
1 files changed, 13 insertions, 3 deletions
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
-%) %)
+%) %) %)
}