summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx
index f74f9a91..1243df98 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -373,6 +373,12 @@ void stapfile::print (ostream& o)
o << endl;
}
+ for (unsigned i=0; i<aliases.size(); i++)
+ {
+ aliases[i]->print (o);
+ o << endl;
+ }
+
for (unsigned i=0; i<probes.size(); i++)
{
probes[i]->print (o);
@@ -417,6 +423,25 @@ void probe_point::print (ostream& o)
}
}
+probe_alias::probe_alias(std::vector<probe_point*> const & aliases):
+ probe (), alias_names (aliases)
+{
+}
+
+void probe_alias::printsig (ostream& o)
+{
+ for (unsigned i=0; i<alias_names.size(); i++)
+ {
+ o << (i>0 ? " = " : "");
+ alias_names[i]->print (o);
+ }
+ for (unsigned i=0; i<locations.size(); i++)
+ {
+ o << (i>0 ? ", " : "");
+ locations[i]->print (o);
+ }
+}
+
ostream& operator << (ostream& o, probe_point& k)
{