[netperf-dev] netperf2 commit notice r152 - trunk/src
raj at netperf.org
raj at netperf.org
Thu Oct 25 16:34:07 PDT 2007
Author: raj
Date: 2007-10-25 16:34:06 -0700 (Thu, 25 Oct 2007)
New Revision: 152
Modified:
trunk/src/nettest_bsd.c
Log:
include support for minus B in TCP_SENDFILE
Modified: trunk/src/nettest_bsd.c
===================================================================
--- trunk/src/nettest_bsd.c 2007-10-25 00:50:37 UTC (rev 151)
+++ trunk/src/nettest_bsd.c 2007-10-25 23:34:06 UTC (rev 152)
@@ -3427,10 +3427,10 @@
bytes bytes bytes secs. %s/sec \n\n";
char *tput_fmt_0 =
- "%7.2f\n";
+ "%7.2f %s\n";
char *tput_fmt_1 =
- "%6d %6d %6d %-6.2f %7.2f \n";
+ "%6d %6d %6d %-6.2f %7.2f %s\n";
char *cpu_title = "\
Recv Send Send Utilization Service Demand\n\
@@ -3439,9 +3439,9 @@
bytes bytes bytes secs. %-8.8s/s %% %c %% %c us/KB us/KB\n\n";
char *cpu_fmt_0 =
- "%6.3f %c\n";
+ "%6.3f %c %s\n";
char *cpu_fmt_1 =
- "%6d %6d %6d %-6.2f %7.2f %-6.2f %-6.2f %-6.3f %-6.3f\n";
+ "%6d %6d %6d %-6.2f %7.2f %-6.2f %-6.2f %-6.3f %-6.3f %s\n";
char *ksink_fmt = "\n\
Alignment Offset %-8.8s %-8.8s Sends %-8.8s Recvs\n\
@@ -4104,14 +4104,18 @@
fprintf(where,
cpu_fmt_0,
local_service_demand,
- local_cpu_method);
+ local_cpu_method,
+ ((print_headers) ||
+ (result_brand == NULL)) ? "" : result_brand);
}
else {
fprintf(where,
cpu_fmt_0,
remote_service_demand,
- remote_cpu_method);
+ remote_cpu_method,
+ ((print_headers) ||
+ (result_brand == NULL)) ? "" : result_brand);
}
break;
@@ -4136,7 +4140,9 @@
local_cpu_utilization, /* local cpu */
remote_cpu_utilization, /* remote cpu */
local_service_demand, /* local service demand */
- remote_service_demand); /* remote service demand */
+ remote_service_demand, /* remote service demand */
+ ((print_headers) ||
+ (result_brand == NULL)) ? "" : result_brand);
break;
}
@@ -4151,7 +4157,9 @@
fprintf(where,
tput_fmt_0,
- thruput);
+ thruput,
+ ((print_headers) ||
+ (result_brand == NULL)) ? "" : result_brand);
break;
case 1:
@@ -4167,7 +4175,9 @@
lss_size, /* local sendbuf size */
send_size, /* how large were the sends */
elapsed_time, /* how long did it take */
- thruput);/* how fast did it go */
+ thruput, /* how fast did it go */
+ ((print_headers) ||
+ (result_brand == NULL)) ? "" : result_brand);
break;
}
}
More information about the netperf-dev
mailing list