diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-04-01 19:13:03 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-04-03 10:29:56 -0700 |
commit | 1ae6921009e5d72787e07ccc04754514ccf6bc99 (patch) | |
tree | 1ef59b0a783c0ac47d1ba63d5aaa3c932ec9dcd5 /kernel/bpf/arraymap.c | |
parent | 7bdbf7446305cb65c510c16d57cde82bc76b234a (diff) |
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>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions