Skip to content

selftests: add test for kfunc call

Hou Tao bpf netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest2 patches 4 repliesIn review

Changes in v4 from the cover letter

* remove merged patch "bpf, arm64: enable kfunc call"
* rebased on bpf-next

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selftests/bpf: do not export subtest as standalone testtools/testing/selftests/bpf/prog_tests/ksyms_module.c tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c +2 more+7 -132 replies
2/2selftests/bpf: check whether s32 is sufficient for kfunc offsettools/testing/selftests/bpf/prog_tests/ksyms_module.c+42 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH bpf-next v4 0/2] selftests: add test for kfunc call

Hi,

The patchset add a test for kfunc call to ensure s32 is sufficient for kfunc offset. Patch #1 unexports the subtests in ksyms_module.c to fix the confusion in test output and patch #2 adds a test in ksyms_module.c to ensure s32 is sufficient for kfunc offset.

Change Log:
v4:
* remove merged patch "bpf, arm64: enable kfunc call"
* rebased on bpf-next

v3: https://lore.kernel.org/bpf/[email protected]
* patch #2: newly-addded to unexport unnecessary subtests
* patch #3: use kallsyms_find() instead of reimplementing it.
* patch #3: ensure kfunc call is supported before checking whether s32 will be overflowed or not.

v2: https://lore.kernel.org/bpf/[email protected]
* add a test to check whether imm will be overflowed for kfunc call

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

Hou Tao (2):
selftests/bpf: do not export subtest as standalone test selftests/bpf: check whether s32 is sufficient for kfunc offset

 .../selftests/bpf/prog_tests/ksyms_module.c   | 46 ++++++++++++++++++-
 .../bpf/prog_tests/xdp_adjust_frags.c         |  6 ---
 .../bpf/prog_tests/xdp_adjust_tail.c          |  4 +-
 .../bpf/prog_tests/xdp_cpumap_attach.c        |  4 +-
 .../bpf/prog_tests/xdp_devmap_attach.c        |  2 +-
 5 files changed, 49 insertions(+), 13 deletions(-)
Signature · 1 line
2.35.1