diff options
author | hunt <hunt> | 2005-06-18 07:24:42 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-06-18 07:24:42 +0000 |
commit | e5d2abb56ca57a613e4ef9398a6499190b2265be (patch) | |
tree | 083465047d73bc498f2278d2eb3dc8514b455ad3 /runtime/io.c | |
parent | ef0e92b0335077884edd5ac9997a203bec1839b0 (diff) | |
download | systemtap-steved-e5d2abb56ca57a613e4ef9398a6499190b2265be.tar.gz systemtap-steved-e5d2abb56ca57a613e4ef9398a6499190b2265be.tar.xz systemtap-steved-e5d2abb56ca57a613e4ef9398a6499190b2265be.zip |
2005-06-18 Martin Hunt <hunt@redhat.com>
* counter.c: New file. Counter aggregations.
* stat.c: New file. Stat aggregations.
* stat.h: Header file for stats.
* map-int.c: New file. Support for int64 values.
* map-stat.c: New file. Support for stat values.
* map-str.c: New file. Support for string values.
* map-values.c: Now just includes the necessary map-*.c files.
* stat-common.c: New file. Stats stuff common to Stats and maps
containing stats.
* Doxyfile: Bumped version to 0.6.
* README: Renamed README.doc and reorganized.
Diffstat (limited to 'runtime/io.c')
-rw-r--r-- | runtime/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/io.c b/runtime/io.c index 7c8c5ac0..bc691ebf 100644 --- a/runtime/io.c +++ b/runtime/io.c @@ -2,7 +2,6 @@ #define _IO_C_ #include "transport/transport.c" -#include "print.c" /** @file io.c * @brief I/O functions @@ -28,7 +27,7 @@ static char _stp_lbuf[NR_CPUS][STP_LOG_BUF_LEN + 1]; void _stp_log (const char *fmt, ...) { int num, ret; - char *buf = &_stp_lbuf[smp_processor_id()][0]; + char *buf = &_stp_lbuf[get_cpu()][0]; va_list args; va_start(args, fmt); num = vscnprintf (buf, STP_LOG_BUF_LEN, fmt, args); @@ -38,6 +37,7 @@ void _stp_log (const char *fmt, ...) ret = _stp_ctrl_send(STP_REALTIME_DATA, buf, num + 1, t->pid); if (ret < 0) atomic_inc (&_stp_transport_failures); + put_cpu(); } /** @} */ |