diff options
author | hunt <hunt> | 2005-06-23 14:55:14 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-06-23 14:55:14 +0000 |
commit | 39f04e089f07b1f79aa122c9fc3ddb856587ad81 (patch) | |
tree | fe16be8090bd3c56a6de8039c15b186d6ea51de7 /runtime/probes/test4/test4.c | |
parent | 383ca010e82dc5f00afa79250b3e0f15ed04cfed (diff) | |
download | systemtap-steved-39f04e089f07b1f79aa122c9fc3ddb856587ad81.tar.gz systemtap-steved-39f04e089f07b1f79aa122c9fc3ddb856587ad81.tar.xz systemtap-steved-39f04e089f07b1f79aa122c9fc3ddb856587ad81.zip |
2005-06-23 Martin Hunt <hunt@redhat.com>
* all probes: MOdified to use latest changes to transport.h.
Diffstat (limited to 'runtime/probes/test4/test4.c')
-rw-r--r-- | runtime/probes/test4/test4.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/runtime/probes/test4/test4.c b/runtime/probes/test4/test4.c index ac446bbb..313228e9 100644 --- a/runtime/probes/test4/test4.c +++ b/runtime/probes/test4/test4.c @@ -1,17 +1,8 @@ #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 @@ -68,23 +59,11 @@ static struct jprobe stp_probes[] = { #define MAX_STP_ROUTINE (sizeof(stp_probes)/sizeof(struct jprobe)) -static int pid; -module_param(pid, int, 0); -MODULE_PARM_DESC(pid, "daemon pid"); - int init_module(void) { int ret; - if (!pid) { - printk("init: Can't start without daemon pid\n"); - return -1; - } - - if (_stp_transport_open(transport_mode, n_subbufs, subbuf_size, pid) < 0) { - printk("init: Couldn't open transport\n"); - return -1; - } + TRANSPORT_OPEN; /* FIXME. Check return values */ opens = _stp_map_new_str (1000, INT64); |