--- a/components/open-fabrics/qperf/patches/base.patch Wed Jun 13 09:33:37 2012 -0700
+++ b/components/open-fabrics/qperf/patches/base.patch Fri Jun 15 00:10:31 2012 -0700
@@ -289,7 +289,17 @@
#include <unistd.h>
#include <netinet/in.h>
#include <rdma/rdma_cma.h>
-@@ -566,11 +570,15 @@
+@@ -110,7 +114,8 @@
+ uint32_t srqn; /* Shared queue number */
+ uint32_t rkey; /* Remote key */
+ uint32_t alt_lid; /* Alternate Path Local LID */
+- uint32_t rd_atomic; /* Number of read/atomics supported */
++ uint32_t rd_atomic /* Number of read/atomics supported */
++ __attribute__ ((aligned (8))); /* align struct size to 64-bit binary */
+ } NODE;
+
+
+@@ -566,11 +571,15 @@
void
run_client_uc_bi_bw(void)
{
@@ -305,7 +315,7 @@
}
-@@ -580,7 +588,11 @@
+@@ -580,7 +589,11 @@
void
run_server_uc_bi_bw(void)
{
@@ -317,7 +327,7 @@
}
-@@ -590,6 +602,9 @@
+@@ -590,6 +603,9 @@
void
run_client_uc_bw(void)
{
@@ -327,7 +337,7 @@
par_use(L_ACCESS_RECV);
par_use(R_ACCESS_RECV);
par_use(L_NO_MSGS);
-@@ -597,6 +612,7 @@
+@@ -597,6 +613,7 @@
rd_params(IBV_QPT_UC, K64, 1, 0);
rd_client_bw(IBV_QPT_UC);
show_results(BANDWIDTH_SR);
@@ -335,7 +345,7 @@
}
-@@ -606,7 +622,11 @@
+@@ -606,7 +623,11 @@
void
run_server_uc_bw(void)
{
@@ -347,7 +357,7 @@
}
-@@ -616,8 +636,12 @@
+@@ -616,8 +637,12 @@
void
run_client_uc_lat(void)
{
@@ -360,7 +370,7 @@
}
-@@ -627,7 +651,11 @@
+@@ -627,7 +652,11 @@
void
run_server_uc_lat(void)
{
@@ -372,7 +382,7 @@
}
-@@ -637,9 +665,13 @@
+@@ -637,9 +666,13 @@
void
run_client_uc_rdma_write_bw(void)
{
@@ -386,7 +396,7 @@
}
-@@ -649,7 +681,11 @@
+@@ -649,7 +682,11 @@
void
run_server_uc_rdma_write_bw(void)
{
@@ -398,7 +408,7 @@
}
-@@ -659,8 +695,12 @@
+@@ -659,8 +696,12 @@
void
run_client_uc_rdma_write_lat(void)
{
@@ -411,7 +421,7 @@
}
-@@ -670,7 +710,11 @@
+@@ -670,7 +711,11 @@
void
run_server_uc_rdma_write_lat(void)
{
@@ -423,7 +433,7 @@
}
-@@ -680,9 +724,13 @@
+@@ -680,9 +725,13 @@
void
run_client_uc_rdma_write_poll_lat(void)
{
@@ -437,7 +447,7 @@
}
-@@ -692,7 +740,11 @@
+@@ -692,7 +741,11 @@
void
run_server_uc_rdma_write_poll_lat(void)
{
@@ -509,3 +519,14 @@
qgetnameinfo((SA *)&sa, salen, 0, 0, p, sizeof(p), NI_NUMERICSERV);
port = atoi(p);
if (!port)
+diff -r -u /tmp/730054/qperf-0.4.6/src/qperf.h qperf-0.4.6/src/qperf.h
+--- /tmp/730054/qperf-0.4.6/src/qperf.h Mon Aug 31 00:00:40 2009
++++ qperf-0.4.6/src/qperf.h Mon Jun 11 21:45:24 2012
+@@ -193,6 +193,7 @@
+ uint32_t no_cpus; /* Number of processors */
+ uint32_t no_ticks; /* Ticks per second */
+ uint32_t max_cqes; /* Maximum CQ entries */
++ __attribute__ ((aligned (8))) /* align with 32-bit & 64-bit binary */
+ CLOCK time_s[T_N]; /* Start times */
+ CLOCK time_e[T_N]; /* End times */
+ USTAT s; /* Send statistics */