Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2587276pxt; Mon, 9 Aug 2021 04:20:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWwu/1GU4SrDE5lJ9orJNBFHePnXMKWlkeriBk/OoEaZVOYctGT9KZmcH+MMH0vIHs4/Dq X-Received: by 2002:a17:906:a018:: with SMTP id p24mr21804945ejy.349.1628508027575; Mon, 09 Aug 2021 04:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628508027; cv=none; d=google.com; s=arc-20160816; b=brXpMm8HfdtJ1WZSOxa4HJm8BJW1zjsM9lz94Tn2mf0SW43PFlsKZbIr6w9V6SBz+6 iitcW73w8n1fepsmMU+QUXhh6E+fzi4liHOD7rvqZL+M11U5NqGIdZ03dTZIlFTgT3ko QPzABZj/Y0OgKYrrzFIckuGZOGdmupo3H1nousuy1pblo+YpfkVs7u62jip2fjSmVqVO DQgSIUtWUHPhMwo/QmQb1iWfNsogdiPofK3Fa7YAmbl6q6xec7TseDXmgs6/5p2YtKEp 8pZ0s6pQbgh+Vc42m+ozxSMInRk9zPQ3tulf7xAnbb7KhGRHJhTWDlrQ18zy967/ZLeE fcEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LPazFJ4r8q67LCTGt2fdXct+L4YxBkcY5QLx/BSTmrQ=; b=Guac7rUTYGA5Rf35lb/snUJsyUFdA0BkJqmHC8loy+dtu8Q4KcOp8HB22TRtcUN3Pg lWrPgeAxpkpZfXK++pbHW7nLdwJ82DIfRooa5Fso3wo1rbxzzmncEpg4wmiG8QdnqPOO 1NpEKPXynPZDnhXzPdBL5ruH0QdIbOpwnt7ow975j7vRb4smfy4YmuVqdny1VgRDwje0 mLcUIvWUg5NLaP06tAJi6iLVblx3JpQ2wGywF7/UjrxfFOyoP4XzGSpQZMnFSt4Q2UR2 fLPt9rslrfmzsYHenxSJvIRvMKXySomLJoglxwscSbkI7uk/sxKOdeJ8hASsZGrvZsSj m2BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y37NeWeM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si22075207edm.47.2021.08.09.04.20.05; Mon, 09 Aug 2021 04:20:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y37NeWeM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235075AbhHILQO (ORCPT + 99 others); Mon, 9 Aug 2021 07:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235098AbhHILQG (ORCPT ); Mon, 9 Aug 2021 07:16:06 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CACCCC0617A3 for ; Mon, 9 Aug 2021 04:15:42 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id j1so27319749pjv.3 for ; Mon, 09 Aug 2021 04:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LPazFJ4r8q67LCTGt2fdXct+L4YxBkcY5QLx/BSTmrQ=; b=Y37NeWeM8ygxFN4RiHvbkan+MaeJwrFayZTpBNaCeDDH8fKKm4bpBNKixRxVrqFS7Z dxeNKAzOAoxVahIuXzem57PUjcJjPegN3KJMMl1pUooq/DbOBHAi71oJhXadH+zDS8/g IPA4uUq63TLJQJGLobhD91tzGzhhekRTD/U5llmlwOdEQT7G9yrHCGE77ee2uvidGAN5 hmO7ThrnPz7GKvts73DCbSA3ZQrbZI20YpvQoZJzPQOrinBU0P6xtrHRc1PZLpcUCPIR EkN9+574DjseV6Ppp06abJEvAWMtGiLs5RIq3L5NQa6J/E2vJ3zvs+CZyGZAVt1CchPh 0eXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LPazFJ4r8q67LCTGt2fdXct+L4YxBkcY5QLx/BSTmrQ=; b=jjZL4+bply6giCZWkte3QzkkERUYbdLN5WOnbqcZnEV4INKVLI6ROwi6QuEpepk5h0 28vwPNXW1WickrG31UVpKQG++Zjocbfs+e3ysJLsoVmPvOezNml6pb9LopqlZLNi4NRv jJxyxeF5MCarJyIQv/7ilklaZf/8wWKVW+cmHSe5gXfDXzJHqbpmf9Nac3D9OOCIe6M8 sj+D02NFQ4tNAD3WwkDvLi4/e65G962UiBP0UpniVLPvorfjGcsxNcWjST/YNjpFv25y gTS9V6Jw5D2d7avNRkzQ5DmxuaseHw7cJzxEkq09zB1oQHluRa3Yb3+9U4nued8lNQi+ S32w== X-Gm-Message-State: AOAM5300Eol5G3kQZmwbe+LSAnoVK7H3a9mB0O4f6ixuBCTpcByuIsPh wwsdjnn/7V2BbISJtTjyj3xcrA== X-Received: by 2002:a17:902:d114:b029:12d:4202:655a with SMTP id w20-20020a170902d114b029012d4202655amr215137plw.0.1628507742274; Mon, 09 Aug 2021 04:15:42 -0700 (PDT) Received: from localhost ([210.0.159.74]) by smtp.gmail.com with ESMTPSA id b10sm19656631pfi.122.2021.08.09.04.15.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Aug 2021 04:15:41 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , Peter Zijlstra , Adrian Hunter , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Michael Petlan , "Frank Ch. Eigler" , Song Liu , x86@kernel.org, =?UTF-8?q?Daniel=20D=C3=ADaz?= , Andrii Nakryiko , Alexei Starovoitov , Sedat Dilek , Andi Kleen , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org Cc: Leo Yan Subject: [PATCH v5 9/9] tools: Remove feature-sync-compare-and-swap feature detection Date: Mon, 9 Aug 2021 19:14:07 +0800 Message-Id: <20210809111407.596077-10-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210809111407.596077-1-leo.yan@linaro.org> References: <20210809111407.596077-1-leo.yan@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the __sync functions have been removed from perf, it's needless for perf tool to test the feature sync-compare-and-swap. The feature test is not used by any other components, remove it. Signed-off-by: Leo Yan --- tools/build/Makefile.feature | 1 - tools/build/feature/Makefile | 4 ---- tools/build/feature/test-all.c | 4 ---- tools/build/feature/test-sync-compare-and-swap.c | 15 --------------- 4 files changed, 24 deletions(-) delete mode 100644 tools/build/feature/test-sync-compare-and-swap.c diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature index 04a8e3db8a54..3dd2f68366f9 100644 --- a/tools/build/Makefile.feature +++ b/tools/build/Makefile.feature @@ -34,7 +34,6 @@ FEATURE_TESTS_BASIC := \ dwarf_getlocations \ eventfd \ fortify-source \ - sync-compare-and-swap \ get_current_dir_name \ gettid \ glibc \ diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index ec203e28407f..eff55d287db1 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -9,7 +9,6 @@ FILES= \ test-dwarf_getlocations.bin \ test-eventfd.bin \ test-fortify-source.bin \ - test-sync-compare-and-swap.bin \ test-get_current_dir_name.bin \ test-glibc.bin \ test-gtk2.bin \ @@ -260,9 +259,6 @@ $(OUTPUT)test-libdw-dwarf-unwind.bin: $(OUTPUT)test-libbabeltrace.bin: $(BUILD) # -lbabeltrace provided by $(FEATURE_CHECK_LDFLAGS-libbabeltrace) -$(OUTPUT)test-sync-compare-and-swap.bin: - $(BUILD) - $(OUTPUT)test-compile-32.bin: $(CC) -m32 -o $@ test-compile.c diff --git a/tools/build/feature/test-all.c b/tools/build/feature/test-all.c index 464873883396..920439527291 100644 --- a/tools/build/feature/test-all.c +++ b/tools/build/feature/test-all.c @@ -106,10 +106,6 @@ # include "test-libdw-dwarf-unwind.c" #undef main -#define main main_test_sync_compare_and_swap -# include "test-sync-compare-and-swap.c" -#undef main - #define main main_test_zlib # include "test-zlib.c" #undef main diff --git a/tools/build/feature/test-sync-compare-and-swap.c b/tools/build/feature/test-sync-compare-and-swap.c deleted file mode 100644 index 3bc6b0768a53..000000000000 --- a/tools/build/feature/test-sync-compare-and-swap.c +++ /dev/null @@ -1,15 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include - -volatile uint64_t x; - -int main(int argc, char *argv[]) -{ - uint64_t old, new = argc; - - (void)argv; - do { - old = __sync_val_compare_and_swap(&x, 0, 0); - } while (!__sync_bool_compare_and_swap(&x, old, new)); - return old == new; -} -- 2.25.1