From nobody Tue Feb 10 02:43:41 2026 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 3BF05346784 for ; Tue, 23 Dec 2025 17:00:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766509254; cv=none; b=BHj10QX3Pa6awvG8Gcn2elqEnGK0QBBiYOn4Aq6tnU4qc9Q5bZVcGtd2paV6STy1Cr3NKeO0+leNNRmud3fPpHGQklzjrf79KBKm9LpfID2Ysc/fICWWs5n6TsBNZPIPBNR116aT4vD6yCQH/Jn1+Kg19t3VYIOz5Fb1OYqlj6w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766509254; c=relaxed/simple; bh=HvQuAl5BIsUEtR0z3TF9FUuo1K9HZfq6C51NE7ALywM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EgTKfO4W5XvCmnjJRZ6qh4RY6i49Pt9RATlVNf4Ql1K6gLyxZ4YQM+J1nLf5qrgXeD2D80juUl75+D8d2vqDqiNtXRNo2qV1c7fyu/amGQUggDSrmyvqK8j5Ab+nPnApMUD5TiPXxiw9CCqMsB+pyFcfHkhdALZ03e/nLHF8RHQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qhMScNo+; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qhMScNo+" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-42fbc305552so4283705f8f.0 for ; Tue, 23 Dec 2025 09:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766509250; x=1767114050; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UTJM3s/XdCccJiJB0tNPahzzj1p09azMnSbzBQkmBSg=; b=qhMScNo+giJTfU4fCRGs0/r0PkN7fYsqTEySSXhzH1VW5g06LsX35k4z7ASuXOfpXd hDYtd9S8vqzaa3i4IOweRyo13zDqFbNZxRsMB3LDrHHbDVLGGr67yIBpI3q+9ukgAw/7 2WGGrJoL3IYesRPtlLxrwtRcrfLTkLP0XE8J1DNP4fzG14uFYP5JLm2/tBkR/fzHlL0c I3b00KLGbwKL0Pfitq1ev9UILNUwEBItDGhkx4izElnJtAsMun/zc8EjlDRFAyVJ2a7T o9TvTBh2SByMa2YUw1AfvKprPwqItBnaQT8NZx2aTPg5VYssnEuxLERiDRfA+PWiDrhk lYqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766509250; x=1767114050; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=UTJM3s/XdCccJiJB0tNPahzzj1p09azMnSbzBQkmBSg=; b=k+uaYAUJSX8bC7wmltcTTYeJcV69w3T+pItcsJNuZ+igwUvAa5YYKan5xG/Sh76MEA L6Mx7AZTUyYdk80QyZdkJIhDbo0UEl9GEDpV2XhZoHttDcsH31sfFuMS+XoZ593V42xH 37HppkV/4IVeeWEhjW02PVv3PLmGc2ARg9DYBaEwGCTpqe99Aby93opkELx26wN9rf/x dIGHvA1BVuZdUIrTdXVfJqj/S2Id6YMAGwk3BkkxMRFCq8eC/LWeGA4cjiukiPOOVIDa QOjfXIzHI/6/5VQKWjGvQ/zGsgGbx901ReDuHodMP7bquhMJadjsCFAEvvz43hxwNNQN i78A== X-Forwarded-Encrypted: i=1; AJvYcCXOj3WqX4UeibEXEzHnfLp1MyizkfLss+cYHCNmh8YOfg22m5GSMcJESOLyc/Q4vcUVIyRzMOqorZStuFo=@vger.kernel.org X-Gm-Message-State: AOJu0YwpMZYGrglA33NBuH+of5N62IVccox29oWWLmXsEUXNB1enCXKR wT1DILsjbBcv222vxyCImW4QWlOadOaDsGcz0FwDXz8BYujbiNu7oIv33pgVAC1wJDs= X-Gm-Gg: AY/fxX6+bHICHHutEDd00R9WBcBxfAqbetb04h1G5GlAlgv/RFtmqtw3Ak2nlZzvJ5i izdETDWSWZTdIHCufI0KjYf2CUtB2WIe4KSVRlMgGryCpY+JIMmxFNbtCRohGoi8OxIPNL2l0bp 0ceIPCR41RpiDsynnGXcyTxNNlGbFVJS25GVm0EHqM1RWRI3P6hyLf22bnCkj2pn7+6t9cMJtds 2huyNm7K0L0QXhFaXaKfSd/fI1HjfrQcgs4ewMRM3nUNXbowIYNMYN+WJuT6HzJ5YOB51VemgPe tBnlM56WjdeF3SSH0KqTyKGArKztRVDUJMIwi/811Ej9P0PL6alG+6nyo9DMaHMA8x8UBBaE5nu HPV4eFB/1XIGpqcRCUtQTUriWAmCFVSafe4l9OTTiSUtQpiD0uRv75L61ECuzOipXtRgM/kfpYr aKWPfF6SgEXbr9WrS38+OG X-Google-Smtp-Source: AGHT+IFMmSNtuwzw5XtsQ5n3BxiXKo6WM82ZPjsLwEsdsqvNmRq9sHEX+kMDMqzpXsuiU6kNsh7ojw== X-Received: by 2002:a05:6000:2211:b0:42b:396e:27fd with SMTP id ffacd0b85a97d-4324e4fda01mr17632693f8f.38.1766509250512; Tue, 23 Dec 2025 09:00:50 -0800 (PST) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4324ea1aef7sm28895137f8f.7.2025.12.23.09.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Dec 2025 09:00:50 -0800 (PST) From: James Clark Date: Tue, 23 Dec 2025 17:00:26 +0000 Subject: [PATCH 3/5] perf build: Remove unused libbfd-buildid feature test Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251223-james-libbfd-feat-check-v1-3-0e901ba32ed9@linaro.org> References: <20251223-james-libbfd-feat-check-v1-0-0e901ba32ed9@linaro.org> In-Reply-To: <20251223-james-libbfd-feat-check-v1-0-0e901ba32ed9@linaro.org> To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Leo Yan , Justin Stitt Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, James Clark X-Mailer: b4 0.14.0 HAVE_LIBBFD_BUILDID_SUPPORT isn't used in the codebase so remove the feature test that sets it. Signed-off-by: James Clark --- tools/build/Makefile.feature | 1 - tools/build/feature/Makefile | 4 ---- tools/build/feature/test-libbfd-buildid.c | 8 -------- tools/perf/Makefile.config | 7 ------- 4 files changed, 20 deletions(-) diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature index a7f030fc5e83..20422853d1ac 100644 --- a/tools/build/Makefile.feature +++ b/tools/build/Makefile.feature @@ -71,7 +71,6 @@ FEATURE_TESTS_BASIC :=3D \ gettid \ glibc \ libbfd \ - libbfd-buildid \ libelf \ libelf-getphdrnum \ libelf-gelf_getnote \ diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index 87a5a908d6fa..63a97cdf78a3 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -13,7 +13,6 @@ FILES=3D \ test-gtk2-infobar.bin \ test-hello.bin \ test-libbfd.bin \ - test-libbfd-buildid.bin \ test-disassembler-four-args.bin \ test-disassembler-init-styled.bin \ test-reallocarray.bin \ @@ -267,9 +266,6 @@ $(OUTPUT)test-libpython.bin: $(OUTPUT)test-libbfd.bin: $(BUILD_BFD) =20 -$(OUTPUT)test-libbfd-buildid.bin: - $(BUILD_BFD) || $(BUILD_BFD) -liberty || $(BUILD_BFD) -liberty -lz - $(OUTPUT)test-disassembler-four-args.bin: $(BUILD_BFD) -lopcodes || $(BUILD_BFD) -lopcodes -liberty || \ $(BUILD_BFD) -lopcodes -liberty -lz diff --git a/tools/build/feature/test-libbfd-buildid.c b/tools/build/featur= e/test-libbfd-buildid.c deleted file mode 100644 index 157644b04c05..000000000000 --- a/tools/build/feature/test-libbfd-buildid.c +++ /dev/null @@ -1,8 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include - -int main(void) -{ - bfd *abfd =3D bfd_openr("Pedro", 0); - return abfd && (!abfd->build_id || abfd->build_id->size > 0x506564726f); -} diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 594fe3ecfee0..5ff98b89c39a 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -927,7 +927,6 @@ ifdef BUILD_NONDISTRO $(call feature_check,libbfd) $(call feature_check,disassembler-four-args) $(call feature_check,disassembler-init-styled) - $(call feature_check,libbfd-buildid) $(call feature_check,libbfd-liberty) $(call feature_check,libbfd-liberty-z) =20 @@ -945,12 +944,6 @@ ifdef BUILD_NONDISTRO CXXFLAGS +=3D -DHAVE_LIBBFD_SUPPORT $(call detected,CONFIG_LIBBFD) =20 - ifeq ($(feature-libbfd-buildid), 1) - CFLAGS +=3D -DHAVE_LIBBFD_BUILDID_SUPPORT - else - $(warning Old version of libbfd/binutils things like PE executable pro= filing will not be available) - endif - ifeq ($(feature-disassembler-four-args), 1) CFLAGS +=3D -DDISASM_FOUR_ARGS_SIGNATURE endif --=20 2.34.1