summaryrefslogtreecommitdiffstats
path: root/session.h
diff options
context:
space:
mode:
authorwcohen <wcohen>2007-06-26 19:36:25 +0000
committerwcohen <wcohen>2007-06-26 19:36:25 +0000
commitc3a3c0c99c32c0969e6450d60aae1a2b1798ca17 (patch)
tree536bc183503bbcb0fbfa4ce419175e59a0855983 /session.h
parent23944d00d55ecc08acbb0e2f39f7fb5cd7a0580e (diff)
downloadsystemtap-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 'session.h')
-rw-r--r--session.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/session.h b/session.h
index f6ca3a43..638e9f27 100644
--- a/session.h
+++ b/session.h
@@ -97,6 +97,7 @@ struct systemtap_session
unsigned perfmon;
bool symtab; /* true: emit symbol table at translation time; false: let staprun do it. */
bool prologue_searching;
+ bool tapset_compile_coverage;
// Cache data
bool use_cache;
@@ -122,6 +123,10 @@ struct systemtap_session
std::vector<derived_probe*> probes; // see also *_probes groups below
std::vector<embeddedcode*> embeds;
std::map<std::string, statistic_decl> stat_decls;
+ // track things that are removed
+ std::vector<vardecl*> unused_globals;
+ std::vector<derived_probe*> unused_probes; // see also *_probes groups below
+ std::vector<functiondecl*> unused_functions;
// XXX: vector<*> instead please?
// Every probe in these groups must also appear in the