diff options
author | wcohen <wcohen> | 2007-06-26 19:36:25 +0000 |
---|---|---|
committer | wcohen <wcohen> | 2007-06-26 19:36:25 +0000 |
commit | c3a3c0c99c32c0969e6450d60aae1a2b1798ca17 (patch) | |
tree | 536bc183503bbcb0fbfa4ce419175e59a0855983 /staptree.h | |
parent | 23944d00d55ecc08acbb0e2f39f7fb5cd7a0580e (diff) | |
download | systemtap-steved-c3a3c0c99c32c0969e6450d60aae1a2b1798ca17.tar.gz systemtap-steved-c3a3c0c99c32c0969e6450d60aae1a2b1798ca17.tar.xz systemtap-steved-c3a3c0c99c32c0969e6450d60aae1a2b1798ca17.zip |
2007-06-26 William Cohen <wcohen@redhat.com>
PR 4529
* coveragedb.cxx: New.
* coveragedb.h: New.
* Makefile.am: Add coveragedb.cxx and sqlite3 to build.
* Makefile.in: Regenerated.
* configure.ac: Add test for sqlite3
* configure: Regenerated.
* systemtap.spec.in: Add dependencies for sqlite3/sqlite3-devel.
* elaborate.h, elaborate.cxx
(derived_probe::collect_derivation_chain): New.
(alias_expansion_builder::build): Correct token location.
(semantic_pass_opt[12): Track used and unused variables/functions.
* session.h (tapset_compile_coverage, unused_globals,
unused_probes, unused_functions): New fields.
* staptree.h (unused_locals, probe_point::str): New member.
* staptree.cxx: Ditto.
* main.cxx: Add "-q" tapset coverage option and SYSTEMTAP_COVERAGE env.
Diffstat (limited to 'staptree.h')
-rw-r--r-- | staptree.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -411,6 +411,7 @@ struct functiondecl: public symboldecl { std::vector<vardecl*> formal_args; std::vector<vardecl*> locals; + std::vector<vardecl*> unused_locals; statement* body; functiondecl (); void print (std::ostream& o) const; @@ -537,6 +538,7 @@ struct next_statement: public statement struct probe; +struct derived_probe; struct probe_alias; struct embeddedcode; struct stapfile @@ -570,6 +572,7 @@ struct probe_point void print (std::ostream& o) const; probe_point (); probe_point(std::vector<component*> const & comps,const token * t); + std::string str(); }; std::ostream& operator << (std::ostream& o, const probe_point& k); @@ -581,9 +584,11 @@ struct probe block* body; const token* tok; std::vector<vardecl*> locals; + std::vector<vardecl*> unused_locals; probe (); void print (std::ostream& o) const; virtual void printsig (std::ostream &o) const; + virtual void collect_derivation_chain (std::vector<derived_probe*> &probes_list); virtual probe* basest () { return this; } virtual ~probe() {} bool privileged; |