From 14e686e8fbd7b16171f7fc643dd99c3479673752 Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 8 Jul 2005 20:49:58 +0000 Subject: 2005-07-08 Martin Hunt * ALL: Use new runtime.h. Change init_module() to probe_start() and don't do transport calls. Remove MODULE_LICENSE and cleanup_module(). --- runtime/probes/bench/bench_io2.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'runtime/probes/bench/bench_io2.c') diff --git a/runtime/probes/bench/bench_io2.c b/runtime/probes/bench/bench_io2.c index d606fa64..14ef747b 100644 --- a/runtime/probes/bench/bench_io2.c +++ b/runtime/probes/bench/bench_io2.c @@ -36,14 +36,9 @@ static struct kprobe kp[] = { #define NUM_KPROBES (sizeof(kp)/sizeof(struct kprobe)) -int init_module(void) +int probe_start(void) { - int ret; - - TRANSPORT_OPEN; - - ret = _stp_register_kprobes (kp, NUM_KPROBES); - return ret; + return _stp_register_kprobes (kp, NUM_KPROBES); } static void probe_exit (void) @@ -51,10 +46,3 @@ static void probe_exit (void) _stp_unregister_kprobes (kp, NUM_KPROBES); _stp_print_flush(); } - -void cleanup_module(void) -{ - _stp_transport_close(); -} - -MODULE_LICENSE("GPL"); -- cgit