aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2022-10-04 13:34:33 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2022-12-08 10:49:46 +0100
commitaf4dcb6d78b2b05a0431dfd3f67713bba8dc0900 (patch)
treea77b4e78247c6bf0d6bd70961b7e34a84211a153 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent8ea2876577b57805489e3044de7fcb0330c52f40 (diff)
ovl: use plain list filler in indexdir and workdir cleanup
Those two cleanup routines are using the helper ovl_dir_read() with the merge dir filler, which populates an rb tree, that is never used. The index dir entry names all have a long (42 bytes) constant prefix, so it is not surprising that perf top has demostrated high CPU usage by rb tree population during cleanup of a large index dir: - 9.53% ovl_fill_merge - 78.41% ovl_cache_entry_find_link.constprop.27 + 72.11% strncmp Use the plain list filler that does not populate the unneeded rb tree. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions