From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D094EC07E96 for ; Sun, 11 Jul 2021 10:41:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B94DE611ED for ; Sun, 11 Jul 2021 10:41:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232634AbhGKKoe (ORCPT ); Sun, 11 Jul 2021 06:44:34 -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-Google-Smtp-Source: ABdhPJxB9gRNxabK5m9zDDqBPjCJQYStcE6pZh/+2ENwklS8HlAU8vKuEB6cKafXlP6K7pQJO8CTHQ== 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13D53C07E96 for ; Sun, 11 Jul 2021 10:49:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CF22F61185 for ; Sun, 11 Jul 2021 10:49:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF22F61185 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hoz/QTh6f6k2EWYcQ6HsS9gtlaWh5lQMw2+6VcR+4QA=; b=Vo0FM+/RmtjCjh VkrvYFToYfyE3wi0HhDmuXKeLFJEfHzzRSSB/kPu6KLNv/bfTh3xXe6uAlccx/brU2gp+FU0spoYt STUzZUoPcvICWRmPtBEZyEYO8A+AaHJaVKQz2xJ3goIpwj1OBGqm3BlKzhSIjRnxVvPtVWvsxylqx MxzRiyx9Y8lWFaIengv0tGf/+pDVmKxK6ev/KDCDdWpmwY9teRLJi4zHJqnZ9bxlbQ0ByP53WCO9g tiaFBt8odr0fZDbPJRQWL/7k1NYEpZ4360S0tUUsrleaKOd4NIsF1y0JPA63z+9xj9uKEggpJo3LL alAWfWYiqnNUOIz10/cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m2Wzi-004uSO-6o; Sun, 11 Jul 2021 10:47:30 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m2Wu7-004sLS-PQ for linux-arm-kernel@lists.infradead.org; Sun, 11 Jul 2021 10:41:45 +0000 Received: by mail-pf1-x42b.google.com with SMTP id j199so13357418pfd.7 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=Xm5eASGmQnaMP7od2+7wlnqUqgXaZjMZ6sWhUySs0ItsXY7nSCgNlgf5kMnMErRh1T 6sQ3RrF0SVt0GbppZfz8PFmY4eH7Y0h+MyyAvHG5WmXdpaB/qx//Z4H2gygGAe69QU8j lkorh3G55PPQY7kHvCcXTMOYNMwkrcOzEu8k5T0g4X1lQRmU6oZLM4/+X/Ga3rIuZ5Zi hejjiuL/gBV2h+MD8MwMo1sz+MkLRbMMJrGPe2KKpAP0yegaQlQlduX5kYsmmxsi3f4o 2ENIt2iu6f/5KPj0z9i10McEAyYtkayPkwZXutbd7EOyyHxpNUsqBgPof2b3rPRKY1ms FX3g== X-Gm-Message-State: AOAM531jV+FVwPKqO5k1quZCgs5ATD6uSuFAm0H9utVrM0kqx7nYw6Ei wVWMRm1oodVO/mTeC1Xq+i2yXA== X-Google-Smtp-Source: ABdhPJxB9gRNxabK5m9zDDqBPjCJQYStcE6pZh/+2ENwklS8HlAU8vKuEB6cKafXlP6K7pQJO8CTHQ== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210711_034143_873576_A9AD37DD X-CRM114-Status: GOOD ( 15.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel