Re: [PATCH v9 bpf-next 0/3] bpf: sharing bpf runtime stats with
From: Alexei Starovoitov <hidden>
Date: 2020-05-01 17:56:45
Also in:
bpf
From: Alexei Starovoitov <hidden>
Date: 2020-05-01 17:56:45
Also in:
bpf
On Thu, Apr 30, 2020 at 12:15 AM Song Liu [off-list ref] 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 problem with a new BPF command BPF_ENABLE_STATS. Changes v8 => v9: 1. Clean up in selftest (Andrii). 2. Not using static variable in test program (Andrii).
Applied. Thanks