From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0088.outbound.protection.outlook.com [104.47.37.88]) by dpdk.org (Postfix) with ESMTP id DBAC49E3; Wed, 5 Apr 2017 10:52:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qq19o2pxQsWVZmnlJXlxh2YINb6s2/qn5sowIIFKvx8=; b=cOXdOIqilZxsTp4DbtqxFD7fWzXWN64fjTRcId2cM4eDXTHuKGmtXC/t02dT8XkN4yKUu+S9BEtG/UPMYvljXeF+EfXEhtfWF203921tCd48tJztjePyOPWox/BtSgEIrYkwvBHoSiv1R575zZ3eA4V39UDXWN0RG0KKYYr/NOA= Authentication-Results: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (111.93.218.67) by BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Wed, 5 Apr 2017 08:52:13 +0000 From: Santosh Shukla To: olivier.matz@6wind.com, dev@dpdk.org Cc: shreyansh.jain@nxp.com, hemant.agrawal@nxp.com, Santosh Shukla , stable@dpdk.org Date: Wed, 5 Apr 2017 14:21:03 +0530 Message-Id: <1491382264-23489-1-git-send-email-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0011.INDPRD01.PROD.OUTLOOK.COM (10.174.214.149) To BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) X-MS-Office365-Filtering-Correlation-Id: b01b158f-448e-4d6c-a118-08d47c010f34 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 3:9TrK3DnfPHWX3eJDowHqFg34ypzDGaj3pQUjrlksfwOkhOnCW9cDVOiAq7+jztnmEywXV/UZxAZACaUO6ITVq3FuRZ12eM9NwgWjy2ql9Ly8Y2AaYMCDupmlwoXYCcen5rJ3jicCxkgLWpifvu92Kqmpz57dxUcjmxvAbNw7l4wsNM1YZSk+Zvhz33P0k/TEYBNZdZRHfCqRaWfnPlDRMmnNmFYESzA6ZDyuu4gXxhYtERdDLvAsQwlWgMlr2n1SrOOhZlMIq7V0E7SqQbbFVdwVbnTJNfe/ZeLdsHNE+EprWjuHqI1ir3hCb9UiuczEfB7OK9m5LXEUOAaRxgWujQ==; 25:Xe+FfpDbKlT6G93f+FyxALe1TIDh+anthfNwTzi26ZV4t0G0wCIhHn3NPkkPb31F9eZldkmTwaJSjHlL8x35/PCCIVPOtDmn8MAeAPPE5AX88NCZG8g2vG8xNw675gQKJR9Li9U0mAxKImYqNsh0++6/SpgCtWos0eEBD3eWQ0DmoHahYH0lE4ads8aHdQQTdZlq5/7bMiAsjnRy1FD0JqiaPqJLSSmBkvYrOCrQkXoAHZMxtOLT2oWdc+OaXcWs9hSaHUfOKFTGwk4diQGwO9m7pFfLsH/fnUjyJ76PGMTI3NMJ3fjzBGJtoLm9SGgorVXC2N0gxuO4E4JiSqI4LO6Tc4ILS3rzakVj2FSzPzhVA4WuSNY2KOwcWdi/QK6NfwRX4Vu6pNZMZbtTPqmSLTGP3WfZEDwzZ0SuC0xxLcAL4ofvLaeB3Hm9+IZ2ctPYGTR/FqhtxjxxTH2MHdcJWA== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 31:7G99Rt6nUT60BRIDzCVxdfkk4LufqQI068S3ABx66uiZ+jw42grXV36K+X4e2oj4OzpHs9lL3jBwlq1TEvZYSEoWhv1NCUN0UuDzve3T7A1/DMU6hGBSDas5P7+yTRdcQBa3L4ZwYBU+N+w0hpGXf/J1cFJRzopzJda2/zxDX2c4UPK0lRFMlM903Z7vph0JMscw8Zz/tePMKRmvPh7B8gtnMIADD6H9/JTo6N7SrY7glRd+4nLUVEJeO2KVIAeDGT0IoVZJ5rt81/8fVhpx1A==; 20:ZrB5+jPf12zLzSfmyhyw5rsTTQXCgwrzHHuX0n1hBoc4XO8sPGCq5T7uuckeNTQZMmp6kxyKIVguJM3oa8Anf9qo6COm2i56x3RhIQ8s3pRxpJLOOAvK1tUMu5tD3glIFjE1umBvIKxFJMpZah79xo+7rYSC+3Pf/LI9o0WvsiLsxELMQV5kavHX/wQk8B8mweMR1BrHGRw7HO0boBmNyf1K7Bs48cpqBJHftMraMme5MM95AFMVuGmUODgLaE0iynK9PcBfr3zXRcoUIZIOPlegc2JeTdALi1RY5xQU/Usxb44svq0MWDDH06K50I9u9sGxjGkN2RQ8fiXRa0JPBXbrFOzOrP9lypLeRBJVYvuxkWu5E5DV4lRB7iG6kUto/A8oA4DQSwKb2tCXChsJu3bHng2fOzgZywPjw/hFCmZugCFdJjBAqAPynaMLMgGl1RAuNv91nunCU5dktBOdSrRCOcIdv05OUGV6hZ92IGcvDwc6rFgMvRwHc6qXKqWC9vuTAt6Lygcm+f05u1zFQeCR4MFbuSZOEeePHW60fq5hajH8gn5+a52cuobtoXorZns8gWcJzeMZ3wUtMy7Yl+/uWBZNLImBIZq+/sD1Um0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(6072148); SRVR:BN3PR0701MB1720; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 4:98euI1tgLocRMO0ungszLsJiSrQUQPCz0+PbE+VKcVwm0/pM5tOe6ZXvPzu0S1+ygiF/n9NQllb0kV/Bjj3+AKWozrskg/fd5vdZm+CW/iniTuc3f71PddsQgkAZ1rbV84GGKpELwDCKlKfQ8BcZmfeIINfiIFSbdAU7HMDVGI4PKNJTA2BhscN2ga4Ez7rnWHyACZ/XU+ffSmUYpSHtrqocBGJLGQn75JRDzKR+1uxHyAaIx/HAQ8hUqzvSC3+A5jAhKYcYuOsgbScDsp97tZ4qV85qqttuq9kEWBQE/HNFgiPzTm6/7K1NrrCrirS9aw2X1/g6pZdYagaSwd77z1tpTp3mGrqPJXNMX+/Rm/lGmaCj4aohHZgZeLnpoWiM73e1Gb8chqa5SfpNAdZDHpjVdqTn0mYTx7ujFkhUkyR00Hg5uFcLO6fYe/ZSkGvJYRztbG6sBe8DWaleWTQ6BelEPtnEIcJmolYc9luw9OIXNEYYygAZFj2i42nSYnh+tUUTBhJ8FyDcaxU+7KXA8HfyMxEBwLTm+bQ+Vk83IG84ORp1qs+lok24zKzm1ly1aJ75WDhDODtGzPlcQwjFx+O074U+6tkJHlQgDmdV7Cp0SfWAs9TTkl2nCTus+X8aHj0NARAqOuCcujf4tjxj/fV8o8UzZh/gl3hwU8nCKLeZcn561srb6ONNRUsbc0L1 X-Forefront-PRVS: 0268246AE7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(39450400003)(39850400002)(39400400002)(39840400002)(39410400002)(6506006)(5660300001)(6486002)(3846002)(66066001)(2906002)(110136004)(48376002)(305945005)(7736002)(53936002)(6116002)(50226002)(8656002)(5009440100003)(6512007)(47776003)(81166006)(50466002)(8676002)(38730400002)(50986999)(36756003)(4720700003)(5003940100001)(42882006)(6666003)(42186005)(4326008)(189998001)(25786009)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1720; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LAN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ogy8pVNRXk7/9qhVPNWC0y8ioUX1UH9il26NfBQHTr9IfJfFosXKt/WT?= =?us-ascii?Q?UfHjzpkdJ3vbZELN+V54eapv70tloqCs8tPX5pmjocV8aOFEIbwsroMhqkyf?= =?us-ascii?Q?qAyOBtV5GAYSC5tqK7ge4yjVKauZeBQUAXc0Y9UgUCz0/4PixupTuc66cStX?= =?us-ascii?Q?XJeIO4RyAr5IUpoq/KYQuzgiqxvMGGD3u7LgjsLA7QzGXYA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 6:2Qvx87mONsQkF1inLOO/MAYe7DjPMVRYQZlDIhyZxB5N7+FIlX/7jla9Mlq0fif/23XCeHD23d80WS6Hkt3k0sChL1YC44p9ptR3B90HhPQ5TIwW6jMB2p89jTFS/vDsSwAD7woLr0UxfSENG9M+m5FErkJNPU6roMSBf92EIrqNUtkJ3JCa8ZMVUZY4jWEGm0t5IwvFPcFw7FPSaBuBX4PuvQwr1v3M37KsPOU2FmmHbAKa4cQD8/suIUJ1hAvufLEd4y1Rxae440YFczyQytv80nbHSLEmeRFOqIg5apdNvb6Ojq8oAZ2WWGFT0bxR6JWaaQPYdlWWduq7PTQdwfhF5jV6+mlzodDoqKs2tLrwNTXL+duzwpBbogDPEEFBT3zJAJrusZ8Lgd3KFCx5pg==; 5:7hrEwt1xmsVm2gxTtsZt6rkFGQ6mOG0uIKmzecIZS5rKHz9oHRJO5m3Y1F8tQvQbgHSwTngWAyPfvQ0irzvWS3+DlHY+N1PZOuTpW3REcqf8fisghP2vIPD+kxBasxyMK4bcCfHzApfHRw0Lv+6Hqg==; 24:6MgX/8Aey2eceIaSIgityvF2oPUFjZ3aEk7ZnY3Z/SMbkof2xn1E90gOHVbN+wxfiA9Y1BFJgF30xn20myAEyQgGVX+VLY5LAtKrPnQusIY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 7:pFnJ8UCXDVh+ok0yKl6reCKNB5487HwS4YmeS0fDCcVllU2GY/u8QxEeQMDIF1LXCZ2ngZk0RW8WLYON3s/XExn0tkSCmWP5A80nw3pSYj2JH9Ez2t2bt8cmUoTK/g1MUdf1B/x175cZ/zF4wzg/g6xKXvvlri23txzuHpSftZ8xYXXjv146vPpy3xZI/DjdMit5D2aKdOiUCwdxRMXN90HS053y7oaR/KCBezNU3ukqN7QGgrkmaDPSsijSP/JQS1cREA7JOcapxNWtvkL44z2dCF+86nV6H7V+TumAVRA9VZwPUOFfaE3odj5wczuG/Q9QzPmCyd3ebHz7OX2BGQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2017 08:52:13.4719 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1720 Subject: [dpdk-stable] [PATCH 1/2] test/mempool_perf: Free mempool on exit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2017 08:52:18 -0000 Mempool_perf test not freeing pool memory. Cc: stable@dpdk.org Signed-off-by: Santosh Shukla --- test/test/test_mempool_perf.c | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/test/test/test_mempool_perf.c b/test/test/test_mempool_perf.c index ebf1721..3c45971 100644 --- a/test/test/test_mempool_perf.c +++ b/test/test/test_mempool_perf.c @@ -312,6 +312,8 @@ struct mempool_test_stats { static int test_mempool_perf(void) { + int ret = -1; + rte_atomic32_init(&synchro); /* create a mempool (without cache) */ @@ -322,7 +324,7 @@ struct mempool_test_stats { my_obj_init, NULL, SOCKET_ID_ANY, 0); if (mp_nocache == NULL) - return -1; + goto err; /* create a mempool (with cache) */ if (mp_cache == NULL) @@ -333,33 +335,33 @@ struct mempool_test_stats { my_obj_init, NULL, SOCKET_ID_ANY, 0); if (mp_cache == NULL) - return -1; + goto err; /* performance test with 1, 2 and max cores */ printf("start performance test (without cache)\n"); mp = mp_nocache; if (do_one_mempool_test(1) < 0) - return -1; + goto err; if (do_one_mempool_test(2) < 0) - return -1; + goto err; if (do_one_mempool_test(rte_lcore_count()) < 0) - return -1; + goto err; /* performance test with 1, 2 and max cores */ printf("start performance test (with cache)\n"); mp = mp_cache; if (do_one_mempool_test(1) < 0) - return -1; + goto err; if (do_one_mempool_test(2) < 0) - return -1; + goto err; if (do_one_mempool_test(rte_lcore_count()) < 0) - return -1; + goto err; /* performance test with 1, 2 and max cores */ printf("start performance test (with user-owned cache)\n"); @@ -367,17 +369,22 @@ struct mempool_test_stats { use_external_cache = 1; if (do_one_mempool_test(1) < 0) - return -1; + goto err; if (do_one_mempool_test(2) < 0) - return -1; + goto err; if (do_one_mempool_test(rte_lcore_count()) < 0) - return -1; + goto err; rte_mempool_list_dump(stdout); - return 0; + ret = 0; + +err: + rte_mempool_free(mp_cache); + rte_mempool_free(mp_nocache); + return ret; } REGISTER_TEST_COMMAND(mempool_perf_autotest, test_mempool_perf); -- 1.7.9.5