]> sourceware.org Git - systemtap.git/commitdiff
2007-04-23 Frank Ch. Eigler <fche@elastic.org>
authorfche <fche>
Mon, 23 Apr 2007 21:07:58 +0000 (21:07 +0000)
committerfche <fche>
Mon, 23 Apr 2007 21:07:58 +0000 (21:07 +0000)
* scheduler.stp (scheduler.ctxswitch): Since it's marked __kprobes
switch from __switch_to to context_switch on x86-64 in Ipswitch.

tapset/ChangeLog
tapset/scheduler.stp

index 9a6cb1f3ba63d718a8685439e2e6bf8b1f57b709..e7116ca4f405a171cd8946c104ff0e9d8709a888 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 6c8d5d17f0e62d1521875acc15424ae54889205f..a17a8eac584e6380186d2f07fa5d93e7be5489a8 100644 (file)
@@ -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
-%)
+%) %)
 }
This page took 0.03065 seconds and 5 git commands to generate.