virtual void join_group (systemtap_session& s) = 0;
virtual probe_point* sole_location () const;
virtual probe_point* script_location () const;
- virtual void printsig (std::ostream &o, bool nest=true) const;
+ virtual void printsig (std::ostream &o) const override;
+ void printsig_nonest (std::ostream &o) const;
// return arguments of probe if there
virtual void getargs (std::list<std::string> &) const {}
void printsig_nested (std::ostream &o) const;
{
// We want to print the probe point signature (without the nested components).
std::ostringstream sig;
- p->printsig(sig, false);
+ p->printsig_nonest(sig);
if (s.dump_mode == systemtap_session::dump_matched_probes_vars && isatty(STDOUT_FILENO))
o << s.colorize(sig.str(), "source");
interned_string user_lib;
bool access_vars;
- void printsig (std::ostream &o, bool nest=true) const;
+ void printsig (std::ostream &o) const;
virtual void join_group (systemtap_session& s);
void emit_probe_local_init(systemtap_session& s, translator_output * o);
void getargs(std::list<std::string> &arg_set) const;
void
-dwarf_derived_probe::printsig (ostream& o, bool nest) const
+dwarf_derived_probe::printsig (ostream& o) const
{
// Instead of just printing the plain locations, we add a PC value
// as a comment as a way of telling e.g. apart multiple inlined
else
o << " /* pc=" << section << "+0x" << hex << addr << dec << " */";
- if (nest)
- printsig_nested (o);
+ printsig_nested (o);
}
string path;
string library;
bool access_var;
- void printsig (std::ostream &o, bool nest=true) const;
+ void printsig (std::ostream &o) const;
void join_group (systemtap_session& s);
};
this->sole_location()->components = comps;
}
-void kprobe_derived_probe::printsig (ostream& o, bool nest) const
+void kprobe_derived_probe::printsig (ostream& o) const
{
+ bool nest = true;
sole_location()->print (o);
o << " /* " << " name = " << symbol_name << "*/";
string symbol_name;
unsigned int hwbkpt_access,hwbkpt_len;
- void printsig (std::ostream &o, bool nest) const;
+ void printsig (std::ostream &o) const;
void join_group (systemtap_session& s);
};
this->sole_location()->components = comps;
}
-void hwbkpt_derived_probe::printsig (ostream& o, bool nest) const
+void hwbkpt_derived_probe::printsig (ostream& o) const
{
sole_location()->print (o);
-
- if (nest)
- printsig_nested (o);
+ printsig_nested (o);
}
void hwbkpt_derived_probe::join_group (systemtap_session& s)