* [PATCH] perftest/write_bw_postlist
@ 2011-02-03 21:37 frank zago
[not found] ` <4D4B1FFD.9070906-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: frank zago @ 2011-02-03 21:37 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
[-- Attachment #1: Type: text/plain, Size: 318 bytes --]
Hello,
in write_bw_postlist.c, my_dest (and possibly rem_dest) must be initialized, else the remote node may not be able to parse the connection string and the test will fail to start.
The others test are doing that initialization.
Signed-off-by: Frank Zago <fzago-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
[-- Attachment #2: write_bw_postlist-fix.diff --]
[-- Type: text/x-diff, Size: 599 bytes --]
diff --git a/write_bw_postlist.c b/write_bw_postlist.c
index 0349c40..e2e191f 100644
--- a/write_bw_postlist.c
+++ b/write_bw_postlist.c
@@ -738,8 +743,8 @@ int main(int argc, char *argv[])
if (!ctx)
return 1;
- my_dest = malloc(sizeof(struct pingpong_dest)*user_param.num_of_qps);
- rem_dest = malloc(sizeof(struct pingpong_dest)*user_param.num_of_qps);
+ my_dest = calloc(user_param.num_of_qps, sizeof(struct pingpong_dest));
+ rem_dest = calloc(user_param.num_of_qps, sizeof(struct pingpong_dest));
if (!my_dest || !rem_dest) {
perror("malloc my_dest or rem_dest");
return 1;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-15 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-03 21:37 [PATCH] perftest/write_bw_postlist frank zago
[not found] ` <4D4B1FFD.9070906-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
2011-02-15 9:27 ` Ido Shamai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.