]> sourceware.org Git - systemtap.git/commitdiff
Remove monitor mode global mangling
authorFelix Lu <flu@redhat.com>
Mon, 21 Mar 2016 14:13:27 +0000 (10:13 -0400)
committerFelix Lu <flu@redhat.com>
Mon, 21 Mar 2016 14:17:07 +0000 (10:17 -0400)
Commit 87103d2b32ea873721 does not mangle variable names
during the search so the synthetic monitor_enabled variables could
not be found. Those synthetic variables are now not mangled to
allow them to be found.

elaborate.cxx

index 6e596165df0e9b7ab762a91f93e6eda425cbe5ee..fa3d193a2b1d7cfc16d79196fe46a25c031bd4ad 100644 (file)
@@ -2098,7 +2098,7 @@ static void monitor_mode_write(systemtap_session& s)
       it != s.probes.end()-1; ++it) // Skip monitor read probe
     {
       vardecl* v = new vardecl;
-      v->unmangled_name = v->name = "__global___monitor_" + lex_cast(it-s.probes.begin()) + "_enabled";
+      v->unmangled_name = v->name = "__monitor_" + lex_cast(it-s.probes.begin()) + "_enabled";
       v->tok = (*it)->tok;
       v->set_arity(0, (*it)->tok);
       v->type = pe_long;
@@ -2132,9 +2132,7 @@ static void monitor_mode_write(systemtap_session& s)
 
   code << "probe procfs(\"monitor_control\").write {" << endl;
 
-  code << "  if ($value == \"exit\") { exit()";
-
-  code << "  } else if ($value == \"clear\") {";
+  code << "if ($value == \"clear\") {";
   for (vector<vardecl*>::const_iterator it = s.globals.begin();
       it != s.globals.end(); ++it)
     {
This page took 0.036814 seconds and 5 git commands to generate.