aboutsummaryrefslogtreecommitdiffstats
path: root/tools/arch
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-02-28 15:31:23 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-03-01 01:31:47 +0100
commit51edf5f6e015c48b62e24ab2fbcad8885ca1c74e (patch)
treef62542a11348c36a6e3ef331659a7d17f0e6806c /tools/arch
parentlibbpf: fix formatting for btf_ext__get_raw_data (diff)
downloadlinux-dev-51edf5f6e015c48b62e24ab2fbcad8885ca1c74e.tar.xz
linux-dev-51edf5f6e015c48b62e24ab2fbcad8885ca1c74e.zip
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 <andriin@fb.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/arch')
0 files changed, 0 insertions, 0 deletions