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 0EFCFA0C43; Tue, 20 Jul 2021 05:52:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8BEAF4068B; Tue, 20 Jul 2021 05:52:00 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 5933A4003F for ; Tue, 20 Jul 2021 05:51:59 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 874791FB; Mon, 19 Jul 2021 20:51:58 -0700 (PDT) Received: from net-arm-n1sdp.shanghai.arm.com (net-arm-n1sdp.shanghai.arm.com [10.169.208.222]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2E06A3F694; Mon, 19 Jul 2021 20:51:54 -0700 (PDT) From: Joyce Kong To: thomas@monjalon.net, david.marchand@redhat.com, roretzla@linux.microsoft.com, stephen@networkplumber.org, olivier.matz@6wind.com, andrew.rybchenko@oktetlabs.ru, harry.van.haaren@intel.com, honnappa.nagarahalli@arm.com, ruifeng.wang@arm.com Cc: dev@dpdk.org, nd@arm.com Date: Mon, 19 Jul 2021 22:51:17 -0500 Message-Id: <20210720035125.14214-1-joyce.kong@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210616025459.22717-1-joyce.kong@arm.com> References: <20210616025459.22717-1-joyce.kong@arm.com> Subject: [dpdk-dev] [PATCH v3 0/8] use compiler atomic builtins for test 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" Since atomic operations have been adopted in DPDK now[1], change rte_atomicNN_xxx APIs to compiler's atomic built-ins in test cases. [1] https://www.dpdk.org/blog/2021/03/26/dpdk-adopts-the-c11-memory-model/ v3: Change 'GCC atomic builtins' to 'compiler atomic builtins' as clang adopted the same syntax as GCC. v2: Use rte_wait_until_equal() instead of original sync loops. v1: The initial version. Joyce Kong (8): test/ticketlock: use compiler atomics for lcores sync test/spinlock: use compile atomics for lcores sync test/rwlock: use compiler atomics for lcores sync test/mcslock: use compiler atomics for lcores sync test/mempool: remove unused variable for lcores sync test/mempool_perf: use compiler atomics for lcores sync test/service_cores: use compiler atomics for lock sync test/rcu: use compiler atomics for data sync app/test/test_mcslock.c | 14 +++-- app/test/test_mempool.c | 5 -- app/test/test_mempool_perf.c | 11 ++-- app/test/test_rcu_qsbr_perf.c | 98 +++++++++++++++++------------------ app/test/test_rwlock.c | 10 ++-- app/test/test_service_cores.c | 36 +++++++------ app/test/test_spinlock.c | 9 ++-- app/test/test_ticketlock.c | 10 ++-- 8 files changed, 91 insertions(+), 102 deletions(-) -- 2.17.1