mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Alexei Starovoitov" <alexei.starovoitov@gmail.com>
To: "Qiliang Yuan" <odys.yuan@gmail.com>,
	"Daniel Borkmann" <daniel@iogearbox.net>,
	"John Fastabend" <john.fastabend@gmail.com>,
	"Andrii Nakryiko" <andrii@kernel.org>,
	"Eduard Zingerman" <eddyz87@gmail.com>,
	"Kumar Kartikeya Dwivedi" <memxor@gmail.com>,
	"Martin KaFai Lau" <martin.lau@linux.dev>,
	"Song Liu" <song@kernel.org>,
	"Yonghong Song" <yonghong.song@linux.dev>,
	"Jiri Olsa" <jolsa@kernel.org>,
	"Emil Tsalapatis" <emil@etsalapatis.com>,
	"Ihor Solodrai" <ihor.solodrai@linux.dev>,
	"Shuah Khan" <shuah@kernel.org>
Cc: <bpf@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-kselftest@vger.kernel.org>
Subject: Re: [PATCH bpf-next 0/4] bpf: Apply the rewrites of bpf_do_misc_fixups() at once
Date: Fri, 02 Oct 2026 11:39:26 +0000	[thread overview]
Message-ID: <DLUBNPLXRU86.358M4SOQJIGWI@gmail.com> (raw)
In-Reply-To: <20261001-bpf-verifier-patch-batch-v1-0-a12df8a09160@gmail.com>

On Thu, Oct 01, 2026 at 05:35 PM Qiliang Yuan <odys.yuan@gmail.com> wrote:
> The other passes still use bpf_patch_insn_data() and can move over to
> the list one at a time in follow-up series.

That's not going to fly.
After this series there are two implementations of the same thing.
patch_list_adj_aux() is a copy of adjust_insn_aux_data().
patch_list_adj_insn() redoes bpf_adj_branches().
The tail of bpf_patch_list_commit() redoes adjust_subprog_starts(),
bpf_adj_linfo(), adjust_insn_arrays(), bpf_adjust_func_ptrs() and
adjust_poke_descs().
__bpf_patch_insn_data() and these helpers were changed four times
in September. Every such change would have to be done twice.

Jiong's RFC converted all passes and deleted the old code in the
last patch:
https://lore.kernel.org/bpf/1562275611-31790-1-git-send-email-jiong.wang@netronome.com/
Pls do the same in one series. One-off patches can be add + commit.

>                       base      patched
>   pyperf180          0.575 s    0.458 s   -20.4%
>   pyperf600          1.491 s    1.041 s   -30.2%

That's veristat on x86.
test_progs loads pyperf with BPF_F_TEST_RND_HI32, and s390, riscv,
powerpc need zext. bpf_opt_subreg_zext_lo32_rnd_hi32() does more
patches than misc_fixups there, I think, and it has one call site.

> On a side note, the largest part of the time to load pyperf180 is the
> arg tracking analysis: analyze_subprog() takes about half of it on base,
> __arg_track_join() alone about 30%.

That's unexpected. Pls share the perf report.

pw-bot: cr

  parent reply	other threads:[~2026-10-02 11:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-01  9:35 Qiliang Yuan
2026-10-01  9:35 ` [PATCH bpf-next 1/4] bpf: Add a list of deferred instruction patches Qiliang Yuan
2026-10-01 10:27   ` bot+bpf-ci
2026-10-01  9:35 ` [PATCH bpf-next 2/4] bpf: Queue the rewrites of bpf_do_misc_fixups() and apply them at once Qiliang Yuan
2026-10-01 10:27   ` bot+bpf-ci
2026-10-02 13:25     ` Qiliang Yuan
2026-10-01  9:35 ` [PATCH bpf-next 3/4] bpf: Drop the constant delta from bpf_do_misc_fixups() Qiliang Yuan
2026-10-01  9:35 ` [PATCH bpf-next 4/4] selftests/bpf: Test jumps around patches of bpf_do_misc_fixups() Qiliang Yuan
2026-10-02 11:39 ` Alexei Starovoitov [this message]
2026-10-02 13:25   ` [PATCH bpf-next 0/4] bpf: Apply the rewrites of bpf_do_misc_fixups() at once Qiliang Yuan

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=DLUBNPLXRU86.358M4SOQJIGWI@gmail.com \
    --to=alexei.starovoitov@gmail.com \
    --cc=andrii@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=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=memxor@gmail.com \
    --cc=odys.yuan@gmail.com \
    --cc=shuah@kernel.org \
    --cc=song@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®