From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0063.outbound.protection.outlook.com [104.47.36.63]) by dpdk.org (Postfix) with ESMTP id 3FA482BBE; Tue, 18 Apr 2017 16:42:33 +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=SXpktwydZcJlKM19WgcG9QlS7R1/4nw9xbXUObytMTU=; b=N3sM00oTKfC+fGVBGiEcY8HubnxV+/TNG6S+Cu+74W/149CAEYcy+K9d5sEWZrkYWc6JWHTvvCn2QFeFUsmm3HBoXW7jcMoNTpQTYkPBq8AG25gu5YvPhu8pJMq4R7jw6HJBcUys6tUk/MLIv6nEpAZYR4T+eNXcgO3/XgtzHgs= 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 CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Tue, 18 Apr 2017 14:42:29 +0000 From: Santosh Shukla To: olivier.matz@6wind.com, dev@dpdk.org Cc: hemant.agrawal@nxp.com, shreyansh.jain@nxp.com, Santosh Shukla , stable@dpdk.org Date: Tue, 18 Apr 2017 20:11:29 +0530 Message-Id: <20170418144130.1777-2-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170418144130.1777-1-santosh.shukla@caviumnetworks.com> References: <20170418083448.24743-1-santosh.shukla@caviumnetworks.com> <20170418144130.1777-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0096.INDPRD01.PROD.OUTLOOK.COM (10.174.208.12) To CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3dccdaea-9ca1-49b1-a0c0-08d486692529 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 3:6ixqv0JN7FIA9EbdTn225qldzrXzUKrAu6tuwBpzyJGyOH0EbFkoKvdkcmpRjqG2Qct6xr0PWw9q3P8P9ODG9Dx1x2vZqsyFGrQPo4KeEqblaf5pc/9t57BwbAcATv+0zkL+AyCAHk8G0nlUKS2FP/CUvBx+tfBuDArglVoLmXZ2FYJEAFMAtSw5AMgm3qVmTwPKvNqmU1V9Ef4aNIXPuAbZs+AQNY2cj0QsekOo4ZV/3eNViqBI2Tz63AoMKESbkDa/bZfNB4WWkO6blwyLMj62tJZWi0ydu6Bq0MvBPs/7Q9ZAIkM3la9fXALOdQbHGUHCs9FIOtOo0MD6rY2kWw==; 25:C2JZTXCGSk3MdP9qOArDSZsgWNdjRALU3lCZy6DvASMDR2sLAuTOJBCJzpyzdcIOj/bdcg3nTEir97Bc9ytfkmC3V995Lh0HE0KqPdW4zzVewr47w2dt8kWvD4JH4t4NbPMzHZO5CS20lovxPmlPG+2JOfQdMO/9TOLgMazx2Tj4RpDQjwzQHvoOVK76OUr2SR0rkPpWcrpN/QDwyY81A3NYt3P09j+ZpVv2d/9O4WL9fgo337WFoCJOzlMU63iILgQX05lnVpyYCmi7xxjS73R06b/1Q1yGPcmL9N/vU3NIolO0tGQ5q7As4vsXT11rWAecPlsy79R38S2PrOcftpw7JpzjMP/r97HQcB13kH2Q9O280wE3rnLKIw+x9W3HOWk3fRCYHDxDROuRXfgVvxy3MdRk8PuHrhz0+sAmBvmtCQp5+E9ngJmK6ImDSgebia4+jFqkkuKyJbVITLflxg== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 31:xQIvo4SFhGps4EvpicVI8ZQKVmFgtyLTsusC3X69dBU1p9iK/Py+BciQowI6ykgkA5T8hxrulUYtprvFcAylZGgk+8M8UHcvmOW3ifMmX/BlRL9i9s5JnrG/OJcvLEENSALhKVVZatuYJAhf7O5mRhfmJw2dka0YZKuAb8ku1uAI18YGDZjDFn1nxssSX3a0f+3kSbrChR3pPZAMaQX45daHhEXWvKWhM8I1otea/Hk=; 20:qWdNAVd6IELMVpAAcPSzHxSNVXgp3usqBjaW2f3rycvwm1GqW8ciaA81bhcYmFIjPUJdFo8erKDz5SVEQY01kizy/gtQb1xsqSa3GgN/DxXxvKqAJ34wZXjN66c+b5OutE5/wMA1ZcPf7PveBeU/k2NotPzg9rijWKiQE+js+QjFpaA87PpKDvEMiiS2FUrMSTe0Vm/nQWd0Kf5YtQsO/ldajuuMSXUOCDeyOzICi4236dH0hVmR3FxUKdat6VDOeJSgExAHReu0epdAtY7cZ2LieFTW0FPlTG/Ld5OF0AdvzohMaLh89FWKpyHuD0aoG7Pr4E0Gf3RUBgJFVY1qjtJr1tmeeShN/wG/NsIpUoFc/nxTvJ6PUiUUdQAMZLwkWOHH3lQ9uprmalSKoQGF3rWG6xVmdSjNGzjXzeyvTRmObOrj+5t3/DZR2Lem61ZVsdAflLQM9ksUUUiwD/ehW/I75TSZWZlq8O+MwvS2yT6vpjAUuilX8s3KKfXfs4jtZXAsazhlsGwhMNiEZrjPj1qq3cuvS7FEPGPDiroHinV3hLT96sIyf1HqWxAS69zjggeB/Xcy+Pd25ukXLELl6iEiW1k6rnn+S4HcNO2FoGk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:CY1PR0701MB1726; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 4:eiDCUnarptyK9WmDmQ0cEpSu1bYYv1K3pFefUVJD4cmGXZrre1Ax/YuCk0Tyn876KW1SjPtMFYgK0u/s18uZwQqhacoCDIzkyUGuzJmI79z9PjQVL1+wPS+9gdn8F0pAkSr1erBRGlN/ic5kosZWFYS3Bq3S+7wSMBcyfTvJgWuh9iYFW5fZbV/3DvwoVa1jdtJwWcBsSlRfzimy8deJ3yosI1C4cBeUYYsBGVLpzo9Zo/BIoYO6Q4deBvmtHu9zVQsXasPM++mhh6eOQfUYVKC7ggG9jBvcny9lYc2D73CqvOc0DZvn/bveyRfl63oyYJXuPLYbbjUxD7DdFEKCujlrcOSUUcO+ziLt7icYYKL86H3jUIyD/qsfzJ9vYAY9Ocg3qf3PM9Cg7mrjTAwg/aNijTHocSPNehrsiEsz/1WeGD4mx4GrqMmLvSkGuSBUd/VnMuGup0MI5Sc/lRDf4l5Z3U0urK+y2+ps7ql5G+UsHAkMAL1KkYqLL7qP+6vxW8HiWNKseGmUI07HBpKjS6LYCUIJ0ISJjNNUXoQo3Q+Q9NdvYdpGGOLTufNaJYSt095wR+vD/RPyMzx6gcFhGVwgsRYNZFiAINFfEi+0uhZAfpUTeOj6ufDmY9qlaM7k22u5/Ef4fTWvjVEpnSujj6NLOtx/2jbfQaOxek0+9Ieu4Mk1VYnej9aRpG8ZzQ5EOLYpBRZTHUjh2zvkCmWQyvxjC6bB9xLrGOLehOxmhzw2VUpSa/abhCFBFnx2DVVs X-Forefront-PRVS: 028166BF91 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39840400002)(39450400003)(39850400002)(39410400002)(39400400002)(42882006)(48376002)(2950100002)(50466002)(6486002)(50226002)(5660300001)(6506006)(5003940100001)(110136004)(38730400002)(66066001)(4326008)(76176999)(47776003)(25786009)(50986999)(5009440100003)(8656002)(305945005)(1076002)(2906002)(53936002)(6512007)(7736002)(3846002)(6116002)(81166006)(42186005)(189998001)(36756003)(8676002)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1726; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1726; 23:Y+P4T3aKLih8IKCg+LarAEBugw9BpEmHrQeJx+i?= =?us-ascii?Q?gCxuzZs4aGHixndAP2d6HOsrMVyBPI4Sk+GiaVrTGlPDxD57+SY0T+QIfuWZ?= =?us-ascii?Q?pdpZUH0lIFtAGzfG0Fi21QGOKt5W28zhCRi7Y+Er/v53uCpU/emNJIh0wrCR?= =?us-ascii?Q?0dIpy3TiufQx6x0CTD5kheNl5XgvjXSr6Dq2EOhl5yYvOWCceOf3Ow9OBZ8/?= =?us-ascii?Q?eG6sJFKVu7g5Ph7escDgjTEFXlWrcbuullXGFgzq/ZVbV63pfQS27n32ir/J?= =?us-ascii?Q?iLg/iuOQNyiXyPKFusr3dq1ywQsuJIZBHVfgpGlCjqUIg/tvU4xLwOzTXRhS?= =?us-ascii?Q?TMchdi8ZwpDrwzP/QfpdUQDBFxBuHx/o22Yv+nu8Xm1BeUsxBrF5wtbBPj0V?= =?us-ascii?Q?a0cdskM3/pGdDwPPQhYykxNyNRMNUKRUtRhDKyDD+G8IEWJDj7yLMZIVRWWX?= =?us-ascii?Q?L3/0qAfn5skuXskHJaLXwtj5Qo1AuQ+KH4pznKRVWvREOHMK/kQ7NxiMG3jj?= =?us-ascii?Q?RbQ31HBTfIYhYGuN4Z2vX0ct0pCliaPb61kGHLgDIl2Yb9Dmh+1X5ssQh5bE?= =?us-ascii?Q?UZqWpnpOKoXxQmxG24+2BXDx2K7MndkeBGRmBp3cKzakKP3htI2YVESBc5fT?= =?us-ascii?Q?n/cPrggrmGPDbnuib3ksnJWeKrANkHOw9Yx3Kl/2LsWzWGotUpFWN+GRBACP?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z5InXN4pbZXI/oCWgVmLX6eLxyM57/QbDvO55AEGVgu6HdpeuedvQwtY5693YA==; 24:NTGZony6V2X4blinkxum6KUR4rQYmFxSb+lbi5QUbP02tJowHiXbcdG2A/OEzcfPtcUnaBwkfW8VwMT/6gjCAjgBvhOqGoM/F+0gaeHwavQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 7:GR5AeSsXYK5cAORyWdbIgf/8UuskZC45YVtgVXgG5rKId7LPfBPtWX0x5qZhscxNttiM/rJwXMI1i+12lrypRfq1yopr23TQ8Bh2FOwisfZa4tyyQ7U0VhTDWIXRpYJiTcEssl11QprRXfLr9KP9AEoGdiyLFJ8LD0D71cz0RPL/gF3Sda2OHkFWxucR0TMf83l3vLU7IztmQ+t+ytA492ZEmdY4u2mGc5+S5YdsoFFrvFJZyhRAHljW06Sv9IkR69b/6YSqqzqnQnukY7hqmYe5xtzaIrklTPIL5ynSci6ZA/89Aesu1GIRllNWZIctcCZRlQuBzuFQv+JGzUKppg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2017 14:42:29.0970 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1726 Subject: [dpdk-stable] [PATCH v4 2/3] test/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: Tue, 18 Apr 2017 14:42:34 -0000 Mempool_perf test not freeing pool memory. Cc: stable@dpdk.org Signed-off-by: Santosh Shukla Acked-by: Shreyansh Jain --- v1 --> v2: - Fix patch context v2 -- v3 --> v4 - Done changes because of [1/3] patch test/test/test_mempool_perf.c | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/test/test/test_mempool_perf.c b/test/test/test_mempool_perf.c index 1b4045eb3..3749cf8be 100644 --- a/test/test/test_mempool_perf.c +++ b/test/test/test_mempool_perf.c @@ -313,6 +313,7 @@ test_mempool_perf(void) { struct rte_mempool *mp_cache = NULL; struct rte_mempool *mp_nocache = NULL; + int ret = -1; rte_atomic32_init(&synchro); @@ -323,7 +324,7 @@ test_mempool_perf(void) my_obj_init, NULL, SOCKET_ID_ANY, 0); if (mp_nocache == NULL) - return -1; + goto err; /* create a mempool (with cache) */ mp_cache = rte_mempool_create("perf_test_cache", MEMPOOL_SIZE, @@ -333,48 +334,53 @@ test_mempool_perf(void) 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"); if (do_one_mempool_test(mp_nocache, 1) < 0) - return -1; + goto err; if (do_one_mempool_test(mp_nocache, 2) < 0) - return -1; + goto err; if (do_one_mempool_test(mp_nocache, rte_lcore_count()) < 0) - return -1; + goto err; /* performance test with 1, 2 and max cores */ printf("start performance test (with cache)\n"); if (do_one_mempool_test(mp_cache, 1) < 0) - return -1; + goto err; if (do_one_mempool_test(mp_cache, 2) < 0) - return -1; + goto err; if (do_one_mempool_test(mp_cache, 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"); use_external_cache = 1; if (do_one_mempool_test(mp_nocache, 1) < 0) - return -1; + goto err; if (do_one_mempool_test(mp_nocache, 2) < 0) - return -1; + goto err; if (do_one_mempool_test(mp_nocache, 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); -- 2.11.0