summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/ChangeLog6
-rw-r--r--runtime/io.c9
-rw-r--r--runtime/print.c4
3 files changed, 15 insertions, 4 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 3cf6d3ae..d8798fb9 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-08 Martin Hunt <hunt@redhat.com>
+
+ * print.c (_stp_print_flush): Rename "t" to "_stp_tport".
+
+ * io.c (_stp_vlog): Ditto.
+
2005-07-01 Martin Hunt <hunt@redhat.com>
* string.c (_stp_string_init): CAll stp_error() on bad
diff --git a/runtime/io.c b/runtime/io.c
index d59b511a..4015de34 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';
- ret = _stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, t->pid);
+ ret = _stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, _stp_tport->pid);
if (ret < 0)
atomic_inc(&_stp_transport_failures);
#ifndef STP_NETLINK_ONLY
@@ -101,7 +101,11 @@ void _stp_warn (const char *fmt, ...)
/** Exits and unloads the module.
* This function sends a signal to stpd to tell it to
- * unload the module and exit.
+ * unload the module and exit. The module will not be
+ * unloaded until after the current probe returns.
+ * @note Be careful to not treat this like the Linux exit()
+ * call. You should probably call return immediately after
+ * calling _stp_exit().
*/
void _stp_exit (void)
{
@@ -116,6 +120,7 @@ void _stp_exit (void)
*
* After the error message is displayed, the module will be unloaded.
* @param fmt A variable number of args.
+ * @sa _stp_exit().
*/
void _stp_error (const char *fmt, ...)
{
diff --git a/runtime/print.c b/runtime/print.c
index 3128e866..1eb9934f 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(t, buf, len + 1);
+ ret =_stp_transport_write(_stp_tport, 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] = ' ';
- _stp_transport_write(t, buf, _stp_pbuf_len[cpu] + TIMESTAMP_SIZE + 1);
+ _stp_transport_write(_stp_tport, buf, _stp_pbuf_len[cpu] + TIMESTAMP_SIZE + 1);
_stp_pbuf_len[cpu] = 0;
*ptr = 0;
}