summaryrefslogtreecommitdiffstats
path: root/runtime/probes/test4/test4.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/probes/test4/test4.c')
-rw-r--r--runtime/probes/test4/test4.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/runtime/probes/test4/test4.c b/runtime/probes/test4/test4.c
index 9867d8ef..ac446bbb 100644
--- a/runtime/probes/test4/test4.c
+++ b/runtime/probes/test4/test4.c
@@ -1,7 +1,17 @@
#define STP_NETLINK_ONLY
#define STP_NUM_STRINGS 1
+
+static unsigned n_subbufs = 4;
+static unsigned subbuf_size = 65536;
+
#include "runtime.h"
+#ifdef STP_NETLINK_ONLY
+static int transport_mode = STP_TRANSPORT_NETLINK;
+#else
+static int transport_mode = STP_TRANSPORT_RELAYFS;
+#endif
+
#define NEED_INT64_VALS
#define NEED_STAT_VALS
@@ -71,7 +81,7 @@ int init_module(void)
return -1;
}
- if (_stp_transport_open(n_subbufs, subbuf_size, pid) < 0) {
+ if (_stp_transport_open(transport_mode, n_subbufs, subbuf_size, pid) < 0) {
printk("init: Couldn't open transport\n");
return -1;
}