summaryrefslogtreecommitdiffstats
path: root/runtime/probes/where_func
diff options
context:
space:
mode:
authorhunt <hunt>2005-07-08 20:49:58 +0000
committerhunt <hunt>2005-07-08 20:49:58 +0000
commit14e686e8fbd7b16171f7fc643dd99c3479673752 (patch)
treeecd203c2d76882bdb210968be6f844d13fec2232 /runtime/probes/where_func
parentb6fe3ed55d5a00ac2749ae27fff67abe8e72c21b (diff)
downloadsystemtap-steved-14e686e8fbd7b16171f7fc643dd99c3479673752.tar.gz
systemtap-steved-14e686e8fbd7b16171f7fc643dd99c3479673752.tar.xz
systemtap-steved-14e686e8fbd7b16171f7fc643dd99c3479673752.zip
2005-07-08 Martin Hunt <hunt@redhat.com>
* ALL: Use new runtime.h. Change init_module() to probe_start() and don't do transport calls. Remove MODULE_LICENSE and cleanup_module().
Diffstat (limited to 'runtime/probes/where_func')
-rw-r--r--runtime/probes/where_func/kprobe_where_funct.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/runtime/probes/where_func/kprobe_where_funct.c b/runtime/probes/where_func/kprobe_where_funct.c
index cf80bb94..6d3eee45 100644
--- a/runtime/probes/where_func/kprobe_where_funct.c
+++ b/runtime/probes/where_func/kprobe_where_funct.c
@@ -46,20 +46,14 @@ static struct kprobe kp[] = {
};
#define MAX_KPROBES (sizeof(kp)/sizeof(struct kprobe))
-int init_module(void)
+int probe_start(void)
{
- int ret;
-
- TRANSPORT_OPEN;
-
funct_locations = _stp_map_new_int64 (1000, INT64);
if (funct_name)
kp[0].addr = funct_name;
- ret = _stp_register_kprobes (kp, MAX_KPROBES);
-
- return ret;
+ return _stp_register_kprobes (kp, MAX_KPROBES);
}
static void probe_exit (void)
@@ -69,10 +63,3 @@ static void probe_exit (void)
_stp_map_print (funct_locations, "Count: %d\tCaller: %1P");
_stp_map_del(funct_locations);
}
-
-void cleanup_module(void)
-{
- _stp_transport_close();
-}
-
-MODULE_LICENSE("GPL");