summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authortrz <trz>2005-10-05 20:19:50 +0000
committertrz <trz>2005-10-05 20:19:50 +0000
commit16d8de1b4b18b1655ef17d1ef0c0ea8e96d2aea2 (patch)
treee30bd39ad605b35e444516bb7cada110000344c7 /buildrun.cxx
parente8fbc5e8b71db38b83a215498ab34936689c3175 (diff)
downloadsystemtap-steved-16d8de1b4b18b1655ef17d1ef0c0ea8e96d2aea2.tar.gz
systemtap-steved-16d8de1b4b18b1655ef17d1ef0c0ea8e96d2aea2.tar.xz
systemtap-steved-16d8de1b4b18b1655ef17d1ef0c0ea8e96d2aea2.zip
stap command-line option additions: -b (bulk mode), -s (buffer size)
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 598d7110..ca3f862a 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -147,7 +147,7 @@ run_pass (systemtap_session& s)
// for now, just spawn stpd
string stpd_cmd = string("/usr/bin/sudo ")
+ string(PKGLIBDIR) + "/stpd "
- + "-r " // disable relayfs
+ + (s.bulk_mode ? "" : "-r ")
+ (s.verbose ? "" : "-q ");
if (s.cmd != "")
@@ -156,6 +156,9 @@ run_pass (systemtap_session& s)
if (s.target_pid)
stpd_cmd += "-t " + stringify(s.target_pid) + " ";
+ if (s.buffer_size)
+ stpd_cmd += "-b " + stringify(s.buffer_size) + " ";
+
stpd_cmd += s.tmpdir + "/" + s.module_name + ".ko";
if (s.verbose) clog << "Running " << stpd_cmd << endl;