From nobody Tue Feb 10 01:30:26 2026 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) (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 BEA8F2C030E for ; Tue, 23 Dec 2025 17:00:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.65 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766509252; cv=none; b=cT84A/Fv4my4Ajz/A28KxZikHsNT5WlZ+Lq7RwGX/1Kil4vuiX/AauUOgXZYPMRE757klzebr5VAV1h7A4Q8a9NNtVd3E4GqQL61Ruc4i1qyHpbahMuo7/U6rs/0gtzUxnBa6rxEcIjqitlkqC72CJAglttUfG2l/BlKfzH6l1w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766509252; c=relaxed/simple; bh=U71eWv+lZlEigAhVYCviXUXxQA3e+e5qTV+RSri9qqo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NZj7Zi5H8wgtClu2wqXhD9AKxcybj4D4ssGepNHW/6vlbCB98SLuHH604qxtfFP/W49O3w2H8gtLzUS/8jJYTro5ddTGswMIViqeKnuFuDnjWHY12l/k5wgCyiIwYzABUQ90LttETE6N1js5hZUKaJGR1GgAUOy0ssQFVxg/JeY= 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=MQsjl3JH; arc=none smtp.client-ip=209.85.221.65 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="MQsjl3JH" Received: by mail-wr1-f65.google.com with SMTP id ffacd0b85a97d-42fbc305552so4283661f8f.0 for ; Tue, 23 Dec 2025 09:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766509248; x=1767114048; 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=MBD5hyInNJ1zU+FPwr6XKENm1lWydxvpThAe0QY6n2o=; b=MQsjl3JHY1u4bguvRcxufbsdHMPBtYxUOvWGeY0VP6MYVd2V/rwfWmBQ02vQOd5BFu oxFxiqlK67uAk+afnFFY51rV+pRcuNZVqB3GemuYKN8bN/LIrtBNHSmyvos3VY5HDzSD UcQ4hkexTpNwO7RRu0HBFx0aB6RfqqONRckvVMjwrk65eQRBAQzSYZgOe8tr+lvWEfXQ OZiwspVwY/8wzTUWlACYYmTUjhKbjymmIfFGaRdmdw9OaXFjjPMORsDFIcajWbbMk+8S +LTcTn3CPXuZKc0Uiqk8M0sF3PkYuNu6GS+Bi8+t022Yhr55C/Klz7VlojxjxTugwhJ5 015g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766509248; x=1767114048; 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=MBD5hyInNJ1zU+FPwr6XKENm1lWydxvpThAe0QY6n2o=; b=JHHb+XjVWYp+jRWtCbFlda7m9X8VC4OA4RDWXbMi09mzGOsRTA6KZ34DSK4QhLwUe2 t3XnMztUUZkv8k6IKijVt7b0//XWBwP9zSzL3SBteNcstn23WhHgpVRDOu+qOvI/hHLY NpmvmnC1K7Lh+663pppjr1aO1EG2HYZ+En7LJ9iDvwAnTD/CGB+7ZHcznxoOcy9w7CoR qt8qXJLTxLEa+3TDSziIM8SqQFYipgB/vQG5Tah4u797cnUmuAXrYARvultP+1VHT9qE /bHONs/QCM1gHyi7Ue0e10vo3QQqNs+JaejNewfvOpBsg4dG9w/J1jlUzrwfFg3xh59i aGKw== X-Forwarded-Encrypted: i=1; AJvYcCU60/b8gmHwOjWJ3ACzB5Dt0v/TY2iAHHEMMvcQSBbe0efghqSzEHTb2RBkdQWqcpbKiF+AkfgVjmxlCKM=@vger.kernel.org X-Gm-Message-State: AOJu0YxDFC1zqArwbqROZN8LRVP98H0gy5Cxs4oz0Srt8UM02hlD4si5 pRKo5QtgOtNiZEiVYRusxzr9ViOx206/tKwdSF7DNxAv5LX+dtp8a0pIBOE5Gr0vjW0= X-Gm-Gg: AY/fxX6wlRTWjjA4ypf9gybTMl//XkvnLHnKNjlyLbGQT0bdwb97rFh6id7Mevc33Pe JYM9v3nLNaT2Fwi8QS03jSxOHSVIMyZJ8F7TyZTx6p3wX5hRHVscyf59FoceZKo6TphUFzcKu8H K2vHAtvs9JNlZCsVMX+1i26IFik3etQdQ2m034NElAwH+Uarey3AX7WUCRfPdF92ADnJuUGxUF6 zqbcoWvTsK9FQBRYXU5bVVA6QlRD1vMuf3yrwyRx6laQZV1mPqmVsxodg5361x4YxyhpolOM7g5 GSXb3cFVRFZ98Pf85Vp+8y1zpkQc1lz9pgkqp045Hs+b+mcdkoPo6B0iYQkVpqKb+pgwNrwcwi5 ozE2JdY4Q5BH83q9lTihVajln4UBR3ef9F4bCXFGaVfvIklIroBmw8+eaVbIZWscN9pUk8OjtyU x5uV4S/iKlw7vVobctbtww X-Google-Smtp-Source: AGHT+IHdxuaNfoOArrhJfQGMxJD7NTPYAUwkN7KhO+ZEUCIEmGuIhQs3mIG7HIDmUEghx29uGdFspA== X-Received: by 2002:a5d:5442:0:b0:432:7068:18a with SMTP id ffacd0b85a97d-43270680252mr939319f8f.20.1766509247919; Tue, 23 Dec 2025 09:00:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Dec 2025 09:00:47 -0800 (PST) From: James Clark Date: Tue, 23 Dec 2025 17:00:24 +0000 Subject: [PATCH 1/5] perf build: Remove FEATURE_CHECK_LDFLAGS-disassembler-{four-args,init-styled} setting 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-1-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, Roberto Sassu , Alexei Starovoitov , Andres Freund , Andrii Nakryiko , Daniel Borkmann , John Fastabend , KP Singh , Martin KaFai Lau , Nick Terrell , Song Liu , bpf@vger.kernel.org, llvm@lists.linux.dev, Arnaldo Carvalho de Melo , James Clark , Nick Desaulniers , Quentin Monnet , Stanislav Fomichev X-Mailer: b4 0.14.0 From: Roberto Sassu As the building mechanism is now able to retry detection with different combinations of linking flags, setting FEATURE_CHECK_LDFLAGS-disassembler-four-args and FEATURE_CHECK_LDFLAGS-disassembler-init-styled is not necessary anymore, so remove it. Committer notes: Use the same technique to find the set of bfd-related libraries to link as = in: 3308ffc5016e6136 ("tools, build: Retry detection of bfd-related features") Signed-off-by: Roberto Sassu Cc: Alexei Starovoitov Cc: Andres Freund Cc: Andrii Nakryiko Cc: Daniel Borkmann Cc: Ingo Molnar Cc: John Fastabend Cc: KP Singh Cc: Martin KaFai Lau Cc: Nathan Chancellor Cc: Nick Desaulniers Cc: Nick Terrell Cc: Peter Zijlstra Cc: Quentin Monnet Cc: Song Liu Cc: Stanislav Fomichev Cc: bpf@vger.kernel.org Cc: llvm@lists.linux.dev Link: https://lore.kernel.org/r/20220719170555.2576993-3-roberto.sassu@huaw= ei.com Signed-off-by: Arnaldo Carvalho de Melo [Cherry pick to fix accidental removal in commit ad5f604e186a] Signed-off-by: James Clark --- tools/perf/Makefile.config | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index bd9f4804d56b..ea6636a09a95 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -379,8 +379,8 @@ ifneq ($(TCMALLOC),) endif =20 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-a= rgs case, for instance +# We will display at the end of this Makefile.config, using $(call feature= _display_entries), +# as we may retry some feature detection here. FEATURE_DISPLAY_DEFERRED :=3D 1 include $(srctree)/tools/build/Makefile.feature else @@ -927,8 +927,6 @@ ifdef BUILD_NONDISTRO =20 ifeq ($(feature-libbfd), 1) EXTLIBS +=3D -lbfd -lopcodes - FEATURE_CHECK_LDFLAGS-disassembler-four-args =3D -lbfd -lopcodes -ldl - FEATURE_CHECK_LDFLAGS-disassembler-init-styled =3D -lbfd -lopcodes -ldl else # we are on a system that requires -liberty and (maybe) -lz # to link against -lbfd; test each case individually here @@ -940,13 +938,9 @@ ifdef BUILD_NONDISTRO =20 ifeq ($(feature-libbfd-liberty), 1) EXTLIBS +=3D -lbfd -lopcodes -liberty - FEATURE_CHECK_LDFLAGS-disassembler-four-args +=3D -liberty -ldl - FEATURE_CHECK_LDFLAGS-disassembler-init-styled +=3D -liberty -ldl else ifeq ($(feature-libbfd-liberty-z), 1) EXTLIBS +=3D -lbfd -lopcodes -liberty -lz - FEATURE_CHECK_LDFLAGS-disassembler-four-args +=3D -liberty -lz -ldl - FEATURE_CHECK_LDFLAGS-disassembler-init-styled +=3D -liberty -lz -= ldl endif endif $(call feature_check,disassembler-four-args) @@ -1324,6 +1318,6 @@ endif =20 # 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 libbfd, 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))) --=20 2.34.1