summaryrefslogtreecommitdiffstats
path: root/coveragedb.cxx
diff options
context:
space:
mode:
authorbrolley <brolley>2008-02-13 16:43:08 +0000
committerbrolley <brolley>2008-02-13 16:43:08 +0000
commit2c5a19c6ba969d8fa30070e7579c1597a0e1c194 (patch)
tree1b1de9e06811e80ccd5703cf8c03004e4edeeb35 /coveragedb.cxx
parent4bab8964266929ec9356590db0d0fe51607c4b6b (diff)
downloadsystemtap-steved-2c5a19c6ba969d8fa30070e7579c1597a0e1c194.tar.gz
systemtap-steved-2c5a19c6ba969d8fa30070e7579c1597a0e1c194.tar.xz
systemtap-steved-2c5a19c6ba969d8fa30070e7579c1597a0e1c194.zip
2008-02-13 Dave Brolley <brolley@redhat.com>
PR5609 * staptree.h (probe::collect_derivation_chain): Now takes vector<probe*>. (probe::get_alias): New virtual method. * elaborate.h (derived_probe::collect_derivation_chain): Now takes vector<probe*>. * staptree.cxx (probe::collect_derivation_chain): Now takes vector<probe*>. Don't cast 'this' to (derived_probe*). * elaborate.cxx (derived_probe::collect_derivation_chain): Now takes vector<probe*>. (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<probe*> on all calls to collect_derivation_chain.
Diffstat (limited to 'coveragedb.cxx')
-rw-r--r--coveragedb.cxx8
1 files changed, 4 insertions, 4 deletions
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<s.probes.size(); i++) {
// walk through the chain of probes
- vector<derived_probe*> used_probe_list;
+ vector<probe*> used_probe_list;
s.probes[i]->collect_derivation_chain(used_probe_list);
for (unsigned j=0; j<used_probe_list.size(); ++j) {
for (unsigned k=0; k< used_probe_list[j]->locations.size(); ++k)
@@ -51,7 +51,7 @@ void print_coverage_info(systemtap_session &s)
clog << "---- unused probes----- " << endl;
for (unsigned i=0; i<s.unused_probes.size(); i++) {
// walk through the chain of probes
- vector<derived_probe*> unused_probe_list;
+ vector<probe*> unused_probe_list;
s.unused_probes[i]->collect_derivation_chain(unused_probe_list);
for (unsigned j=0; j<unused_probe_list.size(); ++j) {
for (unsigned k=0; k< unused_probe_list[j]->locations.size(); ++k)
@@ -197,7 +197,7 @@ sql_update_used_probes(sqlite3 *db, systemtap_session &s)
// update database used probes
for (unsigned i=0; i<s.probes.size(); i++) {
// walk through the chain of probes
- vector<derived_probe*> used_probe_list;
+ vector<probe*> used_probe_list;
s.probes[i]->collect_derivation_chain(used_probe_list);
for (unsigned j=0; j<used_probe_list.size(); ++j) {
for (unsigned k=0; k< used_probe_list[j]->locations.size(); ++k){
@@ -240,7 +240,7 @@ sql_update_unused_probes(sqlite3 *db, systemtap_session &s)
// update database unused probes
for (unsigned i=0; i<s.unused_probes.size(); i++) {
// walk through the chain of probes
- vector<derived_probe*> unused_probe_list;
+ vector<probe*> unused_probe_list;
s.unused_probes[i]->collect_derivation_chain(unused_probe_list);
for (unsigned j=0; j<unused_probe_list.size(); ++j) {
for (unsigned k=0; k< unused_probe_list[j]->locations.size(); ++k) {