Re: [PATCH bpf-next v9 00/10] bpf: add bpf_get_stack helper

2018-04-29 Thread Alexei Starovoitov
On Sat, Apr 28, 2018 at 10:28:06PM -0700, Yonghong Song wrote: > Currently, stackmap and bpf_get_stackid helper are provided > for bpf program to get the stack trace. This approach has > a limitation though. If two stack traces have the same hash, > only one will get stored in the stackmap table re

[PATCH bpf-next v9 00/10] bpf: add bpf_get_stack helper

2018-04-28 Thread Yonghong Song
Currently, stackmap and bpf_get_stackid helper are provided for bpf program to get the stack trace. This approach has a limitation though. If two stack traces have the same hash, only one will get stored in the stackmap table regardless of whether BPF_F_REUSE_STACKID is specified or not, so some st