Re: [PATCH v3 bpf-next 05/12] libbpf: add resizable non-thread safe internal hashmap

2019-07-17 Thread Andrii Nakryiko
On Wed, Jul 17, 2019 at 5:24 PM Arnaldo Carvalho de Melo wrote: > > Em Fri, May 24, 2019 at 11:59:00AM -0700, Andrii Nakryiko escreveu: > > There is a need for fast point lookups inside libbpf for multiple use > > cases (e.g., name resolution for BTF-to-C conversion, by-name lookups in > > BTF for

Re: [PATCH v3 bpf-next 05/12] libbpf: add resizable non-thread safe internal hashmap

2019-07-17 Thread Arnaldo Carvalho de Melo
Em Fri, May 24, 2019 at 11:59:00AM -0700, Andrii Nakryiko escreveu: > There is a need for fast point lookups inside libbpf for multiple use > cases (e.g., name resolution for BTF-to-C conversion, by-name lookups in > BTF for upcoming BPF CO-RE relocation support, etc). This patch > implements simpl

[PATCH v3 bpf-next 05/12] libbpf: add resizable non-thread safe internal hashmap

2019-05-24 Thread Andrii Nakryiko
There is a need for fast point lookups inside libbpf for multiple use cases (e.g., name resolution for BTF-to-C conversion, by-name lookups in BTF for upcoming BPF CO-RE relocation support, etc). This patch implements simple resizable non-thread safe hashmap using single linked list chains. Four d