diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2026-10-31 21:55:36 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-11-02 22:20:00 +0000 |
| commit | fcda8096dc5d9cabe86a5bab7fa514d01b5011a7 (patch) | |
| tree | 7c01b6923a598ed61d246368a29810257d40aa0d /scripts/basic/split-include.c | |
| parent | 1ddffb57b36239e84b8224b12e34b87f6031b29c (diff) | |
| download | linux-fcda8096dc5d9cabe86a5bab7fa514d01b5011a7.tar.gz linux-fcda8096dc5d9cabe86a5bab7fa514d01b5011a7.zip | |
selftests/bpf: Don't cast a pointer to .bss in arena_htab_asm
arena_htab_asm is arena_htab.c with BPF_ARENA_FORCE_ASM. In this variant
__arena has no address space, so arr1 is in .bss, and cast_kern() is a real
insn. cast_kern(arr) turns the pointer to .bss into an offset in the arena.
Each of the 100000 stores to arr[i] faults, and the fault handler of the
arena skips it.
Remove the cast. In the other variant it is a nop. The prog takes 67 ms in
place of 950 ms on a kernel with lockdep.
With one time slice for all may_goto of a prog, may_goto stops the loops of
the old prog after 250 ms. The test does not see that, because it looks at
the first keys only.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261031215543.682284-3-alexei.starovoitov@gmail.com
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
