From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EECB3423E6; Sun, 15 Jan 2023 21:12:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64FA042C54; Sun, 15 Jan 2023 21:11:43 +0100 (CET) Received: from CY4PR02CU007-vft-obe.outbound.protection.outlook.com (mail-westcentralusazon11011009.outbound.protection.outlook.com [40.93.199.9]) by mails.dpdk.org (Postfix) with ESMTP id 5D0F740E03 for ; Fri, 13 Jan 2023 14:13:05 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T/8ZhP3+Q8thrpqCOOAL6IhBztUaJZOl8lcj9VDQjm6ke075AXK1lB7f36NCEky6wdl3uDv6xG0HtCXQT0hzK7gOWp7qCkHWbG2tL0Gi1PviiK8g88SbgHtNomAQeGoUknnnrgerIMaoIlJPvX1ESbAzP7Gft/Gd+2N/DdxteAC33nxb9iNYlE5Zj1ROEx8c7y0lBuDj8vmGw6nAQJQo/PZ2qbEV7YJpvn+drSQ9U25EjqQOxeJxHMEdRUtGbfcOurRmVkwezRX1/3jiBJvVmOGm1gRndBIoRe8F01Xdpoi58sofDfgK0UDOZuQWTXbsx5PtvSrHdl/mlukg2TL8wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0LzIoeiFeXVM+5B1I5VA48O0jDI1bIwFaHzHV5dmlwk=; b=BvOLtwRjFvB9PHdpQ146eGq3Vgpkp2x/y38yHNo/TnxwKgkjcHWqQYp3Y3rGjEZsWhCSLaZBs/etENmAPLN9V9x2Qj9AJloNCsiHZqMrA7D3qbSTkuq/4f3YiCjXfY50cCnwa0OSuQuiDhP8q+4+Ygeuxv7BdaaUBJH0sx7HVmsB6i2KGnK83iyAuBO3YmljlkCFcTBXJPHMVoMQKPdYnwomgNc5ncT+iGlKjLAAW6oTnaJIRYMKstuI2LmHaTVsNvEQ163UbaBQ6ahV7/2jpdVWOBnspSqD6ODETT/PlSH3JVbz7j9uT8axAfmWTNMoA4tw77J98etqdIOZq1rhmA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0LzIoeiFeXVM+5B1I5VA48O0jDI1bIwFaHzHV5dmlwk=; b=lpYClphmaubZh8C/x1ndsGwVXjnlMprZemxyu9dEu0SfG+jQR7VuC3SEooLmYV/Xl1Cof12cwfzS//VpwQ4SvtBcxUJpYTq8CEtq1gIKzvLOHtm3q6POmdrz4+gjYCat1JtDJXQWK39UFxcE7MZWNIiP0gx2EfFUPQ6MScg6eaw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vmware.com; Received: from DM6PR05MB5577.namprd05.prod.outlook.com (2603:10b6:5:c::16) by CY4PR05MB3431.namprd05.prod.outlook.com (2603:10b6:910:59::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Fri, 13 Jan 2023 13:13:03 +0000 Received: from DM6PR05MB5577.namprd05.prod.outlook.com ([fe80::4cbc:cca6:3a16:5023]) by DM6PR05MB5577.namprd05.prod.outlook.com ([fe80::4cbc:cca6:3a16:5023%4]) with mapi id 15.20.5986.018; Fri, 13 Jan 2023 13:13:03 +0000 From: Vipin P R To: anatoly.burakov@intel.com Cc: dev@dpdk.org, Vipin P R Subject: [PATCH] *** Memory Allocation: Adding a new UT for fb_array *** Date: Fri, 13 Jan 2023 13:12:46 +0000 Message-Id: <1673615567-20873-1-git-send-email-vipinp@vmware.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0036.namprd13.prod.outlook.com (2603:10b6:a03:2c2::11) To DM6PR05MB5577.namprd05.prod.outlook.com (2603:10b6:5:c::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR05MB5577:EE_|CY4PR05MB3431:EE_ X-MS-Office365-Filtering-Correlation-Id: eccb6ea9-64ad-4bc1-4595-08daf567e6d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wJa8ea3geKRnpGAlQxXOpSht/NaI40ThLjEi0tTcuIyUyVeKVUUWFf3cy5cqJWGE4UNwTbPzgn9zsYocVB6MAn2zjXzPYpXnEjLmW3R6d/opWR60Lgt3ZTbOupQPtvYA5N2EoPMLWzIK1JWVhaGWSSlSLsEF8lSm0/2VJ7KAyaRYHSfDmbl/NwYJXwwmJ3AAMpUigj4cnrgPAIilggm5z2ob/7UrYtuqbKXu0AQkXFpCtVgYRGT8FToCaLo5/mm4WSgCczgKkT0Uhl8g4KwJ7ZycjUp8QZ/k984h/rLr1RdpCbC8+kg1q9ncgDVLcF5IGHbEpsappImR/YvwravMGpsSRySHoU5nYobP9YiZN8HbPNgbCGzG2WhMn7gikdsfqbA3x86m1TdgHv/CADRHCHKxswPcIAXE9yTE3R/Q3s9pB3yQE0gD9VR/mcZIBN5PpfD7QpQpKDqHZLhuDm5cuanotDW42fJH8bY7IqjXdkP4VCJCuP4skFqjrRkbIS2PLbYvd+Lrhf9JHBkfjM/NVciPNMjEJgJDKT36bgOgXkPjTN4smmV1BZS6PZ/B5sBop8p76xf/xjTIseinmfrHSpuPhclKOK1rroAGZSNN5yqApclXu16czB7hbSpj6B3dlqEJNQUHJOdQkMfoO+eVAHfWtNV+nRrNGg3zhe4Ecj462/2lS2GpX2QSQGEvxbSZgjcSgELBodeO//vnZyNBEw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR05MB5577.namprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(396003)(136003)(346002)(366004)(376002)(39860400002)(451199015)(6506007)(107886003)(36756003)(6666004)(2906002)(5660300002)(4326008)(6916009)(8936002)(8676002)(38350700002)(6512007)(38100700002)(478600001)(41300700001)(6486002)(26005)(66946007)(52116002)(186003)(66476007)(66556008)(2616005)(86362001)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?OM0NAHulTkgCOKbWvysbKFrgFOGFZzwnoqtmB+PhdGks95ETB/JgVJoCAjqc?= =?us-ascii?Q?hByAiQa2M1rpx2sjj752vqK12M7L2j6tOUU2HNtxHq44F+NMySsRe4gaYb4u?= =?us-ascii?Q?6ohv6YvdJIGuPN5PM+nbuRUZeglPnLg3JTLAa3WbyvFR5K5ohSxOL+6Icy2d?= =?us-ascii?Q?Gri1ZMvIU9IPC9F66T1nrM7dh3w1vDJ1XiCPCs2zIOY0/MIxbgIvKK3f++4u?= =?us-ascii?Q?AXkxRs3tDgQS+eYSDWsF+RGbnr3py2UXCgnJl0SopOGRyy8Mwk603cI6iKsS?= =?us-ascii?Q?c098xFyNmTpoqQEC7Nd/c9AWYm+20KVZRgljgVaXBDr/Gw/qOv978ZL3nJX9?= =?us-ascii?Q?TlhpBiPTPfDHJtPKx8ERw7o+Ny2yIvWdtYIdP9ghAQki9Veuok5y7wKeD5cL?= =?us-ascii?Q?Jp/nP4xAYifdc6OZIFj/5RTkEnlrPPKyZF/1IhnlaqECngj29/bWUnc0M3jr?= =?us-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m0Z+bnkBIRgcO8FrLao6hce9?= =?us-ascii?Q?d+3QzMtmApEhNNkgZ6lNoLDXNvUDsZdpuTV1X/8ztBqDf9jys+1xrJHQThRM?= =?us-ascii?Q?ov/sVXiuX6CAHK7ziV33IGLqOlZFPwY6iFrBAluyahDvmQwHK5Obu4f3c3s5?= =?us-ascii?Q?VbP4E/nZUWI7Bn+1Mxru96PXbjb8iWj8hGUZ378Zb2/xSqxeJ/tXZ/XwMdax?= =?us-ascii?Q?ev9XrMh89tLU8EcOSBZ3N94UQUolikEjJ2PIPg9w?= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: eccb6ea9-64ad-4bc1-4595-08daf567e6d3 X-MS-Exchange-CrossTenant-AuthSource: DM6PR05MB5577.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2023 13:13:03.0794 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QQI/1M7M96THOEeu5Bv29bKZ7gGb/niozQYNWsiSAbgw0mimLZYQGYfkYd5LrZMUPRk9MBJqbJwsZCTs9h5o4w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR05MB3431 X-Mailman-Approved-At: Sun, 15 Jan 2023 21:11:39 +0100 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org *** Partial output of fbarray_autotest (app/test/dpdk-test --log-level="*:debug") [WITHOUT THE FIX] .. .. EAL: ms_idx:1096 EAL: ms_idx:1097 EAL: ms_idx:1098 EAL: ms_idx:1099 EAL: ms_idx:1155 EAL: ms_idx:1156 EAL: ms_idx:1158 EAL: ms_idx:1159 EAL: ms_idx:1154 EAL: ms_idx jumping behind. ms_idx: 1154 prev_ms_idx: 1159 EAL: Test assert test_jump line 445 failed: Incorrect ms_idx jump + TestCase [ 2] : test_jump failed + TestCase [ 3] : test_find succeeded + TestCase [ 4] : test_find succeeded + TestCase [ 5] : test_find succeeded + TestCase [ 6] : test_find succeeded + TestCase [ 7] : test_find succeeded + TestCase [ 8] : test_empty succeeded + ------------------------------------------------------- + + Test Suite Summary + Tests Total : 9 + Tests Skipped : 0 + Tests Executed : 9 + Tests Unsupported: 0 + Tests Passed : 8 + Tests Failed : 1 + ------------------------------------------------------- + Test Failed RTE>> Partial output of fbarray_autotest (app/test/dpdk-test --log-level="*:debug") [WITH THE FIX] .. .. EAL: ms_idx:1109 EAL: ms_idx:1110 EAL: ms_idx:1112 + TestCase [ 2] : test_jump succeeded + TestCase [ 3] : test_find succeeded + TestCase [ 4] : test_find succeeded + TestCase [ 5] : test_find succeeded + TestCase [ 6] : test_find succeeded + TestCase [ 7] : test_find succeeded + TestCase [ 8] : test_empty succeeded + ------------------------------------------------------- + + Test Suite Summary + Tests Total : 9 + Tests Skipped : 0 + Tests Executed : 9 + Tests Unsupported: 0 + Tests Passed : 9 + Tests Failed : 0 + ------------------------------------------------------- + Test OK RTE>> *** Vipin P R (1): Memory Allocation: Adding a new UT for fb_array app/test/test_fbarray.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) -- 2.7.4