Re: [PATCH bpf-next 2/4] libbpf: Support 32-bit static data loads

2019-02-27 Thread Y Song
FYI.The latest llvm trunk will not emit errors for static variables. The patch also gives detailed information how to relate a particular static variable to a particular relocation. https://reviews.llvm.org/rL354954 Thanks, Yonghong On Fri, Feb 15, 2019 at 12:18 PM Y Song wrote: > > On Thu, Feb

Re: [PATCH bpf-next 2/4] libbpf: Support 32-bit static data loads

2019-02-15 Thread Y Song
On Thu, Feb 14, 2019 at 11:16 PM Joe Stringer wrote: > > On Thu, 14 Feb 2019 at 21:39, Y Song wrote: > > > > On Mon, Feb 11, 2019 at 4:48 PM Joe Stringer wrote: > > > > > > Support loads of static 32-bit data when BPF writers make use of > > > convenience macros for accessing static global data

Re: [PATCH bpf-next 2/4] libbpf: Support 32-bit static data loads

2019-02-15 Thread Alexei Starovoitov
On Thu, Feb 14, 2019 at 9:38 PM Y Song wrote: > > On Mon, Feb 11, 2019 at 4:48 PM Joe Stringer wrote: > > > > Support loads of static 32-bit data when BPF writers make use of > > convenience macros for accessing static global data variables. A later > > patch in this series will demonstrate its u

Re: [PATCH bpf-next 2/4] libbpf: Support 32-bit static data loads

2019-02-14 Thread Joe Stringer
On Thu, 14 Feb 2019 at 21:39, Y Song wrote: > > On Mon, Feb 11, 2019 at 4:48 PM Joe Stringer wrote: > > > > Support loads of static 32-bit data when BPF writers make use of > > convenience macros for accessing static global data variables. A later > > patch in this series will demonstrate its usa

Re: [PATCH bpf-next 2/4] libbpf: Support 32-bit static data loads

2019-02-14 Thread Y Song
On Mon, Feb 11, 2019 at 4:48 PM Joe Stringer wrote: > > Support loads of static 32-bit data when BPF writers make use of > convenience macros for accessing static global data variables. A later > patch in this series will demonstrate its usage in a selftest. > > As of LLVM-7, this technique only w

[PATCH bpf-next 2/4] libbpf: Support 32-bit static data loads

2019-02-11 Thread Joe Stringer
Support loads of static 32-bit data when BPF writers make use of convenience macros for accessing static global data variables. A later patch in this series will demonstrate its usage in a selftest. As of LLVM-7, this technique only works with 32-bit data, as LLVM will complain if this technique i