From: bot+bpf-ci@kernel.org
To: ihor.solodrai@linux.dev,ast@kernel.org,andrii@kernel.org,daniel@iogearbox.net,eddyz87@gmail.com,memxor@gmail.com
Cc: alan.maguire@oracle.com,emil@etsalapatis.com,jolsa@kernel.org,song@kernel.org,tj@kernel.org,yonghong.song@linux.dev,bpf@vger.kernel.org,linux-kernel@vger.kernel.org,sched-ext@lists.linux.dev,ast@kernel.org,andrii@kernel.org,daniel@iogearbox.net,martin.lau@kernel.org,eddyz87@gmail.com,yonghong.song@linux.dev,mason@kernel.org,ihor.solodrai@linux.dev
Subject: Re: [PATCH bpf-next v3 1/6] libbpf: Separate interfaces shared with in-tree tools
Date: Tue, 24 Nov 2026 23:40:05 +0000 (UTC) [thread overview]
Message-ID: <8622ee5bbbfeb7c2e4f3692775dcdf3fcf9752de636cc89b4140f2053c89aeaa@mail.kernel.org> (raw)
In-Reply-To: <20261124224811.16134-2-ihor.solodrai@linux.dev>
[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]
> libbpf: Separate interfaces shared with in-tree tools
TL;DR: Design question: Andrii Nakryiko objected earlier to the new
libbpf_tools.h header and preferred guarding the u32 poison pragmas in
libbpf_internal.h; this version doesn't address that.
> diff --git a/tools/lib/bpf/libbpf_tools.h b/tools/lib/bpf/libbpf_tools.h
> new file mode 100644
> index 000000000000..5c8d6d0d2fdd
> --- /dev/null
> +++ b/tools/lib/bpf/libbpf_tools.h
> @@ -0,0 +1,184 @@
> +/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
> +#ifndef __LIBBPF_TOOLS_H
> +#define __LIBBPF_TOOLS_H
Andrii Nakryiko objected to introducing libbpf_tools.h in the v2 and v3
discussions. He prefers keeping these declarations in libbpf_internal.h
and guarding the u32 poison pragmas with an #ifdef that resolve_btfids can
disable:
I don't like libbpf_tools.h approach, if GCC poison is a problem I'd
rather guard that.
The poisoning is the root cause in the commit message, and this version
still adds the new header without a respin addressing that.
Should the poison pragmas in libbpf_internal.h be guarded instead of
splitting out libbpf_tools.h?
---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
CI run summary: https://github.com/kernel-patches/bpf/actions/runs/45506767613
next prev parent reply other threads:[~2026-11-24 23:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 22:48 [PATCH bpf-next v3 0/6] libbpf: Support kernel-side kfunc variants Ihor Solodrai
2026-11-24 22:48 ` [PATCH bpf-next v3 1/6] libbpf: Separate interfaces shared with in-tree tools Ihor Solodrai
2026-11-24 22:50 ` Ihor Solodrai
2026-11-24 22:53 ` Andrii Nakryiko
2026-11-24 23:40 ` bot+bpf-ci [this message]
2026-11-24 22:48 ` [PATCH bpf-next v3 2/6] sched_ext: Prefer ___v2 kfunc names in compat.bpf.h Ihor Solodrai
2026-11-24 22:48 ` [PATCH bpf-next v3 3/6] libbpf: Resolve kfunc variants by prototype Ihor Solodrai
2026-11-24 23:40 ` bot+bpf-ci
2026-11-24 22:48 ` [PATCH bpf-next v3 4/6] selftests/bpf: Test kfunc variant selection " Ihor Solodrai
2026-11-24 22:48 ` [PATCH bpf-next v3 5/6] resolve_btfids: Reject ambiguous kfunc variants Ihor Solodrai
2026-11-24 22:48 ` [PATCH bpf-next v3 6/6] docs/bpf: Describe how to change a kfunc's prototype Ihor Solodrai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8622ee5bbbfeb7c2e4f3692775dcdf3fcf9752de636cc89b4140f2053c89aeaa@mail.kernel.org \
--to=bot+bpf-ci@kernel.org \
--cc=alan.maguire@oracle.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=emil@etsalapatis.com \
--cc=ihor.solodrai@linux.dev \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.lau@kernel.org \
--cc=mason@kernel.org \
--cc=memxor@gmail.com \
--cc=sched-ext@lists.linux.dev \
--cc=song@kernel.org \
--cc=tj@kernel.org \
--cc=yonghong.song@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®