From f4b2849102b2a195dd79bede8ec58f46fb99435e Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 5 Jul 2005 20:38:37 +0000 Subject: 2005-07-05 Frank Ch. Eigler * elaborate.h (systemtap_session): Add more command-line arguments. * staptree.h (verbose): Bad global, no donut. * elaborate.cxx: Temporarily disable verbose variable access. * main.cxx: Support more arguments, build/run passes. Revamp temporary file generation and partial-pass output generation. * tapsets.cxx, translate.cxx: Emit just enough extra punctuation and fluff to make generated probe pass -Werror. * buildrun.cxx, buildrun.h: New files for passes 4/5. Partial support for build pass, nothing on probe execution yet. * testsuite/transok/*.stp: Force just -p3, now that -p4/5 exist. * Makefile.am, Makefile.in: Corresponding changes. --- elaborate.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'elaborate.h') diff --git a/elaborate.h b/elaborate.h index 5855c92d..e61796fa 100644 --- a/elaborate.h +++ b/elaborate.h @@ -195,6 +195,22 @@ struct systemtap_session { systemtap_session (); + // command line args + std::vector include_path; + std::vector args; + std::string kernel_release; + std::string runtime_path; + std::string module_name; + int last_pass; + bool test_mode; + bool verbose; + bool keep_tmpdir; + + // temporary directory for module builds etc. + // hazardous - it is "rm -rf"'d at exit + std::string tmpdir; + std::string translated_source; // C source code + match_node * pattern_root; void register_library_aliases(); @@ -202,9 +218,6 @@ struct systemtap_session stapfile* user_file; std::vector library_files; - // configuration options - // bool verbose_resolution; - // resolved globals/functions/probes for the run as a whole std::vector files; std::vector globals; -- cgit