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/scf/scf.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'runtime/probes/scf/scf.c') diff --git a/runtime/probes/scf/scf.c b/runtime/probes/scf/scf.c index a8798f51..74900152 100644 --- a/runtime/probes/scf/scf.c +++ b/runtime/probes/scf/scf.c @@ -36,28 +36,14 @@ static struct kprobe stp_probes[] = { #define MAX_STP_ROUTINE (sizeof(stp_probes)/sizeof(struct kprobe)) -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(n_subbufs, subbuf_size, pid) < 0) { - printk("init: Couldn't open transport\n"); - return -1; - } + TRANSPORT_OPEN; map1 = _stp_map_new_str (100, INT64); - ret = _stp_register_kprobes (stp_probes, MAX_STP_ROUTINE); - return ret; } -- cgit