summaryrefslogtreecommitdiffstats
path: root/runtime/probes/shellsnoop/shellsnoop.c
diff options
context:
space:
mode:
authortrz <trz>2005-06-21 14:13:01 +0000
committertrz <trz>2005-06-21 14:13:01 +0000
commitaac3ed25e8dc7355b5f28fae2878f644df14ef7d (patch)
treec2d284ccffb7dd9a82b000bd9c7152e5abbf160f /runtime/probes/shellsnoop/shellsnoop.c
parentbd2b1e6816b486d5c85a4693f0b3579df4376ed5 (diff)
downloadsystemtap-steved-aac3ed25e8dc7355b5f28fae2878f644df14ef7d.tar.gz
systemtap-steved-aac3ed25e8dc7355b5f28fae2878f644df14ef7d.tar.xz
systemtap-steved-aac3ed25e8dc7355b5f28fae2878f644df14ef7d.zip
Added merging/sorting of per-cpu data, transport config/selection by probe, etc
Diffstat (limited to 'runtime/probes/shellsnoop/shellsnoop.c')
-rw-r--r--runtime/probes/shellsnoop/shellsnoop.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/runtime/probes/shellsnoop/shellsnoop.c b/runtime/probes/shellsnoop/shellsnoop.c
index 86d2e54d..21ad6b18 100644
--- a/runtime/probes/shellsnoop/shellsnoop.c
+++ b/runtime/probes/shellsnoop/shellsnoop.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_STRING_VALS
@@ -118,7 +128,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_module: Couldn't open transport\n");
return -1;
}