Re: [PATCH bpf-next] libbpf: generate more efficient BPF_CORE_READ code

2019-10-11 Thread Daniel Borkmann
On Thu, Oct 10, 2019 at 07:38:47PM -0700, Andrii Nakryiko wrote: > Existing BPF_CORE_READ() macro generates slightly suboptimal code. If > there are intermediate pointers to be read, initial source pointer is > going to be assigned into a temporary variable and then temporary > variable is going to

[PATCH bpf-next] libbpf: generate more efficient BPF_CORE_READ code

2019-10-10 Thread Andrii Nakryiko
Existing BPF_CORE_READ() macro generates slightly suboptimal code. If there are intermediate pointers to be read, initial source pointer is going to be assigned into a temporary variable and then temporary variable is going to be uniformly used as a "source" pointer for all intermediate pointer rea