Skip to contentSkip to conversation

perftest/write_bw_postlist

PATCH In review frank zago 2 participants 2 messages Feb 3, 2011 – Feb 15, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore

frank zago

author
#0 lore raw

PATCH 1/1 perftest/write_bw_postlist

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.

write_bw_postlist.c +2 -2
index 0349c40..e2e191f 100644
@@ -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;

A message that is not in the archive (sent off-list or not yet received): 4D4B1FFD.9070906-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org

#2 lore raw

Applied . Thanks again Frank

Quoted 6 lines · frank zago

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.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html