Re: [PATCH v6 bpf-next 04/14] libbpf: implement BPF CO-RE offset relocation algorithm

2019-08-07 Thread Andrii Nakryiko
On Wed, Aug 7, 2019 at 3:16 PM Alexei Starovoitov wrote: > > On Wed, Aug 07, 2019 at 02:39:51PM -0700, Andrii Nakryiko wrote: > > This patch implements the core logic for BPF CO-RE offsets relocations. > > Every instruction that needs to be relocated has corresponding > > bpf_offset_reloc as part

Re: [PATCH v6 bpf-next 04/14] libbpf: implement BPF CO-RE offset relocation algorithm

2019-08-07 Thread Alexei Starovoitov
On Wed, Aug 07, 2019 at 02:39:51PM -0700, Andrii Nakryiko wrote: > This patch implements the core logic for BPF CO-RE offsets relocations. > Every instruction that needs to be relocated has corresponding > bpf_offset_reloc as part of BTF.ext. Relocations are performed by trying > to match recorded

[PATCH v6 bpf-next 04/14] libbpf: implement BPF CO-RE offset relocation algorithm

2019-08-07 Thread Andrii Nakryiko
This patch implements the core logic for BPF CO-RE offsets relocations. Every instruction that needs to be relocated has corresponding bpf_offset_reloc as part of BTF.ext. Relocations are performed by trying to match recorded "local" relocation spec against potentially many compatible "target" type