summaryrefslogtreecommitdiffstats
path: root/runtime/transport
diff options
context:
space:
mode:
authorhiramatu <hiramatu>2007-11-09 18:12:06 +0000
committerhiramatu <hiramatu>2007-11-09 18:12:06 +0000
commit185457afd0b9b00f835e2bedcd6801aae432b699 (patch)
tree667dc956901aa44b59cd87adc4ad688a71b3cdfb /runtime/transport
parentbba416fe7a5eb25ed7c517d076185ce4cfaf6fbd (diff)
downloadsystemtap-steved-185457afd0b9b00f835e2bedcd6801aae432b699.tar.gz
systemtap-steved-185457afd0b9b00f835e2bedcd6801aae432b699.tar.xz
systemtap-steved-185457afd0b9b00f835e2bedcd6801aae432b699.zip
2007-11-09 Masami Hiramatsu <mhiramat@redhat.com>
PR3858 * print.c: Add -DRELAY_HOST=<hostname> and -DRELAY_GUEST=<hostname> options support. (_stp_print_flush): Disable irqs if -DRELAY_* option is specified. * print_old.c: Export stp_print_flush to other modules if the -DRELAY_HOST option is specified. * print_new.c: Ditto. * transport.c (_stp_transport_init): Reduce relay buffer size to 64KB*2 if -DRELAY_GUEST is specified. * systemtap.printf/sharedbuf.exp: New test for buffer sharing option. * systemtap.printf/sharedbuf.stp: Ditto. * systemtap.printf/hello.stp: Ditto. * systemtap.printf/hello2.stp: Ditto.
Diffstat (limited to 'runtime/transport')
-rw-r--r--runtime/transport/ChangeLog6
-rw-r--r--runtime/transport/transport.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/runtime/transport/ChangeLog b/runtime/transport/ChangeLog
index ee34ef19..263a6bf8 100644
--- a/runtime/transport/ChangeLog
+++ b/runtime/transport/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-09 Masami Hiramatsu <mhiramat@redhat.com>
+
+ PR3858
+ * transport.c (_stp_transport_init): Reduce relay buffer size to
+ 64KB*2 if -DRELAY_GUEST is specified.
+
2007-11-09 Martin Hunt <hunt@redhat.com>
PR 5281
* transport.c (_stp_detach, _stp_attach): Call utt_set_overwrite()
diff --git a/runtime/transport/transport.c b/runtime/transport/transport.c
index 9aa26b79..2904cf2f 100644
--- a/runtime/transport/transport.c
+++ b/runtime/transport/transport.c
@@ -249,6 +249,12 @@ int _stp_transport_init(void)
_stp_uid = current->uid;
_stp_gid = current->gid;
+#ifdef RELAY_GUEST
+ /* Guest scripts use relay only for reporting warnings and errors */
+ _stp_subbuf_size = 65536;
+ _stp_nsubbufs = 2;
+#endif
+
if (_stp_bufsize) {
unsigned size = _stp_bufsize * 1024 * 1024;
_stp_subbuf_size = ((size >> 2) + 1) * 65536;