summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@redhat.com>2009-03-20 13:31:18 -0400
committerMasami Hiramatsu <mhiramat@redhat.com>2009-03-20 13:31:18 -0400
commit701c41be909697d5ab36f7604a1f3620c7d04abc (patch)
treeb9dda527c756bbdbb6cd3c243b713073ec00c698 /buildrun.cxx
parentacd56c22068963ad48f39890f5307600ff7d5278 (diff)
downloadsystemtap-steved-701c41be909697d5ab36f7604a1f3620c7d04abc.tar.gz
systemtap-steved-701c41be909697d5ab36f7604a1f3620c7d04abc.tar.xz
systemtap-steved-701c41be909697d5ab36f7604a1f3620c7d04abc.zip
PR6930: stap: supports on-file flight recorder options
Add on-file flight recorder options (the combination of -F and -o, and -S option) to stap command, and change manpages and NEWS. - Both of -F and -o is specified, stap passes -D option to staprun. - stap just passes -S option to staprun.
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 0e9e0e17..e3634545 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -329,7 +329,10 @@ run_pass (systemtap_session& s)
staprun_cmd += "-u ";
if (s.load_only)
- staprun_cmd += "-L ";
+ staprun_cmd += (s.output_file.empty() ? "-L " : "-D ");
+
+ if (!s.size_option.empty())
+ staprun_cmd += "-S " + s.size_option + " ";
staprun_cmd += s.tmpdir + "/" + s.module_name + ".ko";