From nobody Fri Dec 19 14:59:06 2025 Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (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 B646C283FC8 for ; Fri, 19 Dec 2025 02:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766109692; cv=none; b=m7UZvKYyfezFM8522CLFvftr8RmSGHQfKraFOaXIYHduKtYa0n8Yab4HVVGXdtbvOrKXNEr9ZPDoDa1qS5XR5VTCVM5SrRDVibFY9U2xwFpfxY1MKShyQ0kaYlFAFlas4GDEE5xYoyUVmMnPU954v9oUOGVDVBC9kD95arZ4E2E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766109692; c=relaxed/simple; bh=gsZpFTi8QIwOAvmn5ydQV0Xi+hYp3QfxBo2eDqJApAM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QAAK4+ojIDrvycjuSAjpcLq0tYyS0hJkLQ0GI+8ghobewN5qksXHJ9DM8AfLg0IOeOO96m7ihZnz79aF2YsuFNuZNxF2S2HYdduNedbxmaTFsFDNzlTwrqf2xIYmKTcTRxxhfZP6I4RA9/x7EcNBsxmoAwYL6KqfmdMr1OgTFCU= 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=nk3aVuHc; arc=none smtp.client-ip=91.218.175.182 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="nk3aVuHc" 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=1766109684; 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=DExPuYnExZe5P0blUNN50oahe6iegvEMZ5sGMxUQSX4=; b=nk3aVuHco62zS+y22asUKVFtmoMYhwsI2CbBdu48Q2L7RXzXDkYV2Ulo96PnsYZBZ/n1y+ XfkKGOmWfKkyPQmfH+NrX9Ryo+aECkBP96ufmxWgSMqYWfDwWgfDXgP8OQ6rP7vcJQ1ECR TCAfWFvMzXpgw4R/9tEtRvsCMEif7cA= From: Ihor Solodrai To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Andrew Morton , Nathan Chancellor , Nicolas Schier , Jonathan Corbet , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Shuah Khan , Nick Desaulniers , Bill Wendling , Justin Stitt , Alan Maguire , Donglin Peng Cc: bpf@vger.kernel.org, dwarves@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, sched-ext@lists.linux.dev Subject: [PATCH bpf-next v6 6/8] lib/Kconfig.debug: Set the minimum required pahole version to v1.22 Date: Thu, 18 Dec 2025 18:00:04 -0800 Message-ID: <20251219020006.785065-7-ihor.solodrai@linux.dev> In-Reply-To: <20251219020006.785065-1-ihor.solodrai@linux.dev> References: <20251219020006.785065-1-ihor.solodrai@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: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Subsequent patches in the series change vmlinux linking scripts to unconditionally pass --btf_encode_detached to pahole, which was introduced in v1.22 [1][2]. This change allows to remove PAHOLE_HAS_SPLIT_BTF Kconfig option and other checks of older pahole versions. [1] https://github.com/acmel/dwarves/releases/tag/v1.22 [2] https://lore.kernel.org/bpf/cbafbf4e-9073-4383-8ee6-1353f9e5869c@oracle= .com/ Acked-by: Eduard Zingerman Signed-off-by: Ihor Solodrai Acked-by: Nicolas Schier --- Documentation/scheduler/sched-ext.rst | 1 - lib/Kconfig.debug | 13 ++++--------- scripts/Makefile.btf | 9 +-------- tools/sched_ext/README.md | 1 - 4 files changed, 5 insertions(+), 19 deletions(-) diff --git a/Documentation/scheduler/sched-ext.rst b/Documentation/schedule= r/sched-ext.rst index 404fe6126a76..9e2882d937b4 100644 --- a/Documentation/scheduler/sched-ext.rst +++ b/Documentation/scheduler/sched-ext.rst @@ -43,7 +43,6 @@ options should be enabled to use sched_ext: CONFIG_DEBUG_INFO_BTF=3Dy CONFIG_BPF_JIT_ALWAYS_ON=3Dy CONFIG_BPF_JIT_DEFAULT_ON=3Dy - CONFIG_PAHOLE_HAS_SPLIT_BTF=3Dy CONFIG_PAHOLE_HAS_BTF_TAG=3Dy =20 sched_ext is used only when the BPF scheduler is loaded and running. diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index ba36939fda79..60281c4f9e99 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -388,18 +388,13 @@ config DEBUG_INFO_BTF depends on !DEBUG_INFO_SPLIT && !DEBUG_INFO_REDUCED depends on !GCC_PLUGIN_RANDSTRUCT || COMPILE_TEST depends on BPF_SYSCALL - depends on PAHOLE_VERSION >=3D 116 - depends on DEBUG_INFO_DWARF4 || PAHOLE_VERSION >=3D 121 + depends on PAHOLE_VERSION >=3D 122 # pahole uses elfutils, which does not have support for Hexagon relocatio= ns depends on !HEXAGON help Generate deduplicated BTF type information from DWARF debug info. - Turning this on requires pahole v1.16 or later (v1.21 or later to - support DWARF 5), which will convert DWARF type info into equivalent - deduplicated BTF type info. - -config PAHOLE_HAS_SPLIT_BTF - def_bool PAHOLE_VERSION >=3D 119 + Turning this on requires pahole v1.22 or later, which will convert + DWARF type info into equivalent deduplicated BTF type info. =20 config PAHOLE_HAS_BTF_TAG def_bool PAHOLE_VERSION >=3D 123 @@ -421,7 +416,7 @@ config PAHOLE_HAS_LANG_EXCLUDE config DEBUG_INFO_BTF_MODULES bool "Generate BTF type information for kernel modules" default y - depends on DEBUG_INFO_BTF && MODULES && PAHOLE_HAS_SPLIT_BTF + depends on DEBUG_INFO_BTF && MODULES help Generate compact split BTF type information for kernel modules. =20 diff --git a/scripts/Makefile.btf b/scripts/Makefile.btf index db76335dd917..840a55de42da 100644 --- a/scripts/Makefile.btf +++ b/scripts/Makefile.btf @@ -7,14 +7,7 @@ JOBS :=3D $(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS))) =20 ifeq ($(call test-le, $(pahole-ver), 125),y) =20 -# pahole 1.18 through 1.21 can't handle zero-sized per-CPU vars -ifeq ($(call test-le, $(pahole-ver), 121),y) -pahole-flags-$(call test-ge, $(pahole-ver), 118) +=3D --skip_encoding_btf_= vars -endif - -pahole-flags-$(call test-ge, $(pahole-ver), 121) +=3D --btf_gen_floats - -pahole-flags-$(call test-ge, $(pahole-ver), 122) +=3D -j$(JOBS) +pahole-flags-y +=3D --btf_gen_floats -j$= (JOBS) =20 pahole-flags-$(call test-ge, $(pahole-ver), 125) +=3D --skip_encoding_btf_= inconsistent_proto --btf_gen_optimized =20 diff --git a/tools/sched_ext/README.md b/tools/sched_ext/README.md index 16a42e4060f6..56a9d1557ac4 100644 --- a/tools/sched_ext/README.md +++ b/tools/sched_ext/README.md @@ -65,7 +65,6 @@ It's also recommended that you also include the following= Kconfig options: ``` CONFIG_BPF_JIT_ALWAYS_ON=3Dy CONFIG_BPF_JIT_DEFAULT_ON=3Dy -CONFIG_PAHOLE_HAS_SPLIT_BTF=3Dy CONFIG_PAHOLE_HAS_BTF_TAG=3Dy ``` =20 --=20 2.52.0