diff options
author | fche <fche> | 2007-02-09 13:45:49 +0000 |
---|---|---|
committer | fche <fche> | 2007-02-09 13:45:49 +0000 |
commit | 44f753868fd81e3b5c614acc3a4898d5c812a610 (patch) | |
tree | 459dbe716908765a6d0c36fcb71812d7a30eb2d1 /main.cxx | |
parent | 7d678473f851dadc2f5a4f6fe1a0bc7635750585 (diff) | |
download | systemtap-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.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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; |