Re: [PATCH bpf-next 03/11] libbpf: unify and speed up BTF string deduplication

2020-11-02 Thread Andrii Nakryiko
On Mon, Nov 2, 2020 at 8:59 PM Alexei Starovoitov wrote: > > On Wed, Oct 28, 2020 at 05:58:54PM -0700, Andrii Nakryiko wrote: > > From: Andrii Nakryiko > > > > Revamp BTF dedup's string deduplication to match the approach of writable > > BTF > > string management. This allows to transfer dedupli

Re: [PATCH bpf-next 03/11] libbpf: unify and speed up BTF string deduplication

2020-11-02 Thread Alexei Starovoitov
On Wed, Oct 28, 2020 at 05:58:54PM -0700, Andrii Nakryiko wrote: > From: Andrii Nakryiko > > Revamp BTF dedup's string deduplication to match the approach of writable BTF > string management. This allows to transfer deduplicated strings index back to > BTF object after deduplication without expen

Re: [PATCH bpf-next 03/11] libbpf: unify and speed up BTF string deduplication

2020-11-02 Thread Andrii Nakryiko
On Fri, Oct 30, 2020 at 4:33 PM Song Liu wrote: > > > > > On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: > > > > From: Andrii Nakryiko > > > > Revamp BTF dedup's string deduplication to match the approach of writable > > BTF > > string management. This allows to transfer deduplicated strin

Re: [PATCH bpf-next 03/11] libbpf: unify and speed up BTF string deduplication

2020-10-30 Thread Song Liu
> On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: > > From: Andrii Nakryiko > > Revamp BTF dedup's string deduplication to match the approach of writable BTF > string management. This allows to transfer deduplicated strings index back to > BTF object after deduplication without expensive

[PATCH bpf-next 03/11] libbpf: unify and speed up BTF string deduplication

2020-10-28 Thread Andrii Nakryiko
From: Andrii Nakryiko Revamp BTF dedup's string deduplication to match the approach of writable BTF string management. This allows to transfer deduplicated strings index back to BTF object after deduplication without expensive extra memory copying and hash map re-construction. It also simplifies