summaryrefslogtreecommitdiffstats
path: root/runtime/probes/shellsnoop/shellsnoop.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/shellsnoop/shellsnoop.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/shellsnoop/shellsnoop.c')
-rw-r--r--runtime/probes/shellsnoop/shellsnoop.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/runtime/probes/shellsnoop/shellsnoop.c b/runtime/probes/shellsnoop/shellsnoop.c
index 87db9dcb..db635d23 100644
--- a/runtime/probes/shellsnoop/shellsnoop.c
+++ b/runtime/probes/shellsnoop/shellsnoop.c
@@ -107,13 +107,10 @@ 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;
- /* First open connection. This exits on failure. */
- TRANSPORT_OPEN;
-
/* now initialize any data or variables */
pids = _stp_map_new_int64 (10000, INT64);
arglist = _stp_list_new (10, STRING);
@@ -124,7 +121,6 @@ int init_module(void)
if (ret < 0) {
_stp_map_del (pids);
_stp_map_del (arglist);
- _stp_transport_close();
return ret;
}
@@ -134,7 +130,7 @@ int init_module(void)
}
-static void probe_exit (void)
+void probe_exit (void)
{
_stp_unregister_jprobes (stp_probes, MAX_STP_ROUTINE);
_stp_map_del (pids);
@@ -143,11 +139,4 @@ static void probe_exit (void)
_stp_print_flush();
}
-void cleanup_module(void)
-{
- _stp_transport_cleanup();
- _stp_transport_close();
-}
-
-MODULE_LICENSE("GPL");