On Thu, Apr 30, 2020 at 12:15 AM Song Liu <songliubraving@xxxxxx> 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