summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-08-18 15:52:02 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-08-18 15:54:51 -0400
commita7ed0d3e9d68f5f83e8b9f6679ce12637842b03b (patch)
treea01ff5acbb57e84cba5c66b3f37d0826b13f0d54 /tapsets.cxx
parent66671fd8e5bccd2b15ffe50299c81e964d7e7dbe (diff)
downloadsystemtap-steved-a7ed0d3e9d68f5f83e8b9f6679ce12637842b03b.tar.gz
systemtap-steved-a7ed0d3e9d68f5f83e8b9f6679ce12637842b03b.tar.xz
systemtap-steved-a7ed0d3e9d68f5f83e8b9f6679ce12637842b03b.zip
PR10518: context shrinkage with function recursion analysis feeding MAXNESTING
* translate.cxx (emit_common_header, translate_pass): Use new recursion_info visitor to calculate appropriate MAXNESTING value for scripts with or without recursion. * tapsets.cxx (common_probe_entryfn_prologue): Initialize c->nesting = -1. * stap.1.in: Clarify MAXNESTING value.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index e12ff6bd..3d38a3ce 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -121,7 +121,7 @@ common_probe_entryfn_prologue (translator_output* o, string statestr,
o->newline();
o->newline() << "c->last_stmt = 0;";
o->newline() << "c->last_error = 0;";
- o->newline() << "c->nesting = 0;";
+ o->newline() << "c->nesting = -1;"; // NB: PR10516 packs locals[] tighter
o->newline() << "c->regs = 0;";
o->newline() << "c->unwaddr = 0;";
o->newline() << "c->probe_point = " << new_pp << ";";