]> sourceware.org Git - systemtap.git/commitdiff
Fix synthetic probes generation for written and unread private globals.
authorMartin Cermak <mcermak@redhat.com>
Wed, 11 Nov 2015 09:23:16 +0000 (10:23 +0100)
committerMartin Cermak <mcermak@redhat.com>
Wed, 11 Nov 2015 09:23:16 +0000 (10:23 +0100)
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.

parse.cxx

index 069bb4c10517c7f78c0e1dacb9f489547cebb126..deb74bd082866c2a45662f9b466f187d7c93e148 100644 (file)
--- a/parse.cxx
+++ b/parse.cxx
@@ -269,7 +269,7 @@ parse_library_macros (systemtap_session& s, const string& name)
 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);
 }
 
This page took 0.031415 seconds and 5 git commands to generate.