Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2228304/?format=api
{ "id": 2228304, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228304/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260425211641.479665-4-bernd@kuhls.net/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/1.1/projects/27/?format=api", "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-4-bernd@kuhls.net>", "date": "2026-04-25T21:16:37", "name": "[4/8] package/libbpf: fix bpftrace build with kernel headers 5.{9, 10}", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "4f9ccfd9bf86986dbd4b7b4e11a896927c50d957", "submitter": { "id": 86624, "url": "http://patchwork.ozlabs.org/api/1.1/people/86624/?format=api", "name": "Bernd Kuhls", "email": "bernd@kuhls.net" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260425211641.479665-4-bernd@kuhls.net/mbox/", "series": [ { "id": 501488, "url": "http://patchwork.ozlabs.org/api/1.1/series/501488/?format=api", "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/2228304/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228304/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=QXGLjfkd;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)" ], "Received": [ "from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\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 4g32hs2n8rz1yHv\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Sun, 26 Apr 2026 07:17:17 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id D82D742263;\n\tSat, 25 Apr 2026 21:17:15 +0000 (UTC)", "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id T9f16bisWmtx; Sat, 25 Apr 2026 21:17:15 +0000 (UTC)", "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id F14314228D;\n\tSat, 25 Apr 2026 21:17:14 +0000 (UTC)", "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists1.osuosl.org (Postfix) with ESMTP id DA2EE194\n for <buildroot@buildroot.org>; Sat, 25 Apr 2026 21:17:13 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id CC3E74228D\n for <buildroot@buildroot.org>; Sat, 25 Apr 2026 21:17:13 +0000 (UTC)", "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id kf2PJFS2E6WE for <buildroot@buildroot.org>;\n Sat, 25 Apr 2026 21:17:13 +0000 (UTC)", "from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57])\n by smtp4.osuosl.org (Postfix) with ESMTPS id B7B2942263\n for <buildroot@buildroot.org>; Sat, 25 Apr 2026 21:17:12 +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 78436A4C0F8C;\n Sat, 25 Apr 2026 23:16:42 +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-0yXA;\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 smtp4.osuosl.org F14314228D", "OpenDKIM Filter v2.11.0 smtp4.osuosl.org B7B2942263" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1777151835;\n\tbh=Ed67fLVqX6w4MAfcxXVTapvYaJy9oAfms1okmlSsamw=;\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=QXGLjfkdVGo5EXauC+ZRV7vVGwQflAUw8jx5WcnyvGkLTrXTGN8XLJtozU7favZp4\n\t JazemPjlSaxYsFUBiBBzbnKgNf+6c+PRqy4eHExkLIS034J0DSJskhfHqHtGi0PZud\n\t PlQylTOVmlNLCOjRBg430cnDjU7YS7ZlGYgg1UBrbLqpHSApdpIILnBH8xV9EfzftD\n\t lU5fWq0KsCr+zjrxtOsc5bzCTnKEY5pk/Yu3i+j4GAmmrVnK1911FB3h+ihykq9kcY\n\t QdustQJm8LOITsEEB1EGh5v9GzLjVGUCW+qHGG8a388+4EwIm6DTFC3iWKSCfePhPd\n\t 9kKkEyhYduLgA==", "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 smtp4.osuosl.org B7B2942263", "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:37 +0200", "Message-ID": "<20260425211641.479665-4-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=1777151806;\n bh=4jeb1N4UP0ZwL+kNaRL8vjnG1VNdH/o5FeF4dPF/kFM=;\n h=From:To:Cc:Subject:Date:In-Reply-To:From;\n b=vWMgvhWtuLkL9+W1TRXe2AZBNPxw3W9NokzLg5mbcsQa55OS9ENYkkSrSMdw1X2Om\n Eu3cNe+OJlPiFAN6ITPAU+dgzU5SQALA8zxVewXLY8dL+vFgKpQnn9iZllUo/iE4dE\n s0Vh7GbrU+hb66A+jfej8xU2wHJ3xF9/GiFK4QniWXZgvrn4FB/Ge8V2im5Pq6iRQv\n g9oojXUpwLRqn4ToU6r7UjIn6RQDC4AHC6dWngocktSV7u6Ex/wf1mIXWpOpHjgnUd\n 3OYZ9PPU1gl91FO3tP4IkDhvwyCdjgtTgG+IxKBj8TuZLdkSfJgTgK/JfhYk1EfXGs\n w0NqiMDqladKA==", "X-Mailman-Original-Authentication-Results": [ "smtp4.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=kuhls.net", "smtp4.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=vWMgvhWt" ], "Subject": "[Buildroot] [PATCH 4/8] package/libbpf: fix bpftrace build with\n kernel headers 5.{9, 10}", "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 added the bpftrace package in 2024 with commit\n338acb27ff3e07560290085d7c6a2feab633c869\nwhich initially provided version 0.19.1.\n\nThis release includes upstream commit\nhttps://github.com/bpftrace/bpftrace/commit/fea31939899db48fa6d28f5ce880bfc39250ec9f\nwhich was added to version 0.17.0 in 2022 and makes use of certain\nvariables of struct bpf_btf_info which were added to the linux kernel in\n2020 with version 5.11:\nhttps://github.com/torvalds/linux/commit/5329722057d41aebc31e391907a501feaa42f7d9\n\n+\t__aligned_u64 name;\n+\t__u32 name_len;\n+\t__u32 kernel_btf;\n\nThe libbpf package updates toolchain headers with its bundled version\nonly when the toolchain headers are version 5.8 or older, this condition\nis part of the initial version of the package added in 2020 with\nbuildroot commit f7b8508e4fe9c96bf679cc5423cc1500b6523e83. This version\nlimit should have been raised when the bpftrace package was added to\navoid build errors when the toolchain contains header versions 5.9 or\n5.10.\n\nThis situation caused build errors in the autobuilder, the last one in\nFebruary 2025:\n\n/home/autobuild/autobuild/instance-18/output-1/build/bpftrace-0.19.1/src/bpffeature.cpp:\n In member function 'bool bpftrace::BPFfeature::has_module_btf()':\n/home/autobuild/autobuild/instance-18/output-1/build/bpftrace-0.19.1/src/bpffeature.cpp:573:8:\n error: 'struct bpf_btf_info' has no member named 'name'\n 573 | info.name = (__u64)name;\n | ^~~~\n/home/autobuild/autobuild/instance-18/output-1/build/bpftrace-0.19.1/src/bpffeature.cpp:574:8:\n error: 'struct bpf_btf_info' has no member named 'name_len'\n 574 | info.name_len = sizeof(name);\n\nThe problem disappeared from the autobuilders due to newer headers\nversions used for the buildroot toolchain or other build errors occuring\nearlier, like llvm version mismatches.\n\nThe build error can today still be reproduced with this defconfig\n\nBR2_aarch64=y\nBR2_KERNEL_HEADERS_5_10=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\nTo fix the problem we raise the BR2_TOOLCHAIN_HEADERS_AT_LEAST_ version\nnumber.\n\nFixes:\nhttps://autobuild.buildroot.net/results/dbe/dbecf88c7edba357cee8fea31294ddb9f4d188ad/\nhttps://autobuild.buildroot.net/results/df5/df59e038de47f63d14e1be7bd12dd16a69636f79/\nhttps://autobuild.buildroot.net/results/359/3595d39dd53a686bbf996dd4e532ced44906b9e3/\nhttps://autobuild.buildroot.net/results/e4f/e4f95a5f30a605eadb81802075ea6bb1e2880684/\nhttps://autobuild.buildroot.net/results/bd0/bd075cb8c55f9f8a017711dc804b8d81ae89b4c5/\n\nSigned-off-by: Bernd Kuhls <bernd@kuhls.net>\n---\n package/libbpf/libbpf.mk | 15 ++++++++-------\n 1 file changed, 8 insertions(+), 7 deletions(-)", "diff": "diff --git a/package/libbpf/libbpf.mk b/package/libbpf/libbpf.mk\nindex 65061a82bc..cded3734b4 100644\n--- a/package/libbpf/libbpf.mk\n+++ b/package/libbpf/libbpf.mk\n@@ -18,13 +18,14 @@ define LIBBPF_BUILD_CMDS\n \t\t-C $(@D)/src\n endef\n \n-# bpf/bpf.h installed by libbpf uses bpf_iter_link_info that was added since\n-# kernel 5.9, so we need to update some uapi headers in STAGING_DIR if the\n-# toolchain is build with linux-headers < 5.9.\n-# Otherwise bpf/bpf.h is broken due to out of date linux/bpf.h installed by the\n-# toolchain.\n-# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a5cbe05a6673b85bed2a63ffcfea6a96c6410cff\n-ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9),)\n+# bpftrace uses variables from bpf_btf_info that were added since kernel\n+# 5.11, so we need to update some uapi headers in STAGING_DIR if the\n+# toolchain is build with linux-headers < 5.11.\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=5329722057d41aebc31e391907a501feaa42f7d9\n+# https://github.com/bpftrace/bpftrace/commit/fea31939899db48fa6d28f5ce880bfc39250ec9f\n+ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11),)\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": [ "4/8" ] }