summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorMenglong Dong <menglong8.dong@gmail.com>2025-04-13 09:44:44 +0800
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-04-17 15:16:51 -0400
commit92f1d3b40179b15630d72e2c6e4e25a899b67ba9 (patch)
tree2789f8494192a745b0b10ad8a210284953891635 /tools/testing/selftests/bpf/progs/test_autoload.c
parentc45c585dde535e5ae2c363594bde3e05ce94a296 (diff)
downloadlinux-92f1d3b40179b15630d72e2c6e4e25a899b67ba9.tar.gz
linux-92f1d3b40179b15630d72e2c6e4e25a899b67ba9.tar.bz2
linux-92f1d3b40179b15630d72e2c6e4e25a899b67ba9.zip
ftrace: fix incorrect hash size in register_ftrace_direct()
The maximum of the ftrace hash bits is made fls(32) in register_ftrace_direct(), which seems illogical. So, we fix it by making the max hash bits FTRACE_HASH_MAX_BITS instead. Link: https://lore.kernel.org/20250413014444.36724-1-dongml2@chinatelecom.cn Fixes: d05cb470663a ("ftrace: Fix modification of direct_function hash while in use") Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions