All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anton Protopopov <a.s.protopopov@gmail.com>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>,
	Andrii Nakryiko <andrii@kernel.org>,
	Eduard Zingerman <eddyz87@gmail.com>,
	Kumar Kartikeya Dwivedi <memxor@gmail.com>,
	Jiri Olsa <jolsa@kernel.org>, Alan Maguire <almagui@kernel.org>,
	John Fastabend <john.fastabend@gmail.com>,
	bpf@vger.kernel.org
Subject: Re: [PATCH v1 bpf-next 4/5] resolve_btfids: Exclude the code of kernel/bpf and of the JIT
Date: Thu, 26 Nov 2026 13:18:39 +0000	[thread overview]
Message-ID: <awgxr-8TOpGGVVra@mail.gmail.com> (raw)
In-Reply-To: <DN4QDHMFA99A.27B7GAJLQQ7DK@gmail.com>

On 26/11/26 12:53AM, Alexei Starovoitov wrote:
> On Wed, Nov 25, 2026 at 01:28 PM Anton Protopopov <a.s.protopopov@gmail.com> wrote:
> > bpf_tramp_ftrace_ops_func() and bpf_arch_text_invalidate(). Read the
> > symbols of kernel/bpf/built-in.a and arch/<arch>/net/built-in.a with
> > the llvm-nm of llvm-config, which reads ELF objects and LTO bitcode,
> > and do not tag these functions.
> 
> bot is correct.
> Let's run ${NM} in gen-btf.sh and give its output to resolve_btfids ?
> kbuild knows the paths and the arch. The tool doesn't have to.
> ${NM} reads what ${CC} writes. HAS_LTO_CLANG requires it to be llvm-nm.
> link-vmlinux.sh runs it for kallsyms already.
> llvm-config can be of another LLVM than the compiler. llvm-mc.sh says so.
> image_func() finds a function by name. No need to copy and sort the names.
> Then LLVM_NM, the nm mode of llvm-mc.sh, bpf_archives[], popen(), qsort()
> and bsearch() go away.
> 
> It replaces patch 4.

Thanks, I will adopt your variant (and add your "Co-developed-by"
and "Signed-off-by").

> [...]

  reply	other threads:[~2026-11-26 13:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 21:28 [PATCH v1 bpf-next 0/5] Do not tag selected functions as fmodret targets Anton Protopopov
2026-11-25 21:28 ` [PATCH v1 bpf-next 1/5] resolve_btfids: Do not tag functions which work on BPF objects Anton Protopopov
2026-11-25 21:25   ` sashiko-bot
2026-11-26 10:50     ` Anton Protopopov
2026-11-25 22:14   ` bot+bpf-ci
2026-11-26 10:49     ` Anton Protopopov
2026-11-25 21:28 ` [PATCH v1 bpf-next 2/5] resolve_btfids: Do not tag kfuncs and helpers Anton Protopopov
2026-11-25 21:28 ` [PATCH v1 bpf-next 3/5] resolve_btfids: Exclude a set of functions by name Anton Protopopov
2026-11-25 21:57   ` bot+bpf-ci
2026-11-26  0:55   ` Alexei Starovoitov
2026-11-26  0:56   ` Alexei Starovoitov
2026-11-26 11:29     ` Anton Protopopov
2026-11-25 21:28 ` [PATCH v1 bpf-next 4/5] resolve_btfids: Exclude the code of kernel/bpf and of the JIT Anton Protopopov
2026-11-25 22:15   ` bot+bpf-ci
2026-11-26  0:53   ` Alexei Starovoitov
2026-11-26 13:18     ` Anton Protopopov [this message]
2026-11-25 21:28 ` [PATCH v1 bpf-next 5/5] selftests/bpf: Test functions which must have no fmod_ret tag Anton Protopopov

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=awgxr-8TOpGGVVra@mail.gmail.com \
    --to=a.s.protopopov@gmail.com \
    --cc=alexei.starovoitov@gmail.com \
    --cc=almagui@kernel.org \
    --cc=andrii@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=memxor@gmail.com \
    /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.