[PATCH bpf-next v2 0/4] selftest related fixes

Vineet Gupta <[email protected]>
Newsgroups org.kernel.vger.bpf
Message-ID <[email protected]>
Hi,

This is a set of fixes accumulated during BPF_GCC testing and an in-works
verifier enhancement series for 32-bit tracking.

Changes since v1:

 - 1/4: reworked. Instead of forcing BPF_STX with barrier_var(), select
   the expected message with #ifdef __BPF_FEATURE_ST, per Yonghong. The
   changelog now spells out the two tradeoffs: on a BPF_ST toolchain the
   test no longer reaches map_kptr_match_type(), and __BPF_FEATURE_ST
   means "can emit BPF_ST", not "will" - clang -mcpu=v4 -O0 still emits
   BPF_STX, so the #ifdef is only correct because selftests build at -O2.

 - 2/4: reword the comment above the error-summary walk. With
   --no-error-summary and no --json-summary the loop is skipped
   entirely, not just the printing, which the old wording obscured.
   [bpf-ci]

 - 4/4: the RV64 recipe in README.rst wraps the denylist in \" and
   relies on the guest's second parse of the init script to remove
   them, so %q broke it - the quotes reached test_progs and
   parse_test_list() split them into junk filters. Drop the
   backslashes so the host consumes the quotes, and correct the
   changelog, which wrongly claimed README.rst shows the command
   unquoted. [bpf-ci]

 - 3/4: unchanged.

v1: https://lore.kernel.org/bpf/[email protected]

Thx,
-Vineet

Vineet Gupta (4):
  selftests/bpf: map_kptr: expect BPF_ST reject msg on cpuv4 toolchains
  selftests/bpf: add --no-error-summary to skip end-of-run error log
    dump
  selftests/bpf: report failed subtest count in test_progs summary
  selftests/bpf: vmtest.sh: preserve command quoting when running in the
    VM

 tools/testing/selftests/bpf/README.rst        |  4 +-
 .../selftests/bpf/progs/map_kptr_fail.c       |  9 +++
 tools/testing/selftests/bpf/test_progs.c      | 64 +++++++++++++------
 tools/testing/selftests/bpf/test_progs.h      |  3 +-
 tools/testing/selftests/bpf/vmtest.sh         | 13 +++-
 5 files changed, 67 insertions(+), 26 deletions(-)

-- 
2.53.0-Meta
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.