From 44f753868fd81e3b5c614acc3a4898d5c812a610 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 9 Feb 2007 13:45:49 +0000 Subject: 2007-02-09 Frank Ch. Eigler 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 * systemtap.base/prologue.*: New test case. --- main.cxx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'main.cxx') 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; -- cgit