* scheduler.stp (scheduler.ctxswitch): Since it's marked __kprobes
switch from __switch_to to context_switch on x86-64 in Ipswitch.
+2007-04-23 Frank Ch. Eigler <fche@elastic.org>
+
+ * scheduler.stp (scheduler.ctxswitch): Since it's marked __kprobes
+ switch from __switch_to to context_switch on x86-64 in Ipswitch.
+
2007-04-04 Sébastien Dugué <sebastien.dugue@bull.net>
* scsi.stp: Fix for when the scsi driver is built into the kernel.
* 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
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
-%)
+%) %)
}