summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
authorwenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com>2008-04-13 22:50:18 -0400
committerwenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com>2008-04-13 22:50:18 -0400
commitbd10b81c06a0102ac10617da2f368fcc168fc15e (patch)
tree07c4878e3eaf77801d5104c2f6c498cfff9e3bbd /runtime/runtime.h
parentd58c66bfef5cfa7267ced03db11928fd5c78ba9c (diff)
parentf7e07777e033e580351dc6886ab7dbdddd9839fe (diff)
downloadsystemtap-steved-bd10b81c06a0102ac10617da2f368fcc168fc15e.tar.gz
systemtap-steved-bd10b81c06a0102ac10617da2f368fcc168fc15e.tar.xz
systemtap-steved-bd10b81c06a0102ac10617da2f368fcc168fc15e.zip
Merge branch 'master' of ssh://wenji@sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 318d3038..8d267173 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -70,13 +70,24 @@ static struct
#define MAXSTRINGLEN 128
#endif
+#ifdef CONFIG_FRAME_POINTER
+/* Just because frame pointers are available does not mean we can trust them. */
+#if defined (__i386__) || defined (__arm__)
+#define STP_USE_FRAME_POINTER
+#endif
+#endif
+
+/* dwarf unwinder only tested so far on i386 and x86_64 */
+#if !defined(STP_USE_FRAME_BUFFER) && (defined(__i386__) || defined(__x86_64__))
+#define STP_USE_DWARF_UNWINDER
+#endif
+
#include "alloc.c"
#include "print.c"
#include "string.c"
#include "io.c"
#include "arith.c"
#include "copy.c"
-#include "sym.h"
#include "sym.c"
#ifdef STP_PERFMON
#include "perf.c"