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;
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)
{