summaryrefslogtreecommitdiffstats
path: root/runtime/unwind
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-04-16 15:07:42 -0700
committerJosh Stone <jistone@redhat.com>2009-04-16 15:07:42 -0700
commit9afe68eda6c01ca07a4f6010104f524a337d2050 (patch)
tree89d3a6e0badb86c81298e8f274dc7dc3e99b102b /runtime/unwind
parent466076411bb00af1b2d13423b47ee2835e9b1c97 (diff)
downloadsystemtap-steved-9afe68eda6c01ca07a4f6010104f524a337d2050.tar.gz
systemtap-steved-9afe68eda6c01ca07a4f6010104f524a337d2050.tar.xz
systemtap-steved-9afe68eda6c01ca07a4f6010104f524a337d2050.zip
Privatize MAX_STACK_DEPTH
The kernel-tip tree also has a MAX_STACK_DEPTH defined in perf_counter.h, so we need to separate our definition. I've changed the definition in our unwinder to STP_MAX_STACK_DEPTH.
Diffstat (limited to 'runtime/unwind')
-rw-r--r--runtime/unwind/unwind.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/unwind/unwind.h b/runtime/unwind/unwind.h
index 78a4bfef..3b6d0de0 100644
--- a/runtime/unwind/unwind.h
+++ b/runtime/unwind/unwind.h
@@ -23,7 +23,7 @@
#error "Unsupported dwarf unwind architecture"
#endif
-#define MAX_STACK_DEPTH 8
+#define STP_MAX_STACK_DEPTH 8
#ifndef BUILD_BUG_ON_ZERO
#define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
@@ -135,7 +135,7 @@ struct unwind_state {
unsigned stackDepth:8;
unsigned version:8;
const u8 *label;
- const u8 *stack[MAX_STACK_DEPTH];
+ const u8 *stack[STP_MAX_STACK_DEPTH];
};
static const struct cfa badCFA = { ARRAY_SIZE(reg_info), 1 };