aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/linker.c
diff options
context:
space:
mode:
authorLorenz Bauer <[email protected]>2021-04-29 13:46:56 +0000
committerAlexei Starovoitov <[email protected]>2021-05-10 23:13:01 +0000
commitc9e73e3d2b1eb1ea7ff068e05007eec3bd8ef1c9 (patch)
tree4a7faeae5e95b86efce632ff25f08a15b725dea9 /tools/lib/bpf/linker.c
parentbpf: verifier: Use copy_array for jmp_history (diff)
downloadkernel-c9e73e3d2b1eb1ea7ff068e05007eec3bd8ef1c9.tar.gz
kernel-c9e73e3d2b1eb1ea7ff068e05007eec3bd8ef1c9.zip
bpf: verifier: Allocate idmap scratch in verifier env
func_states_equal makes a very short lived allocation for idmap, probably because it's too large to fit on the stack. However the function is called quite often, leading to a lot of alloc / free churn. Replace the temporary allocation with dedicated scratch space in struct bpf_verifier_env. Signed-off-by: Lorenz Bauer <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Edward Cree <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/linker.c')
0 files changed, 0 insertions, 0 deletions