Files
linux-st/include/uapi/linux
Alexei Starovoitov fbd94c7afc bpf: Pass a set of bpf_core_relo-s to prog_load command.
struct bpf_core_relo is generated by llvm and processed by libbpf.
It's a de-facto uapi.
With CO-RE in the kernel the struct bpf_core_relo becomes uapi de-jure.
Add an ability to pass a set of 'struct bpf_core_relo' to prog_load command
and let the kernel perform CO-RE relocations.

Note the struct bpf_line_info and struct bpf_func_info have the same
layout when passed from LLVM to libbpf and from libbpf to the kernel
except "insn_off" fields means "byte offset" when LLVM generates it.
Then libbpf converts it to "insn index" to pass to the kernel.
The struct bpf_core_relo's "insn_off" field is always "byte offset".

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211201181040.23337-6-alexei.starovoitov@gmail.com
2021-12-02 11:18:35 -08:00
..
2021-09-14 08:46:08 +02:00
2021-11-01 13:36:08 +00:00
2021-08-23 13:19:09 +02:00
2021-10-29 12:38:43 +02:00
2021-10-28 10:20:31 +02:00
2021-10-07 13:51:11 +02:00
2021-10-06 12:05:51 +00:00
2021-11-15 07:53:10 -08:00
2021-10-26 14:58:45 +01:00
2021-10-14 23:06:28 +02:00
2021-10-18 17:20:50 +02:00
2021-10-16 14:58:13 +01:00
2021-09-16 14:36:26 +01:00
2021-09-15 13:41:36 +02:00