diff options
author | fche <fche> | 2006-01-10 18:52:33 +0000 |
---|---|---|
committer | fche <fche> | 2006-01-10 18:52:33 +0000 |
commit | db22e55f4280ceaf3181e5b17aacd0ba4075e85f (patch) | |
tree | b2d2af0803c6e966e6fd7ce3b6c8ecf0ef8e33a1 /buildrun.cxx | |
parent | a9a29deb6ee0f9e38dea288e12477acb5f672f32 (diff) | |
download | systemtap-steved-db22e55f4280ceaf3181e5b17aacd0ba4075e85f.tar.gz systemtap-steved-db22e55f4280ceaf3181e5b17aacd0ba4075e85f.tar.xz systemtap-steved-db22e55f4280ceaf3181e5b17aacd0ba4075e85f.zip |
2006-01-10 Frank Ch. Eigler <fche@redhat.com>
PR 2060.
* buildrun.cxx (compile_pass): Add "V=1" to kbuild if verbose.
* translate.cxx (translator_output): For output-file constructor,
set an explicit output buffer.
(emit_module_init, emit_module_exit): Reorganize output, to spit
each individual probe registration/deregistration blurb into a
separate function.
* translate.h: Corresponding changes; set default buffer size to 8K.
* translate.cxx, tapsets.cxx: Replace "endl" by buffer-friendly "\n"
throughout code generation routines.
Diffstat (limited to 'buildrun.cxx')
-rw-r--r-- | buildrun.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/buildrun.cxx b/buildrun.cxx index 05d903d5..d678e874 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -66,6 +66,9 @@ compile_pass (systemtap_session& s) for (unsigned i=0; i<s.macros.size(); i++) o << "CFLAGS += -D " << lex_cast_qstring(s.macros[i]) << endl; + // XXX + // o << "CFLAGS += -ftime-report" << endl; + if (s.test_mode) { string module_dir = string("/lib/modules/") @@ -95,7 +98,9 @@ compile_pass (systemtap_session& s) { string make_cmd = string("make -C \"") + s.tmpdir + "\""; - if (! s.verbose) + if (s.verbose) + make_cmd += " V=1"; + else make_cmd += " -s >/dev/null 2>&1"; if (s.verbose) clog << "Running " << make_cmd << endl; @@ -113,7 +118,9 @@ compile_pass (systemtap_session& s) + string (" -C \"") + module_dir + string("\""); make_cmd += string(" M=\"") + s.tmpdir + string("\" modules"); - if (! s.verbose) + if (s.verbose) + make_cmd += " V=1"; + else make_cmd += " -s >/dev/null 2>&1"; if (s.verbose) clog << "Running " << make_cmd << endl; |