diff options
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index 318d3038..2711f531 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -58,25 +58,32 @@ static struct #define _stp_seq_inc() (atomic_inc_return(&_stp_seq.seq)) -/* TEST_MODE is always defined by systemtap */ -#ifdef TEST_MODE -#define SYSTEMTAP 1 -#else -#define MAXTRYLOCK 1000 -#define TRYLOCKDELAY 100 -#endif - #ifndef MAXSTRINGLEN #define MAXSTRINGLEN 128 #endif +#ifndef MAXTRACE +#define MAXTRACE 20 +#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" |