Mangling a private global happens based on the name of the file where the
variable got defined. Stap automatically prints written and unread globals
and private globals at the end of the session. For autogeneration purposes
of respective derived synthetic probes, we need to keep track of the file
where given variable got defined.
probe*
parse_synthetic_probe (systemtap_session &s, istream& i, const token* tok)
{
- parser p (s, "<synthetic>", i);
+ parser p (s, tok->location.file->name, i);
return p.parse_synthetic_probe (tok);
}