From 39f04e089f07b1f79aa122c9fc3ddb856587ad81 Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 23 Jun 2005 14:55:14 +0000 Subject: 2005-06-23 Martin Hunt * all probes: MOdified to use latest changes to transport.h. --- runtime/probes/shellsnoop/shellsnoop.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'runtime/probes/shellsnoop/shellsnoop.c') diff --git a/runtime/probes/shellsnoop/shellsnoop.c b/runtime/probes/shellsnoop/shellsnoop.c index 21ad6b18..d37adcc9 100644 --- a/runtime/probes/shellsnoop/shellsnoop.c +++ b/runtime/probes/shellsnoop/shellsnoop.c @@ -1,17 +1,8 @@ -#define STP_NETLINK_ONLY +//#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 @@ -115,23 +106,12 @@ 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_module: Can't start without daemon pid\n"); - return -1; - } - - if (_stp_transport_open(transport_mode, n_subbufs, subbuf_size, pid) < 0) { - printk("init_module: Couldn't open transport\n"); - return -1; - } + TRANSPORT_OPEN; pids = _stp_map_new_int64 (10000, INT64); arglist = _stp_list_new (10, STRING); -- cgit