Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp510127rdh; Wed, 14 Feb 2024 03:49:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWZSRs/RqWuJ9j+/N17hRbuh3M7PY/W/Df/7QH3sykSd+oPnzKds9tf1qU/DLxNmJAeMXp4lR0sL5ZZUlkEXMMXPQKL5tYZQfumuRZSZw== X-Google-Smtp-Source: AGHT+IGEsHywHYl7Y9Ov158vDMP/lojrk2UAtBsxtBe5VFkDsv/iiU/CVjtgMd3K39336VOwtUSC X-Received: by 2002:a05:6871:520e:b0:214:82c6:ee14 with SMTP id ht14-20020a056871520e00b0021482c6ee14mr2570856oac.58.1707911388263; Wed, 14 Feb 2024 03:49:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707911388; cv=pass; d=google.com; s=arc-20160816; b=D6h4OQrD0HJfT2IDWsNAAn4gBWMZFQ8tIlYLnH5KydYNrhcQAArNyyDwZLwJBzTLnS 00FR+1zof6fBogDZLbmbyb8X2AM8ce5eL/FWkhs5Ai4pvgjJOLDeeVpxF1jZTePKf62o WV6xkTas5N+fLQUK8g0/hYLfQVuNb24RIQw7L0w0W9sCj9dR1hQ8WGjzBb8ptVqgj87S VzRcJ+k9UiwlIfLLhXdyjVzaS1j2iGdK7N/lbq1OtW0HLUokL3xWC7tQxLktDtvTTXYP xg+CVMybXt/zF5n2aKJ1lD4k9k683J/BFUkwmHfdIhc2DDpqe+S0kgijKmLbT4JUh1EC fQzw== 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=RmQ3p0t0CxpULVpgCeiFVUYtVvB9nTzhBFi8yY7qkek=; b=uuRTJ+6sPHVPvwGZ4GDnXk4HeekxAgdWkEkIDuTUMszTRi2YoRKHcmWwqQKPAtLwm6 kCeLI/OtgvhZTVM6EJDjyHRQrNJS8MVtyRjSYNilRbUxA49UE2EQ7SSvrW/3qn8sV6z3 nmNw33xo52HWPLNXluuhJx/d7czIEnHnIvI1cEyvJDvu+EjxXNfhjYqfsYMSHm/pCm2U AjWxfQ/+BT2hDOMDEfg/HiAccXku3G7st7ZQlqRpJt/pxJ9zF0ESwvNx7KOh+2SA9Mvp 9LkbzcOjMFEQs0qTZ7iuZa6lIDOdMhG0HZ0LfbDDf/vr7ViA6jIrtaPBtnogKEZthXKk SwvA==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=2; AJvYcCVWV/mkQvi9n33oFRxwSo+0LoM2qxNa79+1NUYVp5Lw+e3CrFnh5AjoMKYnXMCef4wzaZ1u20KMVxYyG8dsAIhMGdBAZoLRxyfWNGewCA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x22-20020a63b216000000b005dc81eca35csi3142922pge.819.2024.02.14.03.49.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 03:49:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65152-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65152-linux.lists.archive=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 3BE9E28FC7C for ; Wed, 14 Feb 2024 11:41:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 954511B59B; Wed, 14 Feb 2024 11:40:44 +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 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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 -- 2.34.1