summaryrefslogtreecommitdiffstats
path: root/runtime/probes/scf
diff options
context:
space:
mode:
authorhunt <hunt>2005-06-23 14:55:14 +0000
committerhunt <hunt>2005-06-23 14:55:14 +0000
commit39f04e089f07b1f79aa122c9fc3ddb856587ad81 (patch)
treefe16be8090bd3c56a6de8039c15b186d6ea51de7 /runtime/probes/scf
parent383ca010e82dc5f00afa79250b3e0f15ed04cfed (diff)
downloadsystemtap-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/scf')
-rw-r--r--runtime/probes/scf/scf.c16
-rwxr-xr-xruntime/probes/scf/stp15
2 files changed, 7 insertions, 24 deletions
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;
}
diff --git a/runtime/probes/scf/stp b/runtime/probes/scf/stp
index 185a5905..4baf70ff 100755
--- a/runtime/probes/scf/stp
+++ b/runtime/probes/scf/stp
@@ -32,14 +32,11 @@ fi
#/sbin/insmod $modulename
-# print to screen only, 4 8K buffers
-#../../stpd/stpd -p -b 8192 -n 4
+# print to screen only
+#../../stpd/stpd -p $modulename
-# print to screen and log to files, 4 8K buffers
-../../stpd/stpd -b 8192 -n 4 $modulename
+# print to screen and log to files (file logging only if #define STP_NETLINK_ONLY commented out in module)
+../../stpd/stpd $modulename
-# no screen or log
-#../../stpd/stpd -q -b 8192 -n 4
-
-# stpd will remove module when it exits
-#/sbin/rmmod $modulename
+# no screen, log to files (file logging only if #define STP_NETLINK_ONLY commented out in module)
+#../../stpd/stpd -q $modulename