Re: [PATCH bpf-next 0/3] libbpf: auto-resize relocatable LOAD/STORE instructions

2020-10-08 Thread Andrii Nakryiko
On Thu, Oct 8, 2020 at 3:34 AM Luka Perkov wrote: > > Hello Andrii, > > On Wed, Oct 7, 2020 at 8:01 PM Andrii Nakryiko > wrote: > > > > On Wed, Oct 7, 2020 at 10:56 AM Luka Perkov wrote: > > > > > > Hello Andrii, > > > > > > On Fri, Oct 2, 2020 at 3:09 AM Andrii Nakryiko wrote: > > > > Patch se

Re: [PATCH bpf-next 0/3] libbpf: auto-resize relocatable LOAD/STORE instructions

2020-10-08 Thread Luka Perkov
Hello Andrii, On Wed, Oct 7, 2020 at 8:01 PM Andrii Nakryiko wrote: > > On Wed, Oct 7, 2020 at 10:56 AM Luka Perkov wrote: > > > > Hello Andrii, > > > > On Fri, Oct 2, 2020 at 3:09 AM Andrii Nakryiko wrote: > > > Patch set implements logic in libbpf to auto-adjust memory size (1-, 2-, > > > 4-

Re: [PATCH bpf-next 0/3] libbpf: auto-resize relocatable LOAD/STORE instructions

2020-10-07 Thread Andrii Nakryiko
On Wed, Oct 7, 2020 at 10:56 AM Luka Perkov wrote: > > Hello Andrii, > > On Fri, Oct 2, 2020 at 3:09 AM Andrii Nakryiko wrote: > > Patch set implements logic in libbpf to auto-adjust memory size (1-, 2-, 4-, > > 8-bytes) of load/store (LD/ST/STX) instructions which have BPF CO-RE field > > offset

Re: [PATCH bpf-next 0/3] libbpf: auto-resize relocatable LOAD/STORE instructions

2020-10-07 Thread Luka Perkov
Hello Andrii, On Fri, Oct 2, 2020 at 3:09 AM Andrii Nakryiko wrote: > Patch set implements logic in libbpf to auto-adjust memory size (1-, 2-, 4-, > 8-bytes) of load/store (LD/ST/STX) instructions which have BPF CO-RE field > offset relocation associated with it. In practice this means transparen

[PATCH bpf-next 0/3] libbpf: auto-resize relocatable LOAD/STORE instructions

2020-10-01 Thread Andrii Nakryiko
Patch set implements logic in libbpf to auto-adjust memory size (1-, 2-, 4-, 8-bytes) of load/store (LD/ST/STX) instructions which have BPF CO-RE field offset relocation associated with it. In practice this means transparent handling of 32-bit kernels, both pointer and unsigned integers. Signed int