summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorfche <fche>2007-02-09 13:45:49 +0000
committerfche <fche>2007-02-09 13:45:49 +0000
commit44f753868fd81e3b5c614acc3a4898d5c812a610 (patch)
tree459dbe716908765a6d0c36fcb71812d7a30eb2d1 /main.cxx
parent7d678473f851dadc2f5a4f6fe1a0bc7635750585 (diff)
downloadsystemtap-steved-44f753868fd81e3b5c614acc3a4898d5c812a610.tar.gz
systemtap-steved-44f753868fd81e3b5c614acc3a4898d5c812a610.tar.xz
systemtap-steved-44f753868fd81e3b5c614acc3a4898d5c812a610.zip
2007-02-09 Frank Ch. Eigler <fche@elastic.org>
PR 3965 * configure.ac: Add --enable-prologue option. * configure, config.in: Regenerated. * session.h (prologue_searching): New field. * main.cxx (main): Parse new "-P" option. Initialize based on autoconf flag. * stap.1.in, NEWS: Document it. * hash.cxx (find_hash): Include it in computation. * tapsets.cxx (query_func_info, query_cu): Respect it. 2007-02-09 Frank Ch. Eigler <fche@elastic.org> * systemtap.base/prologue.*: New test case.
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/main.cxx b/main.cxx
index 09810bd5..554887a9 100644
--- a/main.cxx
+++ b/main.cxx
@@ -71,6 +71,8 @@ usage (systemtap_session& s, int exitcode)
<< " -k keep temporary directory" << endl
<< " -u unoptimized translation" << (s.unoptimized ? " [set]" : "") << endl
<< " -g guru mode" << (s.guru_mode ? " [set]" : "") << endl
+ << " -P prologue-searching for function probes"
+ << (s.prologue_searching ? " [set]" : "") << endl
<< " -b bulk (relayfs) mode" << (s.bulk_mode ? " [set]" : "") << endl
<< " -M Don't merge per-cpu files for bulk (relayfs) mode" << (s.merge ? "" : " [set]") << endl
<< " -s NUM buffer size in megabytes, instead of "
@@ -197,6 +199,13 @@ main (int argc, char * const argv [])
s.guru_mode = false;
s.bulk_mode = false;
s.unoptimized = false;
+
+#ifdef ENABLE_PROLOGUES
+ s.prologue_searching = true;
+#else
+ s.prologue_searching = false;
+#endif
+
s.buffer_size = 0;
s.last_pass = 5;
s.module_name = "stap_" + stringify(getpid());
@@ -256,7 +265,8 @@ main (int argc, char * const argv [])
while (true)
{
- int grc = getopt (argc, argv, "hVMvtp:I:e:o:R:r:m:kgc:x:D:bs:u");
+ // NB: also see find_hash(), help(), switch stmt below, stap.1 man page
+ int grc = getopt (argc, argv, "hVMvtp:I:e:o:R:r:m:kgPc:x:D:bs:u");
if (grc < 0)
break;
switch (grc)
@@ -328,6 +338,10 @@ main (int argc, char * const argv [])
s.guru_mode = true;
break;
+ case 'P':
+ s.prologue_searching = true;
+ break;
+
case 'b':
s.bulk_mode = true;
break;