diff options
| author | Andrii Nakryiko <andrii@kernel.org> | 2021-07-26 12:11:23 -0700 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2021-07-26 12:29:20 -0700 |
| commit | 793eccae89bb495cfb44dceeaa13044160c49611 (patch) | |
| tree | 1a4ef59e764121dc2cacab734953201e787ece9c /tools/lib/bpf/Build | |
| parent | bpf/tests: Do not PASS tests without actually testing the result (diff) | |
| parent | libbpf: Split CO-RE logic into relo_core.c. (diff) | |
| download | linux-793eccae89bb495cfb44dceeaa13044160c49611.tar.gz linux-793eccae89bb495cfb44dceeaa13044160c49611.zip | |
Merge branch 'libbpf: Move CO-RE logic into separate file.'
Alexei Starovoitov says:
====================
From: Alexei Starovoitov <ast@kernel.org>
Split CO-RE processing logic from libbpf into separate file
with an interface that doesn't dependend on libbpf internal details.
As the next step relo_core.c will be compiled with libbpf and with the kernel.
The _internal_ interface between libbpf/CO-RE and kernel/CO-RE will be:
int bpf_core_apply_relo_insn(const char *prog_name, struct bpf_insn *insn,
int insn_idx,
const struct bpf_core_relo *relo,
int relo_idx,
const struct btf *local_btf,
struct bpf_core_cand_list *cands);
where bpf_core_relo and bpf_core_cand_list are simple types
prepared by kernel and libbpf.
Though diff stat shows a lot of lines inserted/deleted they are moved lines.
Pls review with diff.colorMoved.
====================
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'tools/lib/bpf/Build')
| -rw-r--r-- | tools/lib/bpf/Build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/Build b/tools/lib/bpf/Build index 430f6874fa41..94f0a146bb7b 100644 --- a/tools/lib/bpf/Build +++ b/tools/lib/bpf/Build @@ -1,3 +1,3 @@ libbpf-y := libbpf.o bpf.o nlattr.o btf.o libbpf_errno.o str_error.o \ netlink.o bpf_prog_linfo.o libbpf_probes.o xsk.o hashmap.o \ - btf_dump.o ringbuf.o strset.o linker.o gen_loader.o + btf_dump.o ringbuf.o strset.o linker.o gen_loader.o relo_core.o |
