summaryrefslogtreecommitdiffstats
path: root/tapset/context.stp
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-04-30 10:20:41 -0500
committerDavid Smith <dsmith@redhat.com>2009-04-30 10:20:41 -0500
commit3ba2eb82cafa938c1c3f7ef9d2da06912a49d8e0 (patch)
treecaa98e3a5d49260228002ff4247286024277eaa0 /tapset/context.stp
parentea7d087ab3866eb99c19444b237c9586e8dc9b17 (diff)
downloadsystemtap-steved-3ba2eb82cafa938c1c3f7ef9d2da06912a49d8e0.tar.gz
systemtap-steved-3ba2eb82cafa938c1c3f7ef9d2da06912a49d8e0.tar.xz
systemtap-steved-3ba2eb82cafa938c1c3f7ef9d2da06912a49d8e0.zip
Fixed uaddr tapset function for ppc64 by adding task_pt_regs() definition.
PR10117 fix. * tapset/context.stp: Added ppc64 task_pt_regs() definition if it dooesn't already exist.
Diffstat (limited to 'tapset/context.stp')
-rw-r--r--tapset/context.stp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tapset/context.stp b/tapset/context.stp
index 6fad3740..fcb60201 100644
--- a/tapset/context.stp
+++ b/tapset/context.stp
@@ -14,6 +14,12 @@
%{
#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
%}
/**