summaryrefslogtreecommitdiffstats
path: root/runtime/probes/tasklet/stp_tasklet.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/tasklet/stp_tasklet.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/tasklet/stp_tasklet.c')
-rw-r--r--runtime/probes/tasklet/stp_tasklet.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/runtime/probes/tasklet/stp_tasklet.c b/runtime/probes/tasklet/stp_tasklet.c
index 68569fb5..c6e7b132 100644
--- a/runtime/probes/tasklet/stp_tasklet.c
+++ b/runtime/probes/tasklet/stp_tasklet.c
@@ -4,9 +4,19 @@
#define STP_NETLINK_ONLY
#define STP_NUM_STRINGS 1
+
+static unsigned n_subbufs = 4;
+static unsigned subbuf_size = 65536;
+
#include "runtime.h"
-#include "probes.c"
+#ifdef STP_NETLINK_ONLY
+static int transport_mode = STP_TRANSPORT_NETLINK;
+#else
+static int transport_mode = STP_TRANSPORT_RELAYFS;
+#endif
+
+#include "probes.c"
MODULE_DESCRIPTION("test jprobes of tasklets");
MODULE_AUTHOR("Martin Hunt <hunt@redhat.com>");
@@ -42,7 +52,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_dtr: Couldn't open transport\n");
return -1;
}