summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 2e6d18d7..221d0463 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -131,11 +131,9 @@ run_pass (systemtap_session& s)
string username = string(pw->pw_name);
// for now, just spawn staprun
- string staprun_cmd = string("sudo ")
- + string(BINDIR) + "/staprun "
+ string staprun_cmd = string(BINDIR) + "/staprun "
+ (s.verbose>1 ? "-v " : "")
+ (s.verbose>2 ? "-v " : "")
- + "-u " + username + " "
+ (s.output_file.empty() ? "" : "-o " + s.output_file + " ");
staprun_cmd += "-d " + stringify(getpid()) + " ";