summaryrefslogtreecommitdiffstats
path: root/tapset/context.stp
diff options
context:
space:
mode:
authortpnguyen <tpnguyen>2006-10-29 15:40:57 +0000
committertpnguyen <tpnguyen>2006-10-29 15:40:57 +0000
commita23b37425197e995abc7d52aa4ec70a6890ea729 (patch)
treedd1a9560132142755db8c7e8be27f66cb908e9fd /tapset/context.stp
parent19510e5e18ac14bd9dc59eddb1a794ced7238301 (diff)
downloadsystemtap-steved-a23b37425197e995abc7d52aa4ec70a6890ea729.tar.gz
systemtap-steved-a23b37425197e995abc7d52aa4ec70a6890ea729.tar.xz
systemtap-steved-a23b37425197e995abc7d52aa4ec70a6890ea729.zip
2006-10-29 Thang Nguyen <thang.p.nguyen@intel.com>
* context.stp: Added proper handling of statement * probe in probefunc() for IA64 (bz# 3423)
Diffstat (limited to 'tapset/context.stp')
-rw-r--r--tapset/context.stp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tapset/context.stp b/tapset/context.stp
index 449e135d..c4927172 100644
--- a/tapset/context.stp
+++ b/tapset/context.stp
@@ -107,7 +107,11 @@ function probefunc:string () %{ /* pure */
*dst = 0;
} else if (CONTEXT->regs &&
- (REG_IP(CONTEXT->regs) >= PAGE_OFFSET)) {
+#if defined (__ia64__)
+ ((unsigned long)REG_IP(CONTEXT->regs) >= (unsigned long)KERNEL_START)) {
+#else
+ ((unsigned long)REG_IP(CONTEXT->regs) >= (unsigned long)PAGE_OFFSET)) {
+#endif
_stp_symbol_sprint_basic(THIS->__retvalue, MAXSTRINGLEN,
REG_IP(CONTEXT->regs));
if (THIS->__retvalue[0] == '.') /* powerpc symbol has a dot*/