From patchwork Wed Feb 14 11:39:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 200930 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1152544dyb; Wed, 14 Feb 2024 03:49:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUhmHVO5unCb6NPbY5d/namGZGONePKJPVHi7L7WqRYWnvqi3wM09kX+hhC1vkiMFCw7ass12NwPmgwI4GkeigfpDl0eA== X-Google-Smtp-Source: AGHT+IFRRVpHFxPiVMppamfHRVvNJ2ZnfWVZY9yY9lWHGWeS03TrqqK1XHip2/6+QUVQecpRZiAd X-Received: by 2002:a17:902:cec2:b0:1d8:ab27:d76c with SMTP id d2-20020a170902cec200b001d8ab27d76cmr2627862plg.51.1707911375407; Wed, 14 Feb 2024 03:49:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707911375; cv=pass; d=google.com; s=arc-20160816; b=L15TKRNznKKq4jSvsmzNIxsjn5QZvrmb2QY5+XGF+68bYSTfViam5ysRFSy7Mgd1y7 UdHAeWsR0lKZWzb/hHKKr24/EujLFIIQxO3PVjxM1navdSBpd8NcbZf3Pvbc4+orSiT/ olg2/uyKPHvb69i0Z1HNEBr0K26n7bzXJKrjj5AFql/C/kNdyktRY1Yw2Dy0NTQ0bCOw 8GuHLUNHlxMx6E/dEgqbpkXz7wDiFor3RGEXYt3Br0kbxvnzRDkDXN+FrC2R89LgV/JO iLcLJQ4UMbg6s1bPKJmcCVy56Hg68SUkG1zGUk5yB19NTIDxkvUT4LcqEVOrWcDw6sj5 uUbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ceIPkkMA3m3CUBnXP3Si9TKYLZlh1ovGGEt5qyffvMM=; fh=X04ESCXm733n3RyMTcYpPqB9XeWAVE9fEjXGvhbPYzg=; b=bbCVuJaQ8PdvTDssYiTnNwd96xNmh63cyvy33haPoRYswZ+eRC3cYtl8yz7AfCTU3S yWfXXEfLOAoA2Qyy4jjHBfWKquCeXOv8oez0Zetj0a2nNQG8Daq8n3DLRkTmpreo3aYd kbQmHur5qO237cUx8A5QaJy1seHgmXX14ncrG3XGel6C9ucJrzgEJ0BFjMOyEAqh7fuf N4w479io/mq9LQqyXPihFmNZ2pdm0nPVrrG8aAdsrdLys38qygp/LmnrbCLQ/dPpnvIO w8qk0r3we7KbAk3I3/iHzK+4H4i5xFduv/qIvGkGOpNoygItwf0bK+Oiu4iKCFJZ/gwc lXfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Vg3hlHC9; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-65152-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65152-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=2; AJvYcCUiksjV7pByt0AxKzezE9h7g5/FpyJIY7Bw24Y+WX0lz+Qc/g09tlOxhVABrmJQZo6naDSpO19c8vKdpydyHmgFm/qw3Q== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p5-20020a170902ebc500b001db5c13c670si1017923plg.495.2024.02.14.03.49.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 03:49:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65152-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Vg3hlHC9; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-65152-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65152-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7194D28FF56 for ; Wed, 14 Feb 2024 11:41:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 597B31BC5C; Wed, 14 Feb 2024 11:40:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Vg3hlHC9" Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50B791BDC4 for ; Wed, 14 Feb 2024 11:40:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707910843; cv=none; b=g5Rwz6cUqJcbYKvgd7galuM9+3cKZdSM5j3lZFUJi1s2OYBpHDxit81D5FfQzK76de7nq3X5iFuk4auY0mjtuzt659nbFJRoJlVSnAH2hchrzVf8GuBbORncvaYj6MMcqi1ZKJhOQArT+OIleox7hTdL0e9FC0URHqVm52Ps8eA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707910843; c=relaxed/simple; bh=msK7Neyo95sifG/SfnjBvM2eXJ30OW6/HO1CpcE+9n4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gxBd6/FG8M+L/doh98ETb8z56YwDJoTv5W9NRVkIXUWMtkc/JEwFuddTjGBOSgcw3e/P08tUHglI3vOnvcNW6nZYGZSlmPqyN7B8IVZP1Y6KR1/efSOJj6TH+OcFtrnktPLy2wxfukZ5Mk92U93f25V7vtxur0Ypf9LpwgqXqBY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Vg3hlHC9; arc=none smtp.client-ip=91.218.175.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707910840; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ceIPkkMA3m3CUBnXP3Si9TKYLZlh1ovGGEt5qyffvMM=; b=Vg3hlHC9ifATj2zwM4zqt65oYEOYkZjfvbjqdT7Vp7OLdAAhGPY8detKJ1ebR0CveIPXFl hPFbjlGoQ7ZhrUFFq6IWLcmgfTnjG4PuMg9WVQrJMe+jxmkeYjwVG/8+Hk5i9PRfmBeMR4 kiAH5tHAI0XeIRT9JImIt+/xV7SeY5g= From: Leo Yan To: Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Ian Rogers , Adrian Hunter , Alexander Shishkin , John Garry , Will Deacon , James Clark , Mike Leach , Guo Ren , Paul Walmsley , Palmer Dabbelt , Albert Ou , Huacai Chen , Ming Wang , Kan Liang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Leo Yan Subject: [PATCH v1 4/4] perf build: Cleanup perf register configuration Date: Wed, 14 Feb 2024 19:39:47 +0800 Message-Id: <20240214113947.240957-5-leo.yan@linux.dev> In-Reply-To: <20240214113947.240957-1-leo.yan@linux.dev> References: <20240214113947.240957-1-leo.yan@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790874878754891190 X-GMAIL-MSGID: 1790874878754891190 The target is to allow the tool to always enable the perf register feature for native parsing and cross parsing, and current code doesn't depend on the macro 'HAVE_PERF_REGS_SUPPORT'. This patch remove the variable 'NO_PERF_REGS' and the defined macro 'HAVE_PERF_REGS_SUPPORT' from the Makefile. Signed-off-by: Leo Yan --- tools/perf/Makefile.config | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 8b740c668ab7..7de7111c0226 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -28,8 +28,6 @@ include $(srctree)/tools/scripts/Makefile.arch $(call detected_var,SRCARCH) -NO_PERF_REGS := 1 - ifneq ($(NO_SYSCALL_TABLE),1) NO_SYSCALL_TABLE := 1 @@ -50,7 +48,6 @@ endif # Additional ARCH settings for ppc ifeq ($(SRCARCH),powerpc) - NO_PERF_REGS := 0 CFLAGS += -I$(OUTPUT)arch/powerpc/include/generated LIBUNWIND_LIBS := -lunwind -lunwind-ppc64 endif @@ -66,41 +63,27 @@ ifeq ($(SRCARCH),x86) else LIBUNWIND_LIBS = -lunwind-x86 -llzma -lunwind endif - NO_PERF_REGS := 0 endif ifeq ($(SRCARCH),arm) - NO_PERF_REGS := 0 LIBUNWIND_LIBS = -lunwind -lunwind-arm endif ifeq ($(SRCARCH),arm64) - NO_PERF_REGS := 0 CFLAGS += -I$(OUTPUT)arch/arm64/include/generated LIBUNWIND_LIBS = -lunwind -lunwind-aarch64 endif ifeq ($(SRCARCH),loongarch) - NO_PERF_REGS := 0 CFLAGS += -I$(OUTPUT)arch/loongarch/include/generated LIBUNWIND_LIBS = -lunwind -lunwind-loongarch64 endif -ifeq ($(SRCARCH),riscv) - NO_PERF_REGS := 0 -endif - -ifeq ($(SRCARCH),csky) - NO_PERF_REGS := 0 -endif - ifeq ($(ARCH),s390) - NO_PERF_REGS := 0 CFLAGS += -fPIC -I$(OUTPUT)arch/s390/include/generated endif ifeq ($(ARCH),mips) - NO_PERF_REGS := 0 CFLAGS += -I$(OUTPUT)arch/mips/include/generated LIBUNWIND_LIBS = -lunwind -lunwind-mips endif @@ -161,10 +144,6 @@ endif FEATURE_CHECK_CFLAGS-libopencsd := $(LIBOPENCSD_CFLAGS) FEATURE_CHECK_LDFLAGS-libopencsd := $(LIBOPENCSD_LDFLAGS) $(OPENCSDLIBS) -ifeq ($(NO_PERF_REGS),0) - CFLAGS += -DHAVE_PERF_REGS_SUPPORT -endif - # for linking with debug library, run like: # make DEBUG=1 LIBDW_DIR=/opt/libdw/ ifdef LIBDW_DIR