]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: Make update_prog_stats() always_inline
authorMenglong Dong <menglong8.dong@gmail.com>
Sat, 21 Jun 2025 04:55:01 +0000 (12:55 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 23 Jun 2025 16:21:07 +0000 (09:21 -0700)
commitc11f34e30088b25b7e240e12566fcf28f7ad07cc
treeb10329776a5408870f43c6fd4cea7eda1dab8535
parent99fe8af069a9fa5b09140518b1364e35713a642e
bpf: Make update_prog_stats() always_inline

The function update_prog_stats() will be called in the bpf trampoline.
In most cases, it will be optimized by the compiler by making it inline.
However, we can't rely on the compiler all the time, and just make it
__always_inline to reduce the possible overhead.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Link: https://lore.kernel.org/r/20250621045501.101187-1-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/trampoline.c