Re: [PATCH v6 bpf-next 3/3] bpf: add selftest for BPF_ENABLE_STATS

2020-04-28 Thread Song Liu
> On Apr 28, 2020, at 5:43 PM, Alexei Starovoitov > wrote: > > On Tue, Apr 28, 2020 at 05:33:54PM -0700, Yonghong Song wrote: >> >> >> On 4/28/20 5:29 PM, Song Liu wrote: >>> Add test for BPF_ENABLE_STATS, which should enable run_time_ns stats. >>> >>> ~/selftests/bpf# ./test_progs -t ena

Re: [PATCH v6 bpf-next 3/3] bpf: add selftest for BPF_ENABLE_STATS

2020-04-28 Thread Alexei Starovoitov
On Tue, Apr 28, 2020 at 05:33:54PM -0700, Yonghong Song wrote: > > > On 4/28/20 5:29 PM, Song Liu wrote: > > Add test for BPF_ENABLE_STATS, which should enable run_time_ns stats. > > > > ~/selftests/bpf# ./test_progs -t enable_stats -v > > test_enable_stats:PASS:skel_open_and_load 0 nsec > > t

Re: [PATCH v6 bpf-next 3/3] bpf: add selftest for BPF_ENABLE_STATS

2020-04-28 Thread Yonghong Song
On 4/28/20 5:29 PM, Song Liu wrote: Add test for BPF_ENABLE_STATS, which should enable run_time_ns stats. ~/selftests/bpf# ./test_progs -t enable_stats -v test_enable_stats:PASS:skel_open_and_load 0 nsec test_enable_stats:PASS:get_stats_fd 0 nsec test_enable_stats:PASS:attach_raw_tp 0 nsec

[PATCH v6 bpf-next 3/3] bpf: add selftest for BPF_ENABLE_STATS

2020-04-28 Thread Song Liu
Add test for BPF_ENABLE_STATS, which should enable run_time_ns stats. ~/selftests/bpf# ./test_progs -t enable_stats -v test_enable_stats:PASS:skel_open_and_load 0 nsec test_enable_stats:PASS:get_stats_fd 0 nsec test_enable_stats:PASS:attach_raw_tp 0 nsec test_enable_stats:PASS:get_prog_info 0 ns