Re: [PATCH v9 bpf-next 0/3] bpf: sharing bpf runtime stats with

2020-05-01 Thread Alexei Starovoitov
On Thu, Apr 30, 2020 at 12:15 AM Song Liu wrote: > > run_time_ns is a useful stats for BPF programs. However, it is gated by > sysctl kernel.bpf_stats_enabled. When multiple user space tools are > toggling kernl.bpf_stats_enabled at the same time, they may confuse each > other. > > Solve this prob

[PATCH v9 bpf-next 0/3] bpf: sharing bpf runtime stats with

2020-04-30 Thread Song Liu
run_time_ns is a useful stats for BPF programs. However, it is gated by sysctl kernel.bpf_stats_enabled. When multiple user space tools are toggling kernl.bpf_stats_enabled at the same time, they may confuse each other. Solve this problem with a new BPF command BPF_ENABLE_STATS. Changes v8 => v9: