summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorhunt <hunt>2005-07-08 22:02:12 +0000
committerhunt <hunt>2005-07-08 22:02:12 +0000
commit5ebb77e87b2d3bbab5810b7730a3432f9f221440 (patch)
treedff2228f0542bf48f0307077beeb5a6389e80093 /runtime
parent05064f3b7d785e5ef738c0f5486cde97de416e84 (diff)
downloadsystemtap-steved-5ebb77e87b2d3bbab5810b7730a3432f9f221440.tar.gz
systemtap-steved-5ebb77e87b2d3bbab5810b7730a3432f9f221440.tar.xz
systemtap-steved-5ebb77e87b2d3bbab5810b7730a3432f9f221440.zip
Fix build
Diffstat (limited to 'runtime')
-rw-r--r--runtime/probes/os_timer/os_timer.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/runtime/probes/os_timer/os_timer.c b/runtime/probes/os_timer/os_timer.c
index f40b4168..f456c144 100644
--- a/runtime/probes/os_timer/os_timer.c
+++ b/runtime/probes/os_timer/os_timer.c
@@ -88,12 +88,8 @@ static void os_timer_callback(unsigned long val)
}
/* called when the module loads. */
-int init_module(void)
+int probe_start(void)
{
- int ret;
-
- TRANSPORT_OPEN;
-
addr = _stp_stat_init(HIST_LINEAR, 0, 1000, 100);
cur_addr = _stp_map_new_int64(1000, INT64);
@@ -108,10 +104,7 @@ int init_module(void)
timer.data = 50;
add_timer(&timer);
-
- ret = 0;
-
- return ret;
+ return 0;
}
static void probe_exit (void)
@@ -129,10 +122,3 @@ static void probe_exit (void)
_stp_print_flush();
}
-/* required */
-void cleanup_module(void)
-{
- _stp_transport_close();
-}
-
-MODULE_LICENSE("GPL");