[PATCH v2 bpf-next 00/11] BPF static linking

2021-03-13 Thread Andrii Nakryiko
This patch set adds new libbpf APIs and their bpftool integration that allows to perform static linking of BPF object files. Currently no extern resolution across object files is performed. This is going to be the focus of the follow up patches. But, given amount of code and logic necessary to perf

Re: [PATCH v2 bpf-next 00/11] libbpf: split BTF support

2020-11-05 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (refs/heads/master): On Wed, 4 Nov 2020 20:33:50 -0800 you wrote: > This patch set adds support for generating and deduplicating split BTF. This > is an enhancement to the BTF, which allows to designate one BTF as the "base > BTF" (e.g., vmlinux

Re: [PATCH v2 bpf-next 00/11] libbpf: split BTF support

2020-11-05 Thread Andrii Nakryiko
On Thu, Nov 5, 2020 at 11:38 AM Saeed Mahameed wrote: > > On Thu, 2020-11-05 at 11:16 -0800, Andrii Nakryiko wrote: > > > > This split approach is necessary if we are to have a reasonably- > > > > sized kernel > > > > module BTFs. By deduping each kernel module's BTF individually, > > > > resultin

Re: [PATCH v2 bpf-next 00/11] libbpf: split BTF support

2020-11-05 Thread Saeed Mahameed
On Thu, 2020-11-05 at 11:16 -0800, Andrii Nakryiko wrote: > > > This split approach is necessary if we are to have a reasonably- > > > sized kernel > > > module BTFs. By deduping each kernel module's BTF individually, > > > resulting > > > module BTFs contain copies of a lot of kernel types that ar

Re: [PATCH v2 bpf-next 00/11] libbpf: split BTF support

2020-11-05 Thread Andrii Nakryiko
On Thu, Nov 5, 2020 at 1:53 AM Jesper Dangaard Brouer wrote: > > On Wed, 4 Nov 2020 20:33:50 -0800 > Andrii Nakryiko wrote: > > > This patch set adds support for generating and deduplicating split BTF. This > > is an enhancement to the BTF, which allows to designate one BTF as the "base > > BTF"

Re: [PATCH v2 bpf-next 00/11] libbpf: split BTF support

2020-11-05 Thread Jesper Dangaard Brouer
On Wed, 4 Nov 2020 20:33:50 -0800 Andrii Nakryiko wrote: > This patch set adds support for generating and deduplicating split BTF. This > is an enhancement to the BTF, which allows to designate one BTF as the "base > BTF" (e.g., vmlinux BTF), and one or more other BTFs as "split BTF" (e.g., > ker

[PATCH v2 bpf-next 00/11] libbpf: split BTF support

2020-11-04 Thread Andrii Nakryiko
This patch set adds support for generating and deduplicating split BTF. This is an enhancement to the BTF, which allows to designate one BTF as the "base BTF" (e.g., vmlinux BTF), and one or more other BTFs as "split BTF" (e.g., kernel module BTF), which are building upon and extending base BTF wit

Re: [PATCH v2 bpf-next 00/11] Fix libbpf and selftest issues detected by ASAN

2020-04-28 Thread Alexei Starovoitov
On Tue, Apr 28, 2020 at 06:21:00PM -0700, Andrii Nakryiko wrote: > Add necessary infra to build selftests with ASAN (or any other sanitizer). Fix > a bunch of found memory leaks and other memory access issues. > > v1->v2: > - don't add ASAN flavor, but allow extra flags for build (Alexei); > -

[PATCH v2 bpf-next 00/11] Fix libbpf and selftest issues detected by ASAN

2020-04-28 Thread Andrii Nakryiko
Add necessary infra to build selftests with ASAN (or any other sanitizer). Fix a bunch of found memory leaks and other memory access issues. v1->v2: - don't add ASAN flavor, but allow extra flags for build (Alexei); - fix few more found issues, which somehow were missed first time. Andrii Nak

Re: [PATCH v2 bpf-next 00/11] BTF-defined BPF map definitions

2019-06-25 Thread Andrii Nakryiko
On Fri, Jun 21, 2019 at 10:56 AM Andrii Nakryiko wrote: > > On Fri, Jun 21, 2019 at 3:29 AM Lorenz Bauer wrote: > > > > On Fri, 21 Jun 2019 at 05:20, Andrii Nakryiko > > wrote: > > > > > > On Thu, Jun 20, 2019 at 7:49 AM Lorenz Bauer wrote: > > > > > > > > On Tue, 18 Jun 2019 at 22:37, Andrii

Re: [PATCH v2 bpf-next 00/11] BTF-defined BPF map definitions

2019-06-21 Thread Andrii Nakryiko
On Fri, Jun 21, 2019 at 3:29 AM Lorenz Bauer wrote: > > On Fri, 21 Jun 2019 at 05:20, Andrii Nakryiko > wrote: > > > > On Thu, Jun 20, 2019 at 7:49 AM Lorenz Bauer wrote: > > > > > > On Tue, 18 Jun 2019 at 22:37, Andrii Nakryiko > > > wrote: > > > > > > > > I would just drop the object-scope

Re: [PATCH v2 bpf-next 00/11] BTF-defined BPF map definitions

2019-06-21 Thread Lorenz Bauer
On Fri, 21 Jun 2019 at 05:20, Andrii Nakryiko wrote: > > On Thu, Jun 20, 2019 at 7:49 AM Lorenz Bauer wrote: > > > > On Tue, 18 Jun 2019 at 22:37, Andrii Nakryiko > > wrote: > > > > > > I would just drop the object-scope pinning. We avoided using it and I'm > > > > not > > > > aware if anyone

Re: [PATCH v2 bpf-next 00/11] BTF-defined BPF map definitions

2019-06-20 Thread Andrii Nakryiko
On Thu, Jun 20, 2019 at 7:49 AM Lorenz Bauer wrote: > > On Tue, 18 Jun 2019 at 22:37, Andrii Nakryiko > wrote: > > > > I would just drop the object-scope pinning. We avoided using it and I'm > > > not > > > aware if anyone else make use. It also has the ugly side-effect that this > > > relies o

Re: [PATCH v2 bpf-next 00/11] BTF-defined BPF map definitions

2019-06-20 Thread Lorenz Bauer
On Tue, 18 Jun 2019 at 22:37, Andrii Nakryiko wrote: > > I would just drop the object-scope pinning. We avoided using it and I'm not > > aware if anyone else make use. It also has the ugly side-effect that this > > relies on AF_ALG which e.g. on some cloud provider shipped kernels is > > disable

Re: [PATCH v2 bpf-next 00/11] BTF-defined BPF map definitions

2019-06-18 Thread Andrii Nakryiko
On Mon, Jun 17, 2019 at 2:17 PM Daniel Borkmann wrote: > > On 06/17/2019 09:26 PM, Andrii Nakryiko wrote: > > This patch set implements initial version (as discussed at LSF/MM2019 > > conference) of a new way to specify BPF maps, relying on BTF type > > information, > > which allows for easy exte

Re: [PATCH v2 bpf-next 00/11] BTF-defined BPF map definitions

2019-06-17 Thread Daniel Borkmann
On 06/17/2019 11:17 PM, Daniel Borkmann wrote: > On 06/17/2019 09:26 PM, Andrii Nakryiko wrote: >> This patch set implements initial version (as discussed at LSF/MM2019 >> conference) of a new way to specify BPF maps, relying on BTF type >> information, >> which allows for easy extensibility, pres

Re: [PATCH v2 bpf-next 00/11] BTF-defined BPF map definitions

2019-06-17 Thread Daniel Borkmann
On 06/17/2019 09:26 PM, Andrii Nakryiko wrote: > This patch set implements initial version (as discussed at LSF/MM2019 > conference) of a new way to specify BPF maps, relying on BTF type information, > which allows for easy extensibility, preserving forward and backward > compatibility. See details

[PATCH v2 bpf-next 00/11] BTF-defined BPF map definitions

2019-06-17 Thread Andrii Nakryiko
This patch set implements initial version (as discussed at LSF/MM2019 conference) of a new way to specify BPF maps, relying on BTF type information, which allows for easy extensibility, preserving forward and backward compatibility. See details and examples in description for patch #6. [0] contain

[PATCH v2 bpf-next 00/11]

2017-12-21 Thread Lawrence Brakmo
This patchset adds support for: - direct R or R/W access to many tcp_sock fields - passing up to 4 arguments to sock_ops BPF functions - tcp_sock field bpf_sock_ops_flags for controlling callbacks - optionally calling sock_ops BPF program when RTO fires - optionally calling sock_ops BPF program wh