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 B020E43268; Thu, 2 Nov 2023 04:04:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1FB6542D0B; Thu, 2 Nov 2023 04:04:38 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 164D8402DE for ; Thu, 2 Nov 2023 04:04:32 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id F190C20B74C2; Wed, 1 Nov 2023 20:04:30 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com F190C20B74C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1698894270; bh=QTwwIGjczf0MYPVx9s/KDp/wlnwDvSwbtpUhZ3lmAU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mxHDqPa3XF6uMRl0Fi4LqPVGPSH300Kl4qPxEvNSX3fM8UsastbNxOy9BU7KISrZ9 CwsihDDJP+E5+zMvUVXjfKIabJyZQKDFGErSmYtFR4PPt7H7jI0VN1d7dn+GQdzRkE gcIbheWpTD9NvKmUeXqtO9ipSz1So2EdAESaLZy0= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , David Hunt , Honnappa Nagarahalli , Jerin Jacob , Konstantin Ananyev , Sameh Gobriel , Sunil Kumar Kori , Vladimir Medvedkin , Yipeng Wang , Tyler Retzlaff Subject: [PATCH 2/5] eal: use rte atomic thread fence Date: Wed, 1 Nov 2023 20:04:22 -0700 Message-Id: <1698894265-22963-3-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1698894265-22963-1-git-send-email-roretzla@linux.microsoft.com> References: <1698894265-22963-1-git-send-email-roretzla@linux.microsoft.com> 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 Use __rte_atomic_thread_fence instead of directly using __atomic_thread_fence builtin gcc intrinsic Signed-off-by: Tyler Retzlaff --- lib/eal/common/eal_common_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eal/common/eal_common_trace.c b/lib/eal/common/eal_common_trace.c index 6ad87fc..4a09cbf 100644 --- a/lib/eal/common/eal_common_trace.c +++ b/lib/eal/common/eal_common_trace.c @@ -526,7 +526,7 @@ rte_trace_mode rte_trace_mode_get(void) /* Add the trace point at tail */ STAILQ_INSERT_TAIL(&tp_list, tp, next); - __atomic_thread_fence(rte_memory_order_release); + __rte_atomic_thread_fence(rte_memory_order_release); /* All Good !!! */ return 0; -- 1.8.3.1