summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-09-10 12:36:32 -0500
committerDavid Smith <dsmith@redhat.com>2009-09-10 12:36:32 -0500
commit1b79720abf041b35f8289ed74b77a504f3f5cb40 (patch)
tree4968e01587d956af688b5838aa9f1f29c159c622 /runtime
parente41820aff558fe3778a31199b88803f016592bcd (diff)
downloadsystemtap-steved-1b79720abf041b35f8289ed74b77a504f3f5cb40.tar.gz
systemtap-steved-1b79720abf041b35f8289ed74b77a504f3f5cb40.tar.xz
systemtap-steved-1b79720abf041b35f8289ed74b77a504f3f5cb40.zip
Allow ring_buffer to be used if STP_USE_RING_BUFFER is defined.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/transport/transport.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/transport/transport.c b/runtime/transport/transport.c
index 1d029e53..f5efce9f 100644
--- a/runtime/transport/transport.c
+++ b/runtime/transport/transport.c
@@ -31,8 +31,9 @@ static int _stp_ctl_attached = 0;
static pid_t _stp_target = 0;
static int _stp_probes_started = 0;
-// For now, disable transport version 3
-#if STP_TRANSPORT_VERSION == 3
+// For now, disable transport version 3 (unless STP_USE_RING_BUFFER is
+// defined).
+#if STP_TRANSPORT_VERSION == 3 && !defined(STP_USE_RING_BUFFER)
#undef STP_TRANSPORT_VERSION
#define STP_TRANSPORT_VERSION 2
#endif