aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_compile_commands.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2019-02-28 15:31:23 -0800
committerDaniel Borkmann <[email protected]>2019-03-01 01:31:47 +0100
commit51edf5f6e015c48b62e24ab2fbcad8885ca1c74e (patch)
treef62542a11348c36a6e3ef331659a7d17f0e6806c /scripts/gen_compile_commands.py
parent1baabdc1089eb807cdcabebad50b36c8b9895a48 (diff)
btf: allow to customize dedup hash table size
Default size of dedup table (16k) is good enough for most binaries, even typical vmlinux images. But there are cases of binaries with huge amount of BTF types (e.g., allyesconfig variants of kernel), which benefit from having bigger dedup table size to lower amount of unnecessary hash collisions. Tools like pahole, thus, can tune this parameter to reach optimal performance. This change also serves double purpose of allowing tests to force hash collisions to test some corner cases, used in follow up patch. Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions