PERFORCE change 83453 for review
Robert Watson
rwatson at FreeBSD.org
Mon Sep 12 04:00:30 PDT 2005
http://perforce.freebsd.org/chv.cgi?CH=83453
Change 83453 by rwatson at 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++)
More information about the p4-projects
mailing list