diff options
author | Josh Stone <jistone@redhat.com> | 2009-04-16 15:07:42 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-04-16 15:07:42 -0700 |
commit | 9afe68eda6c01ca07a4f6010104f524a337d2050 (patch) | |
tree | 89d3a6e0badb86c81298e8f274dc7dc3e99b102b /runtime/unwind.c | |
parent | 466076411bb00af1b2d13423b47ee2835e9b1c97 (diff) | |
download | systemtap-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.c')
-rw-r--r-- | runtime/unwind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/unwind.c b/runtime/unwind.c index f7b19def..41af72a7 100644 --- a/runtime/unwind.c +++ b/runtime/unwind.c @@ -345,7 +345,7 @@ static int processCFI(const u8 *start, const u8 *end, unsigned long targetLoc, s state->label = NULL; return 1; } - if (state->stackDepth >= MAX_STACK_DEPTH) + if (state->stackDepth >= STP_MAX_STACK_DEPTH) return 0; state->stack[state->stackDepth++] = ptr.p8; break; |