bpf: Optimize program stats
authorAlexei Starovoitov <ast@kernel.org>
Wed, 10 Feb 2021 03:36:26 +0000 (19:36 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 11 Feb 2021 15:17:50 +0000 (16:17 +0100)
commit700d4796ef59f5faf240d307839bd419e2b6bdff
treedc3d98f6691576479f2b727ce0d9ce7726b33ad7
parent6df8fb83301d68ea0a0c0e1cbcc790fcc333ed12
bpf: Optimize program stats

Move bpf_prog_stats from prog->aux into prog to avoid one extra load
in critical path of program execution.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210210033634.62081-2-alexei.starovoitov@gmail.com
include/linux/bpf.h
include/linux/filter.h
kernel/bpf/core.c
kernel/bpf/syscall.c
kernel/bpf/trampoline.c
kernel/bpf/verifier.c