summaryrefslogtreecommitdiffstats
path: root/runtime/probes/agg/stat1.c
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/agg/stat1.c
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/agg/stat1.c')
-rw-r--r--runtime/probes/agg/stat1.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/runtime/probes/agg/stat1.c b/runtime/probes/agg/stat1.c
index 54e22db5..ad6781e8 100644
--- a/runtime/probes/agg/stat1.c
+++ b/runtime/probes/agg/stat1.c
@@ -51,18 +51,13 @@ static struct jprobe stp_probes[] = {
#define MAX_STP_ROUTINE (sizeof(stp_probes)/sizeof(struct jprobe))
-int init_module(void)
+int probe_start(void)
{
- int ret;
-
- TRANSPORT_OPEN;
-
opens = _stp_counter_init();
reads = _stp_stat_init(HIST_LOG,24);
writes = _stp_stat_init(HIST_LINEAR,0,1000,50);
- ret = _stp_register_jprobes (stp_probes, MAX_STP_ROUTINE);
- return ret;
+ return _stp_register_jprobes (stp_probes, MAX_STP_ROUTINE);
}
static void probe_exit (void)
@@ -75,11 +70,3 @@ static void probe_exit (void)
_stp_print_flush();
}
-
-void cleanup_module(void)
-{
- _stp_transport_close();
-}
-
-MODULE_LICENSE("GPL");
-