if (s.verbose > 1) clog << "Running " << make_cmd << endl;
rc = stap_system (make_cmd.c_str());
-
+ if (rc && s.verbose > 1)
+ clog << "Error " << rc << " " << strerror(rc) << endl;
return rc;
}
string grep_cmd = string ("/bin/grep -q unregister_uprobe ") +
s.kernel_build_tree + string ("/Module.symvers");
int rc = stap_system (grep_cmd.c_str());
+ if (rc && s.verbose > 1)
+ clog << "Error " << rc << " " << strerror(rc) << endl;
return (rc == 0);
}
string cp_cmd = string("/bin/cp ") + uprobes_home +
string("/Module.symvers ") + s.tmpdir;
int rc = stap_system (cp_cmd.c_str());
+ if (rc && s.verbose > 1)
+ clog << "Error " << rc << " " << strerror(rc) << endl;
return rc;
}
if (s.verbose>1) clog << "Running " << staprun_cmd << endl;
rc = stap_system (staprun_cmd.c_str ());
+ if (rc && s.verbose > 1)
+ clog << "Error " << rc << " " << strerror(rc) << endl;
return rc;
}
+ name + " -xc /dev/null -include " + header;
if (s.verbose < 4)
cmd += " >/dev/null 2>&1";
- return stap_system (cmd.c_str());
+ int rc = stap_system (cmd.c_str());
+ if (rc && s.verbose > 1)
+ clog << "Error " << rc << " " << strerror(rc) << endl;
+ return rc;
}