summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/ChangeLog7
-rw-r--r--runtime/io.c2
-rw-r--r--runtime/print.c4
-rw-r--r--runtime/runtime.h14
4 files changed, 12 insertions, 15 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 34615687..6a7651ba 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,10 @@
+2005-08-01 Martin Hunt <hunt@redhat.com>
+
+ * io.c (_stp_vlog): Use _stp_pid instead os _stp_tport->pid.
+ * print.c (_stp_print_flush): Don't need _stp_tport.
+ *runtime.h (probe_start): Just call _stp_transport_init().
+ (probe_exit): Just call _stp_transport_close().
+
2005-07-28 Graydon Hoare <graydon@redhat.com>
* loc2c-runtime.h: New file from elfutils CVS.
diff --git a/runtime/io.c b/runtime/io.c
index a8cb4e43..1d378472 100644
--- a/runtime/io.c
+++ b/runtime/io.c
@@ -55,7 +55,7 @@ static void _stp_vlog (enum code type, char *func, int line, const char *fmt, va
}
buf[num + start] = '\0';
- _stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, _stp_tport->pid);
+ _stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, _stp_pid);
#ifndef STP_NETLINK_ONLY
_stp_string_cat_cstr(_stp_stdout,buf);
_stp_print_flush();
diff --git a/runtime/print.c b/runtime/print.c
index aa8a520d..f340a3a1 100644
--- a/runtime/print.c
+++ b/runtime/print.c
@@ -45,7 +45,7 @@ void _stp_print_flush (void)
if (len == 0)
return;
- ret =_stp_transport_write(_stp_tport, buf, len + 1);
+ ret =_stp_transport_write(buf, len + 1);
if (unlikely(ret < 0))
atomic_inc (&_stp_transport_failures);
@@ -85,7 +85,7 @@ void _stp_print_flush (void)
seq = _stp_seq_inc();
scnprintf (buf, TIMESTAMP_SIZE, "%10d", seq);
buf[TIMESTAMP_SIZE - 1] = ' ';
- ret = _stp_transport_write(_stp_tport, buf, _stp_pbuf_len[cpu] + TIMESTAMP_SIZE + 1);
+ ret = _stp_transport_write(buf, _stp_pbuf_len[cpu] + TIMESTAMP_SIZE + 1);
if (unlikely(ret < 0))
atomic_inc (&_stp_transport_failures);
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 62240e1f..5903bede 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -59,23 +59,13 @@ static struct
/************* Module Stuff ********************/
int probe_start(void);
-int init_module(void)
+int init_module (void)
{
- int ret;
-
- /* First open connection. This exits on failure. */
- TRANSPORT_OPEN;
-
- ret = probe_start();
- if (ret < 0)
- _stp_transport_close();
-
- return ret;
+ return _stp_transport_init();
}
void cleanup_module(void)
{
- _stp_transport_cleanup();
_stp_transport_close();
}