Repository navigation
selftests/bpf: Run the enable_stats program with BPF_PROG_TEST_RUN - #14432
kernel-patches-daemon-bpf[bot] wants to merge 2 commits into
Conversation
|
Upstream branch: 44b6b1d |
64d46c3 to
c28fbec
Compare
|
Upstream branch: 4f84263 |
779fdb1 to
ca9f467
Compare
c28fbec to
77b7c10
Compare
|
Upstream branch: 868e56d |
ca9f467 to
b2a4b0a
Compare
77b7c10 to
d75c0e9
Compare
|
Upstream branch: 4f84263 |
b2a4b0a to
eb1331f
Compare
d75c0e9 to
f6374da
Compare
|
Upstream branch: 25bb03f |
eb1331f to
4915b32
Compare
f6374da to
4eb7180
Compare
|
Upstream branch: 0867b7b |
4915b32 to
6648228
Compare
4eb7180 to
d799ab0
Compare
|
Upstream branch: 1907a7d |
6648228 to
dc51403
Compare
d799ab0 to
5b8b9d6
Compare
|
Upstream branch: f25f631 |
dc51403 to
819ca4d
Compare
5b8b9d6 to
0b1906d
Compare
|
Upstream branch: b713263 |
819ca4d to
adcc9da
Compare
0b1906d to
edbdb42
Compare
|
Upstream branch: d4bccf4 |
enable_stats attaches its program to sys_enter, so every syscall of the
system runs it. Once the program is detached, the test compares its
run_cnt to the number of runs the program counted itself.
Detaching doesn't wait for the runs already started on other CPUs, and
each of them increments count before run_cnt. With other tests making
syscalls in parallel, the test reads run_cnt one run behind count now
and then:
test_enable_stats:FAIL:check_run_cnt_valid invalid run_cnt stats
Run the program 1000 times with BPF_PROG_TEST_RUN instead of attaching
it, so that nothing else runs it and both counts are final when the test
reads them.
enable_stats run 100 times with 32 processes calling dd with bs=1 in
the background, on a bpf-next kernel with KASAN enabled, x86_64 VM with
32 vCPUs, before and after this patch:
before after
outcome 3 of 100 failed (check_run_cnt_valid) 0 of 100 failed
Fixes: 31a9f7f ("bpf: Add selftest for BPF_ENABLE_STATS")
Signed-off-by: Qiliang Yuan <odys.yuan@gmail.com>
adcc9da to
91942fb
Compare
edbdb42 to
c6778a0
Compare
|
At least one diff in series https://patchwork.kernel.org/series/1188562/ expired. Closing PR. |
Pull request for series with
subject: selftests/bpf: Run the enable_stats program with BPF_PROG_TEST_RUN
version: 3
url: https://patchwork.kernel.org/series/1188562/