summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2008-04-14 12:53:38 -0500
committerDavid Smith <dsmith@redhat.com>2008-04-14 12:53:38 -0500
commitff82a2ca27f4fd0086a911656017e3b912778525 (patch)
tree17d6946329f0e52b2201bd1fcda52d2069a731fd /runtime/runtime.h
parent43807f81b6365864e047583eaebe5e85588c7b36 (diff)
parent775d51e5fb2f379fe4ae15dcbae8b17e4eab8805 (diff)
downloadsystemtap-steved-ff82a2ca27f4fd0086a911656017e3b912778525.tar.gz
systemtap-steved-ff82a2ca27f4fd0086a911656017e3b912778525.tar.xz
systemtap-steved-ff82a2ca27f4fd0086a911656017e3b912778525.zip
Merge branch 'master' of ssh://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"