Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > b0cbe0f49a5d77255d18d74997a8e96b > files > 7

systemtap-0.9.7-5.el5.src.rpm

From 4d056ef378f31d663e90e9e4adb6888cdc170003 Mon Sep 17 00:00:00 2001
From: David Smith <dsmith@redhat.com>
Date: Thu, 30 Apr 2009 10:20:41 -0500
Subject: [PATCH] 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.

---
 tapset/context.stp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tapset/context.stp b/tapset/context.stp
index 6fad374..fcb6020 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
 %}
 
 /**
-- 
1.6.0.6