]> sourceware.org Git - systemtap.git/commitdiff
Fixed uaddr tapset function for ppc64 by adding task_pt_regs() definition.
authorDavid Smith <dsmith@redhat.com>
Thu, 30 Apr 2009 15:20:41 +0000 (10:20 -0500)
committerDavid Smith <dsmith@redhat.com>
Thu, 30 Apr 2009 15:20:41 +0000 (10:20 -0500)
PR10117 fix.
* tapset/context.stp: Added ppc64 task_pt_regs() definition if it dooesn't
  already exist.

tapset/context.stp

index 6fad374097843b935c97f714eb57856240dd1196..fcb602014bda6a1765bc37cc216d150e1c132a12 100644 (file)
 
 %{
 #include <asm/processor.h>
+
+#if defined(__powerpc64__)
+#if !defined(task_pt_regs)
+#define task_pt_regs(tsk)       ((struct pt_regs *)(tsk)->thread.regs)
+#endif
+#endif
 %}
 
 /**
This page took 0.027954 seconds and 5 git commands to generate.