From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0047.outbound.protection.outlook.com [104.47.33.47]) by dpdk.org (Postfix) with ESMTP id 76AE0E5D for ; Fri, 15 Dec 2017 10:05:02 +0100 (CET) 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=EYsT68hssoaDm+9dQOd6roSBRL13JHVcUu+mUvQQ80c=; b=YLO0ysB58ZZx/vRj/41FefUTm9dXzaYlkHJL6C1ZCfT0mwhcSJFiCp2ZwOJrfGCyfniRxlOxiemxfX9DMVKQJI7iv8bVQAdyLpe11LXVTPFRLnoLZoYizgNhoTUiUV2B36DGxBpUkYcDLC/r5AdRwJKm/gwAKJ8qqYwVzIs8bV4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT (111.93.218.67) by CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Fri, 15 Dec 2017 09:04:57 +0000 Date: Fri, 15 Dec 2017 14:34:46 +0530 From: Pavan Nikhilesh Bhagavatula To: "Ananyev, Konstantin" , "jerin.jacob@caviumnetworks.com" , "santosh.shukla@caviumnetworks.com" , "Richardson,Bruce" , "Van Haaren, Harry" , "Eads, Gage" , "hemant.agrawal@nxp.com" , "nipun.gupta@nxp.com" , "Ma, Liang J" Cc: dev@dpdk.org Message-ID: <20171215090445.huivudbztoxknb3j@Pavan-LT> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20171214150138.25667-1-pbhagavatula@caviumnetworks.com> <20171214150138.25667-2-pbhagavatula@caviumnetworks.com> <2601191342CEEE43887BDE71AB9772585FAC9A88@irsmsx105.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2601191342CEEE43887BDE71AB9772585FAC9A88@irsmsx105.ger.corp.intel.com> User-Agent: NeoMutt/20170609 (1.8.3) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: DM5PR12CA0069.namprd12.prod.outlook.com (10.175.83.159) To CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 54aebb10-292d-4f94-1849-08d5439aebe8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:gVte2TSxrekLdtmLXrejz7iHOBz4Ul6CIvyVcKXjHt4GdRWrnGg5XmNb6Rub2HYXAEcLI/89YeMbVH9PMo/ZClGLvwZVezPiez/PJzY++En6igm8s7xauJz1FEw0/JG77icMD1hcbrLoE8jOGzl2ZDLIupZZsy6KNjrnDU9ppx+RGLVTtFP+uxUHnGmue4cxL3e4bduX29NdRAuC/nL70XxSHDMAD3A45IUc5kZn0mK1ooRCUYf72X2hTHRWZP/n; 25:w3fys+gVGzey9EoWPk3E14EBYwziuBgYp/HRqBy/9YU5eJMLzl4pmpjcUAIZrV1ZROy1n9DkRy1H6wPXqPkaZJILwbDMY5IM78gecC5Srthp7nwHYE0JdmGOyUy8bJc0kyZ6PkOGS5gilBSZ57mcOu6Bg0dvgYIOcaDIuNdWx8fw21HYMKf4ix3li5xfxWM03rhsrrT9KWOUw4weJMZ15FA2dt48Ofq8/OxEn1nAi6fohnchhC5ByJh3UY21V+G8stonHVyZVEhkvnlzqT8TWMbbDf3PgBj7odBgePoh9jQOqZEflq1BaFdfZw1ZeDwyjRvI9CwyC0muH1IfZCgs4Q==; 31:nl4Fr9CDWr2b3/Bf2QSvDjQ4G5HEyAOfk8uGtj9wN5iL7HjuFX5j6Ka79KHpdiQ1yi8EhmpS8xUcVW/1RVdLjXC4obItW1QG5a9p5AEuE5mmM6qkG4fLR/Dn6rd4/KGhDwYXxRBFwYBkActUVn5KusrtMpO6op8XuVWSVNE/FlvoDWv47QuojEsnMJc5P80fJDX6vcR+g5kLUeZiDrKikg4gOLqcElBdjDSFu2suDsk= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:XDoTLuGGh2jqVLWVIuZ3fp9tmZrAhz/j+EBIbLgfz1/AitpSmHZZR1085lNJXdqcux5u9p41v8LU++IxfOKAnzo5CHUXkaGAUyOGJ4fFZPJKLBMZmXyD7Bux78IJq+nws9PCCi5yhFehqfgdByMQ8Or7J7ioyziSksVZmJ0ClR3ICV9TqJKqaMUy45YJoW+xduwbABDZ62b9knRFuy1mwm9cuOuc1kTP2eROI6XCUpAwbN8zaF1CQMj7/u9/DARMO1KPxro97gRRr4eTPfgFhZSb9nt3460EZ+XyqTLOXMlvGgNjFmPS0ac5eEhtKz8sazQJKf2EiiNfilSfWFzkMqcCDa9QqX0jtea+olUqTlCgWiDPrOfgNYOHGuJ0U/GiG0Ftfkx2jItNjsv8ZtcPD7lQBKk+4wITepdyIg6YK8fp1vBnYul0VOOE+RIIOCAvIj+i4uxtUvIGQNTkjkLPofofJBBs++bojW9WlAt9vlqnUGv6PSo7wQOSeSK3dM7+E912gGRVGuvNIvq7e0EcDZFok88dxvYmfgqtAiAQX6V0lBT+QR1aF3TqoHxCAYawzaBgep0XPATrvMZ3h/FLnxEemJWHOuOO6QshoWDO2KI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231023)(3002001)(93006095)(10201501046)(6041248)(20161123558100)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(6072148)(201708071742011); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 4:nVnd4pajgEkwQwmD8fUaSAlZSFMiKa4zq5lui0MmhmpiGcGgikQPdBErUiiRXWX1c+Hq/gFgtI07sLMRnuEjUfVahq5ZD4vQYG5zrnWmwGlDupE9Wf33uRSx85bv4KIbozvd9sdHgYKFdhgY5aJY+oqcqBXq7L0xgPwMO1SJjU4dTk2aCa6hRCEfjB8IEYOVdxZhfuSudlAW4gWW/DSNcijK30qPGPNQw6pextM3hSn8diEzCVePXXifdO1/21j32aMpiDZa+eVdOXdjcUKWLaAftVYmEICzSFsIypfUJVRA1lZdpM0TP3CM+K4PcPgYljckPXqi0ZxGqg6HNwj0SW0jsmQtkvpl3OSbc1cvxGg= X-Forefront-PRVS: 05220145DE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39850400004)(376002)(366004)(346002)(13464003)(24454002)(199004)(189003)(58126008)(23726003)(3846002)(6116002)(1076002)(5660300001)(8656006)(25786009)(8936002)(83506002)(6496006)(52116002)(53936002)(6246003)(6666003)(4326008)(9686003)(42882006)(93886005)(2950100002)(8676002)(81166006)(81156014)(316002)(110136005)(16586007)(7736002)(305945005)(50466002)(16526018)(106356001)(229853002)(68736007)(55016002)(105586002)(2501003)(2906002)(72206003)(5009440100003)(478600001)(47776003)(575784001)(33716001)(2201001)(386003)(53546011)(76176011)(59450400001)(33896004)(66066001)(97736004)(921003)(107986001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; H:Pavan-LT; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3464; 23:W/H3JsLAzzmcHkcDMOWzSTX3YTKrsChwAidu4DmUW?= =?us-ascii?Q?37Cf31DX0aC983oVXYvwqBvDYGwSw0czfWlmZxKYbyfsyiny0jhSu6VX1O+0?= =?us-ascii?Q?ZZ46b/dGZI67e4loh7bA08baQrhRDkhvnLps6dGYHzA9spZbw9waPK0+8qog?= =?us-ascii?Q?qyb/0MUS+6Bu5I9b7pE00+V+mMxzvnNdxAzMIdOpwcOQKe4Ru9YDd1ck300T?= =?us-ascii?Q?4TWhYmVciNo4rmv5dPA3FkzrdHSdQOC7WTaD/UHhqEgvl5qthHQX8LvxzEx0?= =?us-ascii?Q?yjUpVf/0MEKK470WkmZzuNhiEBeA/1aDpkO6NwOp3cwYDkLOX5vCiQS+8119?= =?us-ascii?Q?z9q71puogRaArjOSHt5RuBp6K9/kgbeXn5U4drspveyeDwszjIBGEfF+sxp9?= =?us-ascii?Q?k6/vUQtw/BlR/UXDWtIHcsmwtASiHwOGxbv6i/eB257+KQxxqIc+tH4h6bfZ?= =?us-ascii?Q?u0cSxpIBi5UFPdBzRAzHQQL/VOxMghcZiitPjkRrAIiKJjyiXgeTiVbmgm5Y?= =?us-ascii?Q?PYBj5mWSIC0vv7BDg7VvlVeMAcO7f59RpmrL15BHUuakr9hTESMT30s4dcPk?= =?us-ascii?Q?xvO64PgQPY9DNxelKqMkb5wYqOQUghgmu5a9u1D0Fg7Npwui8r7dof7lz8BR?= =?us-ascii?Q?+wXOf84R/9QpTDnD/c7t9aRCzxBmeYew6yJur5v9v832liKmmjHdbJMqfUac?= =?us-ascii?Q?wSveaBu+1Ete3YnbuVCX9SXJdfVa5Q1H4Izapfot9q3EjaqG16pLrtFm9YUr?= =?us-ascii?Q?RU3+kY/Kn4Dp0iyDKT299APrHE4TO7ucNlJoMqicScbLW2CU9p6+l/k7qW9K?= =?us-ascii?Q?mJ5PL7dONtepglAEeOiK1LkxoQrvGz5jTWpekLViFZYW0eIDg5GHsYsET2OG?= =?us-ascii?Q?KkCKx3GziL96YfT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DJJ00=; 5:bHDdYPKXl6ScCtzoA6Qqzmv0WwvYUFi0yd3paD8f5tG1Vqmn/FJLQWabDl3SALI+bnVo8Oy6vm3EeJGwxnOHq/hCXfo8iPsPOTjRGU3bvEBdSqT26QgZuTvJEwTvhAlMn0hiSxQJWj1ZK8h6dBZfW1+CocDffeZDE1rv8LlykTk=; 24:ZJjjQNuNVQ6Qrmp3UyTwAWlWjO/R1KiCer1TYF9izXd6FsEsOOdNqMl3P7OR4yFUDyl2EfJCTsNnpZGQek6D7m4jIN3GqS1lXY/mBgO+XRc=; 7:7iYG7w3CJEGuk4seZevQCKs4ux4h8e1fVKWi8II3/fr2t7PoF1AvtcReqti5xQW5fxgg4rZdDLg2BWugHCQh+2cvvvEL4wOcKMHb5tCNKAhfFMPCvliZURpaduC2C/+XSr4OWxoZlOi4Rp4JZDbGGscZnzQXFgmL0GsIK3FFowk0c5KPLl+KVm+tLIK9yJ02eaClGKY555LN4gaZWL3jveLktiLwCyqMeN5nVkf6+llfJyoQn+hVRy7BP2px8XKn SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2017 09:04:57.0143 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54aebb10-292d-4f94-1849-08d5439aebe8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: Re: [dpdk-dev] [PATCH v2 01/11] eal: add common test assert macros X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2017 09:05:02 -0000 On Thu, Dec 14, 2017 at 06:43:24PM +0000, Ananyev, Konstantin wrote: > > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pavan Nikhilesh > > Sent: Thursday, December 14, 2017 3:01 PM > > To: jerin.jacob@caviumnetworks.com; santosh.shukla@caviumnetworks.com; Richardson, Bruce ; Van > > Haaren, Harry ; Eads, Gage ; hemant.agrawal@nxp.com; nipun.gupta@nxp.com; > > Ma, Liang J > > Cc: dev@dpdk.org; Pavan Nikhilesh > > Subject: [dpdk-dev] [PATCH v2 01/11] eal: add common test assert macros > > > > Adding common test assertion macros for unit testing. > > Wonder what's wrong with existing RTE_ASSERT() and RTE_VERIFY()? > Konstantin The existing RTE_ASSERT/VERIFY use rte_panic(). Pavan > > > Taken from test/test.h. > > > > Signed-off-by: Pavan Nikhilesh > > --- > > lib/librte_eal/common/Makefile | 2 +- > > lib/librte_eal/common/include/rte_test.h | 97 ++++++++++++++++++++++++++++++++ > > 2 files changed, 98 insertions(+), 1 deletion(-) > > create mode 100644 lib/librte_eal/common/include/rte_test.h > > > > diff --git a/lib/librte_eal/common/Makefile b/lib/librte_eal/common/Makefile > > index 9effd0d45..eba1059f2 100644 > > --- a/lib/librte_eal/common/Makefile > > +++ b/lib/librte_eal/common/Makefile > > @@ -43,7 +43,7 @@ INC += rte_hexdump.h rte_devargs.h rte_bus.h rte_dev.h > > INC += rte_pci_dev_feature_defs.h rte_pci_dev_features.h > > INC += rte_malloc.h rte_keepalive.h rte_time.h > > INC += rte_service.h rte_service_component.h > > -INC += rte_bitmap.h rte_vfio.h > > +INC += rte_bitmap.h rte_vfio.h rte_test.h > > > > GENERIC_INC := rte_atomic.h rte_byteorder.h rte_cycles.h rte_prefetch.h > > GENERIC_INC += rte_spinlock.h rte_memcpy.h rte_cpuflags.h rte_rwlock.h > > diff --git a/lib/librte_eal/common/include/rte_test.h b/lib/librte_eal/common/include/rte_test.h > > new file mode 100644 > > index 000000000..256117f79 > > --- /dev/null > > +++ b/lib/librte_eal/common/include/rte_test.h > > @@ -0,0 +1,97 @@ [...]