aboutsummaryrefslogtreecommitdiffstats
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2025-01-17 00:39:57 +0000
committerDaniel Borkmann <[email protected]>2025-01-17 14:16:56 +0000
commitf8a05692de060a889fe5b9eb00cc8f1fc8935899 (patch)
tree0b7d37e869f898dba1aa11252f214a178e8f0fb0 /lib/timerqueue.c
parentMerge branch 'support-eliding-map-lookup-nullness' (diff)
downloadkernel-f8a05692de060a889fe5b9eb00cc8f1fc8935899.tar.gz
kernel-f8a05692de060a889fe5b9eb00cc8f1fc8935899.zip
libbpf: Work around kernel inconsistently stripping '.llvm.' suffix
Some versions of kernel were stripping out '.llvm.<hash>' suffix from kerne symbols (produced by Clang LTO compilation) from function names reported in available_filter_functions, while kallsyms reported full original name. This confuses libbpf's multi-kprobe logic of finding all matching kernel functions for specified user glob pattern by joining available_filter_functions and kallsyms contents, because joining by full symbol name won't work for symbols containing '.llvm.<hash>' suffix. This was eventually fixed by [0] in the kernel, but we'd like to not regress multi-kprobe experience and add a work around for this bug on libbpf side, stripping kallsym's name if it matches user pattern and contains '.llvm.' suffix. [0] fb6a421fb615 ("kallsyms: Match symbols exactly with CONFIG_LTO_CLANG") Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions