bpf: inline bpf_get_smp_processor_id() helper
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 2 Apr 2024 02:13:03 +0000 (19:13 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 3 Apr 2024 17:29:56 +0000 (10:29 -0700)
commit1ae6921009e5d72787e07ccc04754514ccf6bc99
tree1ef59b0a783c0ac47d1ba63d5aaa3c932ec9dcd5
parent7bdbf7446305cb65c510c16d57cde82bc76b234a
bpf: inline bpf_get_smp_processor_id() helper

If BPF JIT supports per-CPU MOV instruction, inline bpf_get_smp_processor_id()
to eliminate unnecessary function calls.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/20240402021307.1012571-3-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c