From patchwork Wed Jan 22 17:43:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 13947607 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E326A21ADDB for ; Wed, 22 Jan 2025 17:43:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737567828; cv=none; b=VAtf/RNkhCMFyqvih3W4b1i3bWtRe17613zba6SNAlWksl2uoVkWQyFRoTdr64Tg/hJr+L8bGAPiRoO3PIZxy2f5HqhMfKZOOqcFwe1FsQSBBov8PCNyJ0RYKbPUTa7p9FCP3Ut+BPsjyNHMY1ajobA+HVcd7NzAzd77neajbmk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737567828; c=relaxed/simple; bh=9GHPNHyvRxxMxBGIIob8u2neND2k/95QMi/45gOynCo=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=EqtdAwX896Ng5bTxRGIalNwWqy+YW+i3KC7eL9v5ltANqKSe4lJJp/t0gqq3xx0CIlyGEDK+OkdMCreIXFmklhFh+oullndqKHaQpUszUMlgG/gX8PhYgoyBxf9hVbIAW6VkC0KrOTmfd19Cq7gQX/LR9TiixoB45FtyXX6hfkk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=mgY3Yvnc; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mgY3Yvnc" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-e572f6dee18so16264276.0 for ; Wed, 22 Jan 2025 09:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1737567826; x=1738172626; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=DKH3yiTdGj08fSShzNsREAUyrrSH2fL/PhPrqngZihY=; b=mgY3YvncBGUZC5O+sw41ruzcDUEbmheiaHRXN6rYBs9irV7oqdc795NEAHw3lNnyTF QKu67URIZ7obZHIkJCFrhuT9PbJBHYV5A+5t8EyLrpqvEUFUjiEtvOvos0pV5HTYnrKv WUB6b4v62JnUxXg1auxfmbauhgUu+MuieHM0LVRCysy4X7xsh7yNkVt94jIlQvvIww74 rxDkqGD7a99D89ZycUgF8fpYU+dIEDLJDll9YzPHCLvZigZYUFJQ6ZD268T/TCQ5KUlu ZMncigLLakebvv1xicwMt5rDxqtg77R/O+GnZgLK5TNs2431vAb/oGGWNLJ7bllpHHwc oCBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737567826; x=1738172626; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DKH3yiTdGj08fSShzNsREAUyrrSH2fL/PhPrqngZihY=; b=VjvUKLW1SWgD33gSeisteWsw9/2hf49+FiASHsNvxXNyyqAFb7WiUgZG8EvvNnyba6 UXkbT6f7qekkKCWahks6Lf6H2cJkPZz3qq2do0E80P7hqfpYTtz9CaYyJ7uP2UMyEPbN heaNDklrrQ5QC810lI1JHTxG+UNJsDWafkhWwOj6Md2ZY7J8g9LbpBNbkspLF/HTgTYE WTIdX8AYNfs6xCgj93WY5hh3ZH89gqrDbVWgRacMI8vAeg+GryrvtfWGun+ODmLVxIJQ nvkYBpY/NQhdytrdkbsb1x9Re7Sd30aWdwWRIpq4vDKVr7HHTRktQfIhQme/Q5k3dzkk P9qw== X-Forwarded-Encrypted: i=1; AJvYcCVJ78lg/8VJ4RDHui16uVcZuwi6l83so72A9F4a6H9aB25g+tQeJ/1jb/iGlBkWoZ/sCVI=@vger.kernel.org X-Gm-Message-State: AOJu0YyIkK3HgRgXlf8Y21gbKaiVN7eQ8uzy1l8N0BrPsfvtvbeIUo+Z gp7FDDAJeE3KZVWl+7G7v4OWBjGLz8Q74Bva6psWGE90cQDZi1ZVm9zUNCzOb625OJwXdRUGG5t uffQ2Bw== X-Google-Smtp-Source: AGHT+IGkgldheuVJupTzX6Fn2FVkqpNrVggcg4lpMEETVTUUw5th46LrdjZLruG7yN68AX8sRQNCtrYz2Dr0 X-Received: from irogers.svl.corp.google.com ([2620:15c:2c5:11:807b:be79:d5c3:ee5c]) (user=irogers job=sendgmr) by 2002:a05:690c:61c5:b0:6f3:d334:b7e5 with SMTP id 00721157ae682-6f6eb92efbfmr570387b3.5.1737567826016; Wed, 22 Jan 2025 09:43:46 -0800 (PST) Date: Wed, 22 Jan 2025 09:43:05 -0800 In-Reply-To: <20250122174308.350350-1-irogers@google.com> Message-Id: <20250122174308.350350-16-irogers@google.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250122174308.350350-1-irogers@google.com> X-Mailer: git-send-email 2.48.1.262.g85cc9f2d1e-goog Subject: [PATCH v3 15/18] perf build: Remove unused defines From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Aditya Gupta , "Steinar H. Gunderson" , Charlie Jenkins , Changbin Du , "Masami Hiramatsu (Google)" , James Clark , Kajol Jain , Athira Rajeev , Li Huafei , Dmitry Vyukov , Andi Kleen , Chaitanya S Prakash , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, llvm@lists.linux.dev, Song Liu , bpf@vger.kernel.org DISASM_FOUR_ARGS_SIGNATURE and DISASM_INIT_STYLED were used with libbfd support. Remove now that libbfd support is removed. Signed-off-by: Ian Rogers --- tools/perf/Makefile.config | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 513dd5cab605..ba60a5b47be7 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -320,9 +320,6 @@ FEATURE_CHECK_LDFLAGS-libpython := $(PYTHON_EMBED_LDOPTS) FEATURE_CHECK_LDFLAGS-libaio = -lrt -FEATURE_CHECK_LDFLAGS-disassembler-four-args = -lbfd -lopcodes -ldl -FEATURE_CHECK_LDFLAGS-disassembler-init-styled = -lbfd -lopcodes -ldl - CORE_CFLAGS += -fno-omit-frame-pointer CORE_CFLAGS += -Wall CORE_CFLAGS += -Wextra @@ -349,7 +346,7 @@ endif ifeq ($(FEATURES_DUMP),) # We will display at the end of this Makefile.config, using $(call feature_display_entries) -# As we may retry some feature detection here, see the disassembler-four-args case, for instance +# As we may retry some feature detection here. FEATURE_DISPLAY_DEFERRED := 1 include $(srctree)/tools/build/Makefile.feature else @@ -1001,14 +998,6 @@ ifdef HAVE_KVM_STAT_SUPPORT CFLAGS += -DHAVE_KVM_STAT_SUPPORT endif -ifeq ($(feature-disassembler-four-args), 1) - CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE -endif - -ifeq ($(feature-disassembler-init-styled), 1) - CFLAGS += -DDISASM_INIT_STYLED -endif - ifeq (${IS_64_BIT}, 1) ifndef NO_PERF_READ_VDSO32 $(call feature_check,compile-32) @@ -1286,6 +1275,6 @@ endif # re-generate FEATURE-DUMP as we may have called feature_check, found out # extra libraries to add to LDFLAGS of some other test and then redo those -# tests, see the block about disassembler-four-args, for instance. +# tests. $(shell rm -f $(FEATURE_DUMP_FILENAME)) $(foreach feat,$(FEATURE_TESTS),$(shell echo "$(call feature_assign,$(feat))" >> $(FEATURE_DUMP_FILENAME)))