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 2C02BA0547; Thu, 29 Apr 2021 21:17:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F01F410DD; Thu, 29 Apr 2021 21:17:31 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130074.outbound.protection.outlook.com [40.107.13.74]) by mails.dpdk.org (Postfix) with ESMTP id 0D80C410D7 for ; Thu, 29 Apr 2021 21:17:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9hl3Ny93h/OzknX5GGgXhPqRLRb8p5Byjc59x+b6bs0=; b=t4ihyDOEGxcndeH6eDb0laCwxfc2KKNVUZ8zjjHaRuUN5k5uYJzo20O102EoYeHgg7I/2GzDzjIeKb+QmMyLswzdwt45hqPDzbp8ROiaJfcDChcSB+VV+SAAOSibUPtXfCTYiceTPvGm9PthrjzSGLAmxbFj16euQbpIq9F+5kw= Received: from AS8PR05CA0013.eurprd05.prod.outlook.com (2603:10a6:20b:311::18) by PAXPR08MB6798.eurprd08.prod.outlook.com (2603:10a6:102:130::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.23; Thu, 29 Apr 2021 19:17:24 +0000 Received: from AM5EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:311:cafe::5c) by AS8PR05CA0013.outlook.office365.com (2603:10a6:20b:311::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Thu, 29 Apr 2021 19:17:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT038.mail.protection.outlook.com (10.152.17.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Thu, 29 Apr 2021 19:17:23 +0000 Received: ("Tessian outbound 13cdc29c30b8:v91"); Thu, 29 Apr 2021 19:17:23 +0000 X-CR-MTA-TID: 64aa7808 Received: from e9074f06755e.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 39C378F0-9BE0-417C-9BAC-31C29673246B.1; Thu, 29 Apr 2021 19:17:12 +0000 Received: from EUR03-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e9074f06755e.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 29 Apr 2021 19:17:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bC7rFltHatE3905RvBCYoN2nujdI/3e6fTJ5hrUFqJdGIOMFpMQL6CLfacUyRL5k+iVbIAAnb5Daq7pTRTz7HzH3SAY3zKcG7A1BCirpC5yhk9MP4/8PQenr7PNbcQ3dNnOOlEzrWL45hkbxqJjLwAAm4MukQlQpi1DDUz9sAiKhLs6UK/a9vSksueum38Kk96cOkf+92ffy0JQfq353zmQrkgpClUMF8adoN8teksqvUDzhbuQ2ejV1afl0erdlIYVzJDjBFgxuyf7pPnXpTC7f1rLKD36N6rEtoCnu5TGzXVFUT0a9cf7C9l4TgKunozvbJb6KuVEMnZHMcWXm9g== 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-SenderADCheck; bh=9hl3Ny93h/OzknX5GGgXhPqRLRb8p5Byjc59x+b6bs0=; b=NNm/uUyn4GlTbUYbW38yqvLkQUqskxeMxNt18TnHdeu2m8qc8uo/dq+A0ay6Tuf0CHyKtWo/xqz4frQTTgmEft6+VScfZYr5J46ElTrK34c5Tkvh1z5iwJro3aZulClyr2t5tRl1wBlvwkzL6/5M6lm/3glD4awUKqqbbMgRA0C+Nkhi5ws7l0qaEdCV5D/COWyO6ZdBkiokDnosxYtkvXrWW7I5JkUxD3YIE3KD/REk9oADG0jy34O8ROUdGxA/nM8QTyyMCQZlI7LNcBtTlARgXcViOipPqbhiwpVaWRStE+ovcZWCL0LMfBY/GCLbv+t+OnKBzkZ7gRSLE8ZvQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9hl3Ny93h/OzknX5GGgXhPqRLRb8p5Byjc59x+b6bs0=; b=t4ihyDOEGxcndeH6eDb0laCwxfc2KKNVUZ8zjjHaRuUN5k5uYJzo20O102EoYeHgg7I/2GzDzjIeKb+QmMyLswzdwt45hqPDzbp8ROiaJfcDChcSB+VV+SAAOSibUPtXfCTYiceTPvGm9PthrjzSGLAmxbFj16euQbpIq9F+5kw= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by DBBPR08MB4282.eurprd08.prod.outlook.com (2603:10a6:10:ce::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Thu, 29 Apr 2021 19:17:06 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::2994:a01e:2de:f94e]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::2994:a01e:2de:f94e%7]) with mapi id 15.20.4065.027; Thu, 29 Apr 2021 19:17:06 +0000 From: Honnappa Nagarahalli To: Tyler Retzlaff , Joyce Kong CC: "thomas@monjalon.net" , "david.marchand@redhat.com" , Ruifeng Wang , "dev@dpdk.org" , nd , Honnappa Nagarahalli , nd Thread-Topic: [dpdk-dev] [PATCH v1] test/ticketlock: use C11 atomic builtins for lcores sync Thread-Index: AQHXPSpyd3IqPWgjJ0i2SYRXyHCPu6rL3LsQ Date: Thu, 29 Apr 2021 19:17:06 +0000 Message-ID: References: <20210421071733.17794-1-joyce.kong@arm.com> <20210429190358.GG21799@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> In-Reply-To: <20210429190358.GG21799@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: CA4431063C639C4A8FAE20557FEF9610.0 x-checkrecipientchecked: true Authentication-Results-Original: linux.microsoft.com; dkim=none (message not signed) header.d=none;linux.microsoft.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [70.113.13.105] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 56f340ce-3bf8-4076-6e15-08d90b436b23 x-ms-traffictypediagnostic: DBBPR08MB4282:|PAXPR08MB6798: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:5516;OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: pTJJBn3TjwkW5IOzLYHtUbyV+b802B6CrFwa4s4MWGHQzqG8H2iVzcwM3wkeWFeizpUexxGzBZOHkXVeU6YrCmJ9FRhGsADpFMIN+12p3XW6VgiLFJclIk1M+SZHrI62znZhX8lVB0x2BWf/0VJ0Rly3ytx8MBZ9bO0Yim1ZbVP+J8/eL6epMEIx6S//BW4RkWRWY8mgAOmL6kBbCK2gEUOJo7uS6dvEnNR9XsxqkTebioCZ2gVySmVmpy7Z928zdvPvAahGzfb7cE2Q7c9/Pa0FE30wSCGCtJqlcHN9b97Ph6wO5lBUqK+JzFrfs7wRI2biUWIT+cLmJKzY1BlSQEXkQ+WDc8v8/OGE5qKI8ujf3fptKv4VFyKEXVaj3z59bUOXGNVIeKnqF3Zp499PrBwDRuDaEuTgBFViJeUpOHcyNWg/xOpxUy3cDVm2njQwVot06rS8xjG8bUEKuKJbLI6RS3lWFV6nd6qh+3zH4oydqGbdQJ70BM2SvQk3gX5479klrRIAyL8JIK+O4L6Jztio0uxg++2pu3B0Sk8eBw9FqV9AvWrZUotod69tVDaet9U0V/rtrfd9JwQJPTzgkl4dwjOtUpRCwx1LcGTDOutPbGtV9G6P5hDcURitoxvOmYLPtqvkeMpvSRmTqGZ+HcwMGY5RTshH86F8QO2Luq0igMIUbavmh9j8wk32Kmh+ X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(366004)(136003)(396003)(39860400002)(6506007)(66476007)(966005)(8676002)(122000001)(38100700002)(71200400001)(2906002)(110136005)(86362001)(83380400001)(54906003)(76116006)(186003)(316002)(26005)(4744005)(66556008)(5660300002)(9686003)(33656002)(6636002)(55016002)(52536014)(478600001)(8936002)(4326008)(7696005)(66446008)(64756008)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?Y+fajQ94WhxcipTirIdoF9x/y7NwfyqOUoVbcjfubrAzyFTxofZ3kC7edn7C?= =?us-ascii?Q?5fChnTDUOCuXKm1pZfQmhhm2EPm3iwdzSuE+fDRJelYlI9ga/OUxi4A4N3i4?= =?us-ascii?Q?3NYIRb0uRCR35zEuRTsFwPbnYVTv32Tb7UpU8xtFGJXUNWRr2kf0h8l7Q+4T?= =?us-ascii?Q?gDXCfFl6C8cKrblNNAOobGCvwx+AaAiW+XssaLZ5Le0DZaa4waWnbFCKd27d?= =?us-ascii?Q?PAOaTi55Q0y2KKA2K16U+LBMBpDCUyoeZxfrPFbT/tNsBYvZOkcDMk+JxxRF?= =?us-ascii?Q?396EvTbMuE28PY1o3yHOW6k1U5zLzaqa7HN97yybAZfOsozSrF/G+oIrU1Vs?= =?us-ascii?Q?1cVKzYgNm2rfPQuYM4J01+3a2kSIWRNJeCsRLkrnv3MK7I7JIp8ybb17qkRz?= =?us-ascii?Q?Cu8V1KtT2tVp8AtxPe583FdzZ+nx7JwaivYvFrH/w1qpl2U8FXvjvHQJdyyP?= =?us-ascii?Q?uT0dm6I0kgF9/lwjD8ir58RP4cdJ2MnI7yc7KyQfNtsJmF2B8WjNjVpzew3U?= =?us-ascii?Q?d7nr0Pl3aoVTsYGYKrmLFeaXfZllz0kQVjOWg15gnr1G/5f4OVuud9kMgw1a?= =?us-ascii?Q?9r0m1O88p9BeP5z9UJ36WnivoRUO0ogZXXY0VWt1zZEeafA8xHiFttjFhMhq?= =?us-ascii?Q?onSsEMBcw0itaa7PZWBHBmI7U6AFuCfMmuBqLaluszUs1iIplGTAI94EOgPg?= =?us-ascii?Q?TM6WyyOhafV8jvPGE7gQ2aXGuouECkubfWbfLCmGMmFsIRt7a2I5+DO86G8v?= =?us-ascii?Q?p0LyzXJ3PUYur2iY6VTn4KxvCx+odO9sioN0LckUe+qHCwh6oRbeCF8+bCvV?= =?us-ascii?Q?BAZMZ3j2wVZuDPqhCMOfBjY32UXaQEPV6pFLj1m4Vw4D8x37YqPR+KqzOMtA?= =?us-ascii?Q?K0Q5WRq0cDzbXjRn2+CuF0TVfkXR+j8Ua3zzkJrrzBtqYmjs7LW9k3h+UqEG?= =?us-ascii?Q?Gr85Ju1BWaf84gHuNq/+iwK0+Vx/pueFzWRruvEk8203e5O8r8pUL6ZjYWxA?= =?us-ascii?Q?7/X9loMWC98OjDAiO7UAn6cVDcVKxv8VLtQO2JyhwfPr6sLQtmfPPgl+rRlA?= =?us-ascii?Q?yCPLbgQeLMlhjWsJQoHioQt764qgvk+DzAQmLTIJG7T6OK/33Z1f6FteSyaM?= =?us-ascii?Q?wllGGp3oP09ho7whPgVaYwwMlHp5Rl99Bi+1AYKSK1q3cQ2IsBRYlW/eYQsL?= =?us-ascii?Q?klh7ZZo6yglWucgdVJhiSc0o0jTBPtgj2mgOLbJSheuJQ7zTUGqNp7QUHI1y?= =?us-ascii?Q?Cw1+KPTHR9li+2YJNHsyaX0kCQ0SpPkAa6H1IbcK/V+NmyjIMGoaZBByLRg/?= =?us-ascii?Q?EjAE1U1Vy1NN6hXmT7PvDLRZ?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4282 Original-Authentication-Results: linux.microsoft.com; dkim=none (message not signed) header.d=none;linux.microsoft.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 83698d4b-a7a6-4417-04dc-08d90b4360fa X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tRQB2FQfxD5pzBMw9Cut+RT/pBA6dzsAvczmqC7qdL294fTC5+SvuLReRNEGHk+5SL6h14saJbYfxITj8b3IggFA8Tr9YpetH7M4slJ7AVE0C7BmHdX+reeNEC13jJsaKA5F68vdZkYLUdDvqJWC3UurQTCHOSSJfSjIdGd6iN/WZNnsUk53u/VC22h4l3u2UT94u6fI1iWK7SSI81Jaj5r+zoI2DCkAsj7x5jhxnvs5rJuSoPbAUhBidgFBCHNFYWiqcOe6Pgq4IxjwiWldixT6FImyXy4lhr8hKPybyzxMLLZX19Tz36cFF41e1cuPSSYifOa/6DrSehUXzdZ89CefVtLenJg1hOVImtB5OdUAn8t328t6AXkrlVIqGsc0OEAcPEEer6fZ6NAMj5N58/wzNyEr5v/V88ee8LKJf1lcBZXdlgm1xOPkBRHdZd7tiqiqDIg5BWQZbegLfgk+49lSVi5cezN0yxGX2F1i1AoRFsBNHUECSWvoTrw6b6lC9ff1F7cyCNYfYNUHNHr5YxwdLzfVBgaRVmv7WjHyLqUDC9beGiW0qQzxCFBZ4xQpHmbqIUkPKe/60p6AgzavbOTk2GYuinJlFmhRQDdoDNutK3dWYJXzeVODNkA4YqWFYbUWgBnV9boqo5ISVei+RDVi2W/aVbMtXHzxsLHT8d9zwRJIPZF4pB2LIckAv9Aa/Bgdxb7ektRmB/3M0s/iBLSmx+d1SkGMI120W3XV3e0ykoeImAGgz7ZgKJhL5FL9/Rn7+4IVXBZVbyAECIcZew== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(376002)(346002)(136003)(39860400002)(396003)(46966006)(36840700001)(70206006)(70586007)(26005)(52536014)(55016002)(2906002)(34020700004)(356005)(9686003)(4326008)(316002)(5660300002)(82310400003)(6636002)(7696005)(83380400001)(33656002)(478600001)(966005)(81166007)(36860700001)(8936002)(186003)(336012)(6506007)(110136005)(47076005)(8676002)(54906003)(4744005)(86362001)(82740400003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2021 19:17:23.7264 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 56f340ce-3bf8-4076-6e15-08d90b436b23 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6798 Subject: Re: [dpdk-dev] [PATCH v1] test/ticketlock: use C11 atomic builtins for lcores sync 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 Sender: "dev" > Subject: Re: [dpdk-dev] [PATCH v1] test/ticketlock: use C11 atomic builti= ns > for lcores sync >=20 > On Wed, Apr 21, 2021 at 02:17:33AM -0500, Joyce Kong wrote: > > Convert rte_atomic usages to C11 atomic builtins for lcores sync in > > ticketlock testcases. >=20 > gcc atomic builtins aren't 'C11' Sorry, I did not understand this, can you elaborate? I am referring to [1]. [1] https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html >=20 > > > > Signed-off-by: Joyce Kong > > Reviewed-by: Honnappa Nagarahalli > > Reviewed-by: Ruifeng Wang > > --- >=20 > the change makes this code less portable to non-gcc emulating compilers. >=20 > please don't. Not sure if these compilers are supported in DPDK. DPDK officially supports= gcc, clang (not sure on icc).