diff options
| author | Donglin Peng <pengdonglin@xiaomi.com> | 2026-01-09 15:59:58 +0300 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2026-01-14 03:20:38 +0300 |
| commit | 8c3070e159ba00424f0389ead694cacd85af260e (patch) | |
| tree | 649d5e04e85f375cf87baef4c4fb9aee1810d9dd /scripts | |
| parent | 33ecca574f1c27cbf560aee9c1b3045dcb9f8de5 (diff) | |
| download | linux-8c3070e159ba00424f0389ead694cacd85af260e.tar.xz | |
btf: Optimize type lookup with binary search
Improve btf_find_by_name_kind() performance by adding binary search
support for sorted types. Falls back to linear search for compatibility.
Signed-off-by: Donglin Peng <pengdonglin@xiaomi.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260109130003.3313716-7-dolinux.peng@gmail.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
