diff options
author | hunt <hunt> | 2005-07-08 20:49:58 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-07-08 20:49:58 +0000 |
commit | 14e686e8fbd7b16171f7fc643dd99c3479673752 (patch) | |
tree | ecd203c2d76882bdb210968be6f844d13fec2232 /runtime/probes/scf/scf.c | |
parent | b6fe3ed55d5a00ac2749ae27fff67abe8e72c21b (diff) | |
download | systemtap-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/scf/scf.c')
-rw-r--r-- | runtime/probes/scf/scf.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/runtime/probes/scf/scf.c b/runtime/probes/scf/scf.c index 74900152..c4308ab1 100644 --- a/runtime/probes/scf/scf.c +++ b/runtime/probes/scf/scf.c @@ -36,15 +36,10 @@ static struct kprobe stp_probes[] = { #define MAX_STP_ROUTINE (sizeof(stp_probes)/sizeof(struct kprobe)) -int init_module(void) +int probe_start(void) { - int ret; - - TRANSPORT_OPEN; - map1 = _stp_map_new_str (100, INT64); - ret = _stp_register_kprobes (stp_probes, MAX_STP_ROUTINE); - return ret; + return _stp_register_kprobes (stp_probes, MAX_STP_ROUTINE); } static void probe_exit (void) @@ -54,10 +49,3 @@ static void probe_exit (void) _stp_map_del (map1); } -void cleanup_module(void) -{ - _stp_transport_close(); -} - -MODULE_LICENSE("GPL"); - |