From: sashiko-bot@kernel.org
To: "Geyslan Gregório" <gg@condado.dev>, bpf@vger.kernel.org
Subject: Re: [PATCH bpf-next 1/3] libbpf: Do not resolve typed ksyms through kallsyms
Date: Sat, 05 Dec 2026 21:33:09 +0000 [thread overview]
Message-ID: <sashiko-outbox-251911@kernel.org> (raw)
In-Reply-To: <20261205-libbpf-weak-typed-ksyms-no-vmlinux-btf-v1-1-77cc642f7d4b@condado.dev>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] libbpf: multi-line comment style violation in kallsyms_cb()
--
commit f31b5ccf34e4344898624b3e8f6fa70dfe8ca091
Author: Geyslan Gregório <gg@condado.dev>
libbpf: Do not resolve typed ksyms through kallsyms
This commit changes kallsyms_cb() to skip typed ksyms instead of only
skipping non-variable ksyms, so weak typed variables missing from kernel
BTF are not marked as resolved via /proc/kallsyms.
> diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
> index 2b188e64e3566..6fe0143ea9590 100644
> --- a/tools/lib/bpf/libbpf.c
> +++ b/tools/lib/bpf/libbpf.c
[ ... ]
> @@ -9781,8 +9780,10 @@ static int kallsyms_cb(unsigned long long sym_addr, char sym_type,
> if (!ext || ext->type != EXT_KSYM)
> return 0;
>
> - t = btf__type_by_id(obj->btf, ext->btf_id);
> - if (!btf_is_var(t))
> + /* Typed ksyms, variables and functions, are resolved through kernel
> + * BTF only.
> + */
[Severity: Low]
BPF code uses the kernel multi-line comment style where the opening /* sits
on its own line and the text starts on the next line. Should this comment
move the opening /* to its own line (or be shortened to a single line)?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205-libbpf-weak-typed-ksyms-no-vmlinux-btf-v1-0-77cc642f7d4b@condado.dev?part=1
next prev parent reply other threads:[~2026-12-05 21:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 21:28 [PATCH bpf-next 0/3] libbpf: Load objects with weak typed ksyms on kernels without BTF Geyslan Gregório
2026-12-05 21:28 ` Geyslan Gregório via B4 Relay
2026-12-05 21:28 ` [PATCH bpf-next 1/3] libbpf: Do not resolve typed ksyms through kallsyms Geyslan Gregório
2026-12-05 21:28 ` Geyslan Gregório via B4 Relay
2026-12-05 21:33 ` sashiko-bot [this message]
2026-12-05 21:28 ` [PATCH bpf-next 2/3] libbpf: Load objects with weak typed ksyms on kernels without BTF Geyslan Gregório
2026-12-05 21:28 ` Geyslan Gregório via B4 Relay
2026-12-05 21:36 ` sashiko-bot
2026-12-05 21:28 ` [PATCH bpf-next 3/3] selftests/bpf: Test weak typed ksyms without vmlinux BTF Geyslan Gregório
2026-12-05 21:28 ` Geyslan Gregório via B4 Relay
2026-12-05 21:40 ` sashiko-bot
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=sashiko-outbox-251911@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=gg@condado.dev \
--cc=sashiko-reviews@lists.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.