summaryrefslogtreecommitdiffstats
path: root/translate.h
diff options
context:
space:
mode:
authorfche <fche>2006-01-10 18:52:33 +0000
committerfche <fche>2006-01-10 18:52:33 +0000
commitdb22e55f4280ceaf3181e5b17aacd0ba4075e85f (patch)
treeb2d2af0803c6e966e6fd7ce3b6c8ecf0ef8e33a1 /translate.h
parenta9a29deb6ee0f9e38dea288e12477acb5f672f32 (diff)
downloadsystemtap-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 'translate.h')
-rw-r--r--translate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/translate.h b/translate.h
index 39e56dd7..1c6dc9f6 100644
--- a/translate.h
+++ b/translate.h
@@ -21,13 +21,14 @@
// pretty-printing.
class translator_output
{
+ char *buf;
std::ofstream* o2;
std::ostream& o;
unsigned tablevel;
public:
translator_output (std::ostream& file);
- translator_output (const std::string& filename);
+ translator_output (const std::string& filename, size_t bufsize = 8192);
~translator_output ();
std::ostream& newline (int indent = 0);