{"id":2228305,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2228305/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20260425211641.479665-6-bernd@kuhls.net/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/1.1/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260425211641.479665-6-bernd@kuhls.net>","date":"2026-04-25T21:16:39","name":"[6/8] package/libbpf: fix bpftrace build with kernel headers 6.0","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"3941ec932717640d40e4c557e758573c4815e15a","submitter":{"id":86624,"url":"http://patchwork.ozlabs.org/api/1.1/people/86624/?format=json","name":"Bernd Kuhls","email":"bernd@kuhls.net"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20260425211641.479665-6-bernd@kuhls.net/mbox/","series":[{"id":501488,"url":"http://patchwork.ozlabs.org/api/1.1/series/501488/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=501488","date":"2026-04-25T21:16:34","name":"[1/8] package/bpftrace: remove configure option USE_SYSTEM_BPF_BCC","version":1,"mbox":"http://patchwork.ozlabs.org/series/501488/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2228305/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2228305/checks/","tags":{},"headers":{"Return-Path":"<buildroot-bounces@buildroot.org>","X-Original-To":["incoming-buildroot@patchwork.ozlabs.org","buildroot@buildroot.org"],"Delivered-To":["patchwork-incoming-buildroot@legolas.ozlabs.org","buildroot@buildroot.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=P4iWKJqr;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"],"Received":["from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g32j52DtYz1yHv\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Sun, 26 Apr 2026 07:17:29 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id E77D68436E;\n\tSat, 25 Apr 2026 21:17:27 +0000 (UTC)","from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id MOOV_0otnWZ9; Sat, 25 Apr 2026 21:17:27 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 0789584370;\n\tSat, 25 Apr 2026 21:17:27 +0000 (UTC)","from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by lists1.osuosl.org (Postfix) with ESMTP id 460D0231\n for <buildroot@buildroot.org>; Sat, 25 Apr 2026 21:17:26 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 2B22261296\n for <buildroot@buildroot.org>; Sat, 25 Apr 2026 21:17:26 +0000 (UTC)","from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id Mf5OcvsYaoIX for <buildroot@buildroot.org>;\n Sat, 25 Apr 2026 21:17:25 +0000 (UTC)","from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57])\n by smtp3.osuosl.org (Postfix) with ESMTPS id 1C1BF61295\n for <buildroot@buildroot.org>; Sat, 25 Apr 2026 21:17:25 +0000 (UTC)","from fli4l.lan.fli4l (p4fd6c5b2.dip0.t-ipconnect.de\n [79.214.197.178])\n by dd20012.kasserver.com (Postfix) with ESMTPSA id D22A1A4C0C88;\n Sat, 25 Apr 2026 23:17:01 +0200 (CEST)","from bruckner.lan.fli4l ([192.168.1.1]:48402)\n by fli4l.lan.fli4l with esmtp (Exim 4.99.1)\n (envelope-from <bernd@kuhls.net>) id 1wGkMj-000000004gG-1rOF;\n Sat, 25 Apr 2026 21:16:41 +0000"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0789584370","OpenDKIM Filter v2.11.0 smtp3.osuosl.org 1C1BF61295"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1777151847;\n\tbh=aoiW1KFyQYhBFL19ZzcPZsGNxvmFznR0ohK2nXwvDdg=;\n\th=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From;\n\tb=P4iWKJqrKb31KBy0crEp5KgEpqkpyj6A/5g6a7aivJtlimOTYLMCWz2N7VBKpT1rz\n\t LI1D/Mv12UAA2w8szdsJGujf/97fbz7H3cUBUCsD9hAPXrxHv0rYfAkaATbRlOj/gN\n\t orn6LZKNQeWtlr5ALXql2sJZeM/pcL4YC/Zuh5PUKz2t2xQ6WqXXMCsVuBULWZfT28\n\t iZQ3WBmfMiVr4MkKT8650qOS6M/A82LkYmz3A+NKTquHyV4KTKH1997Sf458JKh7DU\n\t TyHdMvM9GAKrQBJdilw+QpRNh8jNtZkIuN/iPB4Cw/H9R2kyF1lmXynb/h21E3R7lS\n\t jtSHVpefHrAHA==","Received-SPF":"Pass (mailfrom) identity=mailfrom; client-ip=85.13.140.57;\n helo=dd20012.kasserver.com; envelope-from=bernd@kuhls.net;\n receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp3.osuosl.org 1C1BF61295","From":"Bernd Kuhls <bernd@kuhls.net>","To":"buildroot@buildroot.org","Cc":"Qais Yousef <qais.yousef@arm.com>,\n\tRomain Naour <romain.naour@gmail.com>","Date":"Sat, 25 Apr 2026 23:16:39 +0200","Message-ID":"<20260425211641.479665-6-bernd@kuhls.net>","X-Mailer":"git-send-email 2.47.3","In-Reply-To":"<20260425211641.479665-1-bernd@kuhls.net>","References":"<20260425211641.479665-1-bernd@kuhls.net>","MIME-Version":"1.0","X-Spamd-Bar":"+","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=kuhls.net;\n s=kas202511301023; t=1777151821;\n bh=+7S0y5FrfXjYbEGWyMWvgOeAXbWqnIVADWByxOGDbk0=;\n h=From:To:Cc:Subject:Date:In-Reply-To:From;\n b=HZ8ctFRztnF4+OWaHbMBwbd5bLPyZfpVBhmqUEfW8QNfyVDxtzbGl63I2jizqokbG\n BcbIcCDMH+u8dxS5k1GB7xOdZx0C+CzfCKfoe4HV3HBiKlTNThCcbxQTj5P4nZZJmx\n iQEn1ITnm1vLClyvNs+WDYa1WmlNSYE3h93WpFrtD+oDu1zAWER0P8V/N5F2J10KjH\n 3z6AOkjmazY2Tl/1tATKhillex5RIOfbhE4wKgrlJ4pDsZ7eTQtu+TsBz8a4xi6/iG\n 6PRuaqzLai3UzaowR7tgLUVdyJYxTVDOV77YUWbnZi6R0Wbvw/t9H+ajOn0Fu7zmi1\n SDbhhuobZHuHQ==","X-Mailman-Original-Authentication-Results":["smtp3.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=kuhls.net","smtp3.osuosl.org;\n dkim=pass (2048-bit key) header.d=kuhls.net header.i=@kuhls.net\n header.a=rsa-sha256 header.s=kas202511301023 header.b=HZ8ctFRz"],"Subject":"[Buildroot] [PATCH 6/8] package/libbpf: fix bpftrace build with\n kernel headers 6.0","X-BeenThere":"buildroot@buildroot.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.buildroot.org>","List-Unsubscribe":"<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>","List-Archive":"<http://lists.buildroot.org/pipermail/buildroot/>","List-Post":"<mailto:buildroot@buildroot.org>","List-Help":"<mailto:buildroot-request@buildroot.org?subject=help>","List-Subscribe":"<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"buildroot-bounces@buildroot.org","Sender":"\"buildroot\" <buildroot-bounces@buildroot.org>"},"content":"Buildroot commit 97e2f63bdf4cc992787c570b17b099c41c5535d2 bumped\nbpftrace from 0.23.3 to 0.24.2.\n\nThis release includes upstream commit\nhttps://github.com/bpftrace/bpftrace/commit/7578314df67df6bbdffaf493ff3b4d182b235b34\nwhich was added to version 0.24.0 and makes use of\nbpf_iter_link_info.task that was added to the linux kernel in version\n6.1:\nhttps://github.com/torvalds/linux/commit/f0d74c4da1f060d2a66976193712a5e6abd361f5\n\ncausing build errors when the toolchain contains kernel headers version\n6.0 because the libbpf package does not update their headers:\n\noutput/build/bpftrace-0.24.2/src/attached_probe.cpp: In static member\n function 'static bpftrace::Result<std::unique_ptr<bpftrace::AttachedIterProbe> >\n bpftrace::AttachedIterProbe::make(bpftrace::Probe&,\n const bpftrace::BpfProgram&, std::optional<int>)':\noutput/build/bpftrace-0.24.2/src/attached_probe.cpp:1437:11: error:\n 'union bpf_iter_link_info' has no member named 'task'\n 1437 |     linfo.task.pid = *pid;\n\nThe build error can be reproduced with this defconfig\n\nBR2_aarch64=y\nBR2_KERNEL_HEADERS_VERSION=y\nBR2_DEFAULT_KERNEL_VERSION=\"6.0.19\"\nBR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_0=y\nBR2_TOOLCHAIN_BUILDROOT_CXX=y\nBR2_PER_PACKAGE_DIRECTORIES=y\nBR2_PACKAGE_BPFTRACE=y\n\non the 2026.02.x branch as of 0be927b89a319c9ac35249354558e9f4cb102fd0.\n\nFixes:\nhttps://autobuild.buildroot.net/results/146/14671c54fdf0a2e44bcce7ff61ca9b89a925eca9/\n\nSigned-off-by: Bernd Kuhls <bernd@kuhls.net>\n---\n package/libbpf/libbpf.mk | 12 ++++++------\n 1 file changed, 6 insertions(+), 6 deletions(-)","diff":"diff --git a/package/libbpf/libbpf.mk b/package/libbpf/libbpf.mk\nindex c441522266..d405767988 100644\n--- a/package/libbpf/libbpf.mk\n+++ b/package/libbpf/libbpf.mk\n@@ -18,14 +18,14 @@ define LIBBPF_BUILD_CMDS\n \t\t-C $(@D)/src\n endef\n \n-# bpftrace uses btf_enum64 that was added since kernel 6.0 so we need to\n-# update some uapi headers in STAGING_DIR if the toolchain is build with\n-# linux-headers < 6.0.\n+# bpftrace uses bpf_iter_link_info.task that was added since kernel 6.1\n+# so we need to update some uapi headers in STAGING_DIR if the toolchain\n+# is build with linux-headers < 6.1.\n # Otherwise bpftrace is broken due to out of date linux/bpf.h installed\n # by the toolchain.\n-# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6089fb325cf737eeb2c4d236c94697112ca860da\n-# https://github.com/bpftrace/bpftrace/commit/d4f58382270c21b2c718aa0a6574c105f29e77a9\n-ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_0),)\n+# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f0d74c4da1f060d2a66976193712a5e6abd361f5\n+# https://github.com/bpftrace/bpftrace/commit/7578314df67df6bbdffaf493ff3b4d182b235b34\n+ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_1),)\n LIBBPF_UPDATE_UAPI_HEADERS = install_uapi_headers UAPIDIR=/usr/include/bpf\n LIBBPF_POST_INSTALL_STAGING_HOOKS += LIBBPF_FIX_STAGING_PC\n endif\n","prefixes":["6/8"]}