From patchwork Sun Jul 11 10:41:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 12369099 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=ham 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 40570C07E96 for ; Sun, 11 Jul 2021 10:48: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 0B33961184 for ; Sun, 11 Jul 2021 10:48:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B33961184 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=aZVXbtuEIFjcWJGAk+nrZbQASoGazY7GBjXkIk65ciU=; b=X8lgt6sHbuURb4 abSBMAmrYlXE+wNTSBM1IRZsGuWltSKy1Xt+63dhfFRpZD5IZ6uRXVpFo0uB90DcjQd70f2gGDc2n awzhWjMNKfOReHtPiEf0S0yuQRdQnzuFuZ0sRfWuSrDLhFBUNyv6VQBPsAmrMfxtq5YYrwDMRub0G 4JLAZahJwbS8jcn/udJ2mgW39yw1POkIZqHjIwLr7ZokObpiwOachYwO/XKRMsIKjfH3z5UDqvrUD UWYNs8SLucJriaty91IJeHlxouca9uBHCOYkTbqQOzoJVt4tuSpQv3WanzS8oL1D56i6AUgF8S8Jz 6eZGprvbo6/8ARRcfNIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m2Wyy-004uCm-Tm; Sun, 11 Jul 2021 10:46:45 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m2Wu4-004sJk-S6 for linux-arm-kernel@lists.infradead.org; Sun, 11 Jul 2021 10:41:42 +0000 Received: by mail-pl1-x636.google.com with SMTP id a14so7491633pls.4 for ; Sun, 11 Jul 2021 03:41:40 -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=tg4kPboEv8a50CVYTi4+9WCNhiUYVPJPPco+6cKmUZQ=; b=HBfB6xTheoC7W0jGr+IND8Dc+xf45Pl4OcIdBANA/8KAHA40loCVDsuKThFnuNVIC7 pA/NI+MDKq0puehth94k8+z1drCCyeoV1PmoRIyjWyWvj9nvm6GXUcW6fDpJighzoIlT 8DNU7dA3WPIM53WaZJ1WKak++KVGOOxwkUAXcmi7TFuFQF3/mbU5iUrYg25rx2h4R4Vr flb/MSUKIaa0ViTcqMILHNZG6Kt3yd3xu7Y7PtF3RfIDN4X4wp9r7TJSmtTz+SS7v5j5 U+FdXE3TVXoaJ7t+b9WQebJgHR1J8YvydRO071Ht0duDxCxp2Kp57hz4UUuvTQcEAA9A Wm+w== 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=tg4kPboEv8a50CVYTi4+9WCNhiUYVPJPPco+6cKmUZQ=; b=hRm/YaldgzFU21U/3urxMXsdjJ2oOp8isr77JehJ7EMb2Fy3r7ha+3nZ7rDzVh38Q+ 5MEsa94bDIMjYDXZJL5QeOS1dZ136Ffd4kOObsHUkLca7OQ8KZklzvp4l+GHBi+14IQU tDWVbTPM96QtTGH1Vz6xFK9vE590Bc4lZ+8eR6uR9xDhUZx0JP5+zLJ47Qbsgx3c3ZpR Tr9bHXIFXMiZF6P9yuySakGSLx3YbBXysKcgj/oOoAiOrxlJEmFqs4l/q5L+ANA/t9ff V3o7uo3NP9MratrEg3LLIAlxsk4FnvzPZEVvj5zKQaTrpzUoUG/qW8rNrlzxBlf3wnn4 iEvA== X-Gm-Message-State: AOAM533Nh22EPkaN6M1N8CESUComP8L94tpXmxXMDQ2mWpIJ+5+rnsIl gqwBAQohwcMnSwrJXM2N+XBAwA== X-Google-Smtp-Source: ABdhPJyFP2IA4WrbAagQhrSQ1fhtt8nGm2nPWr+r4ifwYH2PuGscAo8Lee8kFXCZKI3R9atYNv+UiA== X-Received: by 2002:a17:902:8d98:b029:129:18e5:8c31 with SMTP id v24-20020a1709028d98b029012918e58c31mr38737450plo.3.1626000100000; Sun, 11 Jul 2021 03:41:40 -0700 (PDT) Received: from localhost ([103.127.241.250]) by smtp.gmail.com with ESMTPSA id c136sm12182066pfc.201.2021.07.11.03.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 03:41:39 -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 08/11] perf: Cleanup for HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT Date: Sun, 11 Jul 2021 18:41:02 +0800 Message-Id: <20210711104105.505728-9-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_034141_001977_1B17322D X-CRM114-Status: GOOD ( 12.46 ) 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: , 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 dropped, This patch removes unused build and checking for HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT in perf tool. Signed-off-by: Leo Yan --- tools/perf/Makefile.config | 4 ---- tools/perf/util/auxtrace.c | 5 ----- 2 files changed, 9 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index eb8e487ef90b..4a0d9a6defc7 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -349,10 +349,6 @@ CXXFLAGS += $(INC_FLAGS) LIBPERF_CFLAGS := $(CORE_CFLAGS) $(EXTRA_CFLAGS) -ifeq ($(feature-sync-compare-and-swap), 1) - CFLAGS += -DHAVE_SYNC_COMPARE_AND_SWAP_SUPPORT -endif - ifeq ($(feature-pthread-attr-setaffinity-np), 1) CFLAGS += -DHAVE_PTHREAD_ATTR_SETAFFINITY_NP endif diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c index 7958e17229ea..6a63be8b2430 100644 --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c @@ -130,11 +130,6 @@ int auxtrace_mmap__mmap(struct auxtrace_mmap *mm, return 0; } -#if BITS_PER_LONG != 64 && !defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT) - pr_err("Cannot use AUX area tracing mmaps\n"); - return -1; -#endif - pc->aux_offset = mp->offset; pc->aux_size = mp->len;