From 5657c32c8ae7d344ccf62549739e605f23d6e660 Mon Sep 17 00:00:00 2001 From: brolley Date: Wed, 30 Jan 2008 16:17:00 +0000 Subject: 2008-01-30 Dave Brolley * coveragedb.cxx (print_coverage_info): Fix typo: s.probes -> s.unused_probes where appropriate. (sql_update_unused_probes): Likewise. --- coveragedb.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coveragedb.cxx') diff --git a/coveragedb.cxx b/coveragedb.cxx index bee84db9..6def56e7 100644 --- a/coveragedb.cxx +++ b/coveragedb.cxx @@ -52,7 +52,7 @@ void print_coverage_info(systemtap_session &s) for (unsigned i=0; i unused_probe_list; - s.probes[i]->collect_derivation_chain(unused_probe_list); + s.unused_probes[i]->collect_derivation_chain(unused_probe_list); for (unsigned j=0; jlocations.size(); ++k) clog << "probe: " @@ -241,7 +241,7 @@ sql_update_unused_probes(sqlite3 *db, systemtap_session &s) for (unsigned i=0; i unused_probe_list; - s.probes[i]->collect_derivation_chain(unused_probe_list); + s.unused_probes[i]->collect_derivation_chain(unused_probe_list); for (unsigned j=0; jlocations.size(); ++k) { -- cgit From 2c5a19c6ba969d8fa30070e7579c1597a0e1c194 Mon Sep 17 00:00:00 2001 From: brolley Date: Wed, 13 Feb 2008 16:43:08 +0000 Subject: 2008-02-13 Dave Brolley PR5609 * staptree.h (probe::collect_derivation_chain): Now takes vector. (probe::get_alias): New virtual method. * elaborate.h (derived_probe::collect_derivation_chain): Now takes vector. * staptree.cxx (probe::collect_derivation_chain): Now takes vector. Don't cast 'this' to (derived_probe*). * elaborate.cxx (derived_probe::collect_derivation_chain): Now takes vector. (alias_derived_probe::get_alias): New virtual method. (alias_derived_probe::alias): New member. (alias_expansion_builder::build): Call checkForRecursiveExpansion and emit a diagnostic if recursion is detected. Pass alias to constructor of alias_derived_probe. (alias_expansion_builder::checkForRecursiveExpansion): New method. * coveragedb.cxx: Pass vector on all calls to collect_derivation_chain. --- coveragedb.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'coveragedb.cxx') diff --git a/coveragedb.cxx b/coveragedb.cxx index 6def56e7..8258b359 100644 --- a/coveragedb.cxx +++ b/coveragedb.cxx @@ -28,7 +28,7 @@ void print_coverage_info(systemtap_session &s) clog << "---- used probes-----" << endl; for (unsigned i=0; i used_probe_list; + vector used_probe_list; s.probes[i]->collect_derivation_chain(used_probe_list); for (unsigned j=0; jlocations.size(); ++k) @@ -51,7 +51,7 @@ void print_coverage_info(systemtap_session &s) clog << "---- unused probes----- " << endl; for (unsigned i=0; i unused_probe_list; + vector unused_probe_list; s.unused_probes[i]->collect_derivation_chain(unused_probe_list); for (unsigned j=0; jlocations.size(); ++k) @@ -197,7 +197,7 @@ sql_update_used_probes(sqlite3 *db, systemtap_session &s) // update database used probes for (unsigned i=0; i used_probe_list; + vector used_probe_list; s.probes[i]->collect_derivation_chain(used_probe_list); for (unsigned j=0; jlocations.size(); ++k){ @@ -240,7 +240,7 @@ sql_update_unused_probes(sqlite3 *db, systemtap_session &s) // update database unused probes for (unsigned i=0; i unused_probe_list; + vector unused_probe_list; s.unused_probes[i]->collect_derivation_chain(unused_probe_list); for (unsigned j=0; jlocations.size(); ++k) { -- cgit