From 8c235ce57600584d3126ad86520b4fb44765c8ec Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 14 Mar 2007 16:13:33 +0000 Subject: 2007-03-14 Martin Hunt * bench2/bench.rb: Updated to work with new transport and new itest.c. * bench2/Makefile: Updated for new itest.c * bench2/itest.c: Rewritten to use multiple threads and automatically divide the workload among the threads. * print.c (_stp_print_flush): Move to print_new.c and print_old.c. * print_new.c: New file containing _stp_print_flush() for the new transport. * print_old.c: Ditto for old transport. * runtime.h (STP_OLD_TRANSPORT): Define (errk): Define. (MAXSTRINGLEN): Define if not already defined. * io.c (_stp_vlog): Use _stp_ctl_write(). --- runtime/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/io.c') diff --git a/runtime/io.c b/runtime/io.c index 34c69727..e36381bd 100644 --- a/runtime/io.c +++ b/runtime/io.c @@ -47,7 +47,7 @@ static void _stp_vlog (enum code type, const char *func, int line, const char *f } if (type != DBUG) - _stp_write(STP_OOB_DATA, buf, start + num + 1); + _stp_ctl_write(STP_OOB_DATA, buf, start + num + 1); else { _stp_print(buf); _stp_print_flush(); @@ -93,7 +93,7 @@ void _stp_warn (const char *fmt, ...) * 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 + * call. You should probably call return immediately after * calling _stp_exit(). */ void _stp_exit (void) -- cgit