Skip to content

BPF test_progs tests improvement

Mykola Lysenko bpf 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest3 patches 0 repliesApplied 3/3

Patches in v4 All 3 applied

#Subject and filesSizeRepliesApplied
1/3Improve perf related BPF tests (sample_freq issue)tools/testing/selftests/bpf/prog_tests/bpf_cookie.c tools/testing/selftests/bpf/prog_tests/find_vma.c tools/testing/selftests/bpf/prog_tests/perf_branches.c +1 more+5 -50 repliesApplied
2/3Improve send_signal BPF test stabilitytools/testing/selftests/bpf/prog_tests/send_signal.c tools/testing/selftests/bpf/progs/test_send_signal_kern.c+11 -80 repliesApplied
3/3Improve stability of find_vma BPF testtools/testing/selftests/bpf/prog_tests/find_vma.c+19 -90 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchYonghong Song
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 bpf-next 0/3] BPF test_progs tests improvement

First patch reduces the sample_freq to 1000 to ensure test will work even when kernel.perf_event_max_sample_rate was reduced to 1000.

Patches for send_signal and find_vma tune the test implementation to make sure needed thread is scheduled. Also, both tests will finish as soon as possible after the test condition is met.

Mykola Lysenko (3):
Improve perf related BPF tests (sample_freq issue) Improve send_signal BPF test stability Improve stability of find_vma BPF test

 .../selftests/bpf/prog_tests/bpf_cookie.c       |  2 +-
 .../testing/selftests/bpf/prog_tests/find_vma.c | 13 ++++++++++---
 .../selftests/bpf/prog_tests/perf_branches.c    |  4 ++--
 .../selftests/bpf/prog_tests/perf_link.c        |  2 +-
 .../selftests/bpf/prog_tests/send_signal.c      | 17 ++++++++++-------
 .../selftests/bpf/progs/test_send_signal_kern.c |  2 +-
 6 files changed, 25 insertions(+), 15 deletions(-)
Signature · 1 line
2.30.2