Date: Mon, 12 Sep 2005 11:00:28 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 83453 for review Message-ID: <200509121100.j8CB0SPP033982@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=83453 Change 83453 by rwatson@rwatson_zoo on 2005/09/12 10:59:28 Prepend host information into the juggle csv output using uname(3). Affected files ... .. //depot/projects/netsmp/src/tools/netperf/juggle/juggle.c#2 edit Differences ... ==== //depot/projects/netsmp/src/tools/netperf/juggle/juggle.c#2 (text+ko) ==== @@ -29,6 +29,7 @@ #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> +#include <sys/utsname.h> #include <sys/wait.h> #include <netinet/in.h> @@ -494,6 +495,22 @@ struct timespec juggle_results[LOOPS], process_results[LOOPS]; struct timespec thread_results[LOOPS]; int fd1, fd2, i, j, p; + struct utsname uts; + + if (uname(&uts) < 0) + err(-1, "utsname"); + printf("sysname, %s\n", uts.sysname); + printf("nodename, %s\n", uts.nodename); + printf("release, %s\n", uts.release); + printf("version, %s\n", uts.version); + printf("machine, %s\n", uts.machine); + printf("\n"); + + printf("MESSAGELEN, %d\n", MESSAGELEN); + printf("NUMCYCLES, %d\n", NUMCYCLES); + printf("LOOPS, %d\n", LOOPS); + printf("PIPELINE_MAX, %d\n", PIPELINE_MAX); + printf("\n\n"); printf("ipctype, test, pipeline_depth"); for (j = 0; j < LOOPS; j++)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509121100.j8CB0SPP033982>