diff options
author | hunt <hunt> | 2005-07-08 19:32:14 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-07-08 19:32:14 +0000 |
commit | a91f889efcff54c4e094a86670f826169cbf98d6 (patch) | |
tree | f5d2651acfee64805a9c80de033dbbbecb2780a6 /runtime/io.c | |
parent | d533bbb2258a1cb094eb950ff25ee985d5f11715 (diff) | |
download | systemtap-steved-a91f889efcff54c4e094a86670f826169cbf98d6.tar.gz systemtap-steved-a91f889efcff54c4e094a86670f826169cbf98d6.tar.xz systemtap-steved-a91f889efcff54c4e094a86670f826169cbf98d6.zip |
2005-07-08 Martin Hunt <hunt@redhat.com>
* print.c (_stp_print_flush): Rename "t" to "_stp_tport".
* io.c (_stp_vlog): Ditto.
Diffstat (limited to 'runtime/io.c')
-rw-r--r-- | runtime/io.c | 9 |
1 files changed, 7 insertions, 2 deletions
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, ...) { |