Re: [PATCH v6 bpf-next 0/6] bpf: enable task local storage for tracing programs

2021-02-26 Thread Alexei Starovoitov
On Thu, Feb 25, 2021 at 4:04 PM Martin KaFai Lau wrote: > > On Thu, Feb 25, 2021 at 03:43:13PM -0800, Song Liu wrote: > > This set enables task local storage for non-BPF_LSM programs. > > > > It is common for tracing BPF program to access per-task data. Currently, > > these data are stored in hash

Re: [PATCH v6 bpf-next 0/6] bpf: enable task local storage for tracing programs

2021-02-25 Thread Martin KaFai Lau
On Thu, Feb 25, 2021 at 03:43:13PM -0800, Song Liu wrote: > This set enables task local storage for non-BPF_LSM programs. > > It is common for tracing BPF program to access per-task data. Currently, > these data are stored in hash tables with pid as the key. In > bcc/libbpftools [1], 9 out of 23 t

[PATCH v6 bpf-next 0/6] bpf: enable task local storage for tracing programs

2021-02-25 Thread Song Liu
This set enables task local storage for non-BPF_LSM programs. It is common for tracing BPF program to access per-task data. Currently, these data are stored in hash tables with pid as the key. In bcc/libbpftools [1], 9 out of 23 tools use such hash tables. However, hash table is not ideal for many