diff options
| author | Lorenz Bauer <lmb@cloudflare.com> | 2021-04-29 16:46:56 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2021-05-11 02:13:01 +0300 |
| commit | c9e73e3d2b1eb1ea7ff068e05007eec3bd8ef1c9 (patch) | |
| tree | 4a7faeae5e95b86efce632ff25f08a15b725dea9 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 06ab6a505583f9adbf5e1f05d86e7bdd7b02248e (diff) | |
| download | linux-c9e73e3d2b1eb1ea7ff068e05007eec3bd8ef1c9.tar.xz | |
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 <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://lore.kernel.org/bpf/20210429134656.122225-4-lmb@cloudflare.com
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
