linux-IllusionX/tools/include
Hao Luo eaa6bcb71e bpf: Introduce bpf_per_cpu_ptr()
Add bpf_per_cpu_ptr() to help bpf programs access percpu vars.
bpf_per_cpu_ptr() has the same semantic as per_cpu_ptr() in the kernel
except that it may return NULL. This happens when the cpu parameter is
out of range. So the caller must check the returned value.

Signed-off-by: Hao Luo <haoluo@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200929235049.2533242-5-haoluo@google.com
2020-10-02 15:00:49 -07:00
..
asm
asm-generic
linux btf: Add BTF_ID_LIST_SINGLE macro 2020-09-21 15:00:40 -07:00
nolibc
tools
trace/events
uapi bpf: Introduce bpf_per_cpu_ptr() 2020-10-02 15:00:49 -07:00
vdso