Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2131433pxv; Sun, 11 Jul 2021 03:44:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMHwJRkkvIZuB0Dy3kkGynehW3iznSvLd0j4/tIoVD/THUm2HVt2UCoOcNeGVutRoT67ek X-Received: by 2002:a05:6402:334:: with SMTP id q20mr6711359edw.384.1626000246768; Sun, 11 Jul 2021 03:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626000246; cv=none; d=google.com; s=arc-20160816; b=L82Jbl2NHmz7sgB3Cu1gvoQhD5XmfVCGc/IAK6HuUv2zFsAoHg1NmfYKh5QTMEGuAR vLsmY+sgZmiCaZFrkpRlFuzLM1Rum2FTlTTBNlF44cZ8WnFxWYoHnWwCE/yuRMJNwwdQ 4iVwOXTl4k3+btaqGMy5K0Ng+rFWxZ4zNRxu872I5+EzP9raAzknPIu5dHfj+WRVx/c7 qjyzlo8jhAU6uuz5f4sBADV5ZqD27Xa3/tQdb0aBR0z9H1MuwNYuX5MhZH7PlzwKPV3Y JUSosjH5yjeYEBzYNv0Qv1pKLNUBO6IT9jvMxZtJnqPePOMb+7TQJ4fd7ZJKTiSb70Zg khkQ== 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=UMb8nMe+W2saymcMaWbl/oKjskVGlJt9NCw4ZfUzv/LNQQBjiGKzvTRgnp++Ctz2qX KGGaY2xAGJ/q8obYgnwcHF9J5woSg8Anw2/lNJLvPHfpVJnwO2dOtAScUDdHb+uXGEqC zM8rrjv5GIMlPVKHU2LPAPL4j3mhUEX+LHYcrLeCOeFSiTi8U4FqNc2dBPTINK/4lc95 v9EWRcEb0Lwomllc3oRa/XsaY0qyzdzljPyrgsdOGAaqL9IdOu40UBrnDceycuH/k0N4 XmVV8OLK9wS7CU2uOUK8Fpg+7sOmFuBq18aq+xob63j71JNmJpo1QiQMKSewj6MDu3cc U19A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=POvLLo4c; 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 q2si4485650edc.346.2021.07.11.03.43.44; Sun, 11 Jul 2021 03:44:06 -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=POvLLo4c; 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 S232640AbhGKKod (ORCPT + 99 others); Sun, 11 Jul 2021 06:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232623AbhGKKo3 (ORCPT ); Sun, 11 Jul 2021 06:44:29 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DA9BC061786 for ; Sun, 11 Jul 2021 03:41:43 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id p22so400372pfh.8 for ; Sun, 11 Jul 2021 03:41:43 -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=POvLLo4cHkWQlMAsLQ4Y9JpAuqI1FU+6UmXnb8T6wONYc1quoDbOal1BKMsRaoWMLI 2tU94Nw0RiwIvRb/uzrwla4KSNUP6QXgiL38agwG8J9ly8dMUFKHoUriKWWqhaLB+PFO ytG8fe+mo/Oe8BpVaJGb6cJhRkKD4ik9TOh8sNDaAGk9s21p/NXV+hNuym5T+ZxE3utr M2WKoakee71J8E43t7Bm0OPLCu+Nu4aa61gEpmo3UvvF9L7oUjB0/V172k6hpVVytFF6 IlyYSVjs3Q8DjFrN6tqXry+5+YMnMwpJ7+rf3HMf6AwRpQImiztGNS0pe/7xwueIOiGY wBIw== 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=QZPbXNJaPVcybpuxN/NbUPMjiEzxUDLpH4fMSEiF70xwfCyBtt20kvOuZV9XXiv0nF qtqd1ZdS+uTVFGh5yvSjj8562K6qBTx+USmHkfRnBAC/PP5uwUOGATpUxTq+wexT5EPT qdxDOJ+T6yCcvOqMDf3Q1hbjt34elPGpN/vgCfVoZg+EAG/VZLnriGk67OfS8MvIdfeD ADgxO2Gok33ENEDf46SY0HaqULivbkDfwAKZsn/6alzeKIBogr54gP13v1+VHGohdyGw otF302mTlwHIG0GKS0r7lhB/sZe+pLaFqLPofTawLnej9vDFO9E73/7WS2gwyFgPGAfO MYpQ== X-Gm-Message-State: AOAM531hL1qwER7+azlvlLThJlqZ5KxrzXiv5UOsPHN9BNjphyXaOjPj dFkLZITaBvuEeOfqFaCeMwl7+A== X-Received: by 2002:a63:cc0c:: with SMTP id x12mr46939866pgf.1.1626000102841; Sun, 11 Jul 2021 03:41:42 -0700 (PDT) Received: from localhost ([103.127.241.250]) by smtp.gmail.com with ESMTPSA id e16sm14171739pgl.54.2021.07.11.03.41.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 03:41:42 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , Adrian Hunter , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Mathieu Poirier , Suzuki K Poulose , Mike Leach , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Cc: Leo Yan Subject: [PATCH v4 09/11] tools: Remove feature-sync-compare-and-swap feature detection Date: Sun, 11 Jul 2021 18:41:03 +0800 Message-Id: <20210711104105.505728-10-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210711104105.505728-1-leo.yan@linaro.org> References: <20210711104105.505728-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