summaryrefslogtreecommitdiffstats
path: root/runtime/stack-arm.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2008-03-30 19:47:51 -0400
committerMartin Hunt <hunt@redhat.com>2008-03-30 19:47:51 -0400
commit20d2c2c26b42b27a4881a46364a33330b2a6ea31 (patch)
tree8c2c94a65276d7815314eea72fa6ac30964c4cf1 /runtime/stack-arm.c
parent6567250495117bfa4eb8b58c805897133c0d3ff2 (diff)
downloadsystemtap-steved-20d2c2c26b42b27a4881a46364a33330b2a6ea31.tar.gz
systemtap-steved-20d2c2c26b42b27a4881a46364a33330b2a6ea31.tar.xz
systemtap-steved-20d2c2c26b42b27a4881a46364a33330b2a6ea31.zip
Support for kernels built with CONFIG_FRAME_POINTER
Diffstat (limited to 'runtime/stack-arm.c')
-rw-r--r--runtime/stack-arm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/stack-arm.c b/runtime/stack-arm.c
index 0c8ce450..9b0b772d 100644
--- a/runtime/stack-arm.c
+++ b/runtime/stack-arm.c
@@ -33,7 +33,7 @@ static int __init find_str_pc_offset(void)
static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels)
{
-#if defined(CONFIG_FRAME_POINTER)
+#ifdef STP_USE_FRAME_POINTER
int pc_offset = find_str_pc_offset();
unsigned long *fp = (unsigned long *)regs->ARM_fp;
unsigned long *next_fp, *pc;
@@ -68,5 +68,5 @@ static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels)
fp = next_fp;
}
-#endif
+#endif /* STP_USE_FRAME_POINTER */
}