[PATCH stable 6.6 0/8] Fix BPF selftests compilation error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently the BPF selftests in fails to compile (with
tools/testing/selftests/bpf/vmtest.sh) due to use of test helpers that
were not backported, namely:
- netlink_helpers.h
- __xlated()

The 1st patch in the series adds netlink_helpers.h, and the 8th patch in
the series adds the __xlated() helper. Patch 2-7 are pulled as context
for the __xlated() helper.

Cupertino Miranda (1):
  selftests/bpf: Support checks against a regular expression

Daniel Borkmann (1):
  selftests/bpf: Add netlink helper library

Eduard Zingerman (5):
  selftests/bpf: extract utility function for BPF disassembly
  selftests/bpf: print correct offset for pseudo calls in disasm_insn()
  selftests/bpf: no need to track next_match_pos in struct test_loader
  selftests/bpf: extract test_loader->expect_msgs as a data structure
  selftests/bpf: allow checking xlated programs in verifier_* tests

Hou Tao (1):
  selftests/bpf: Factor out get_xlated_program() helper

 tools/testing/selftests/bpf/Makefile          |  20 +-
 tools/testing/selftests/bpf/disasm_helpers.c  |  69 ++++
 tools/testing/selftests/bpf/disasm_helpers.h  |  12 +
 tools/testing/selftests/bpf/netlink_helpers.c | 358 ++++++++++++++++++
 tools/testing/selftests/bpf/netlink_helpers.h |  46 +++
 .../selftests/bpf/prog_tests/ctx_rewrite.c    | 118 +-----
 tools/testing/selftests/bpf/progs/bpf_misc.h  |  16 +-
 tools/testing/selftests/bpf/test_loader.c     | 235 +++++++++---
 tools/testing/selftests/bpf/test_progs.h      |   1 -
 tools/testing/selftests/bpf/test_verifier.c   |  47 +--
 tools/testing/selftests/bpf/testing_helpers.c |  43 +++
 tools/testing/selftests/bpf/testing_helpers.h |   6 +
 12 files changed, 759 insertions(+), 212 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/disasm_helpers.c
 create mode 100644 tools/testing/selftests/bpf/disasm_helpers.h
 create mode 100644 tools/testing/selftests/bpf/netlink_helpers.c
 create mode 100644 tools/testing/selftests/bpf/netlink_helpers.h

-- 
2.47.0





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux