Andrii Nakryiko 0b56e637f7 bpf: inline bpf_map_lookup_elem() helper for PERCPU_HASH map
Using new per-CPU BPF instruction, partially inline
bpf_map_lookup_elem() helper for per-CPU hashmap BPF map. Just like for
normal HASH map, we still generate a call into __htab_map_lookup_elem(),
but after that we resolve per-CPU element address using a new
instruction, saving on extra functions 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-5-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2024-04-03 10:29:56 -07:00
..
2024-03-20 21:05:43 -07:00
2023-12-06 17:17:20 -08:00
2024-02-07 16:38:20 -08:00
2022-05-10 11:20:45 -07:00
2023-04-29 10:05:22 -07:00
2024-03-11 15:37:23 -07:00
2023-10-23 15:01:53 -07:00