1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/bpf/bpf_testmod
Yonghong Song 0c606571ae selftests/bpf: Test ldsx with more complex cases
The following ldsx cases are tested:
  - signed readonly map value
  - read/write map value
  - probed memory
  - not-narrowed ctx field access
  - narrowed ctx field access.

Without previous proper verifier/git handling, the test will fail.

If cpuv4 is not supported either by compiler or by jit,
the test will be skipped.

  # ./test_progs -t ldsx_insn
  #113/1   ldsx_insn/map_val and probed_memory:SKIP
  #113/2   ldsx_insn/ctx_member_sign_ext:SKIP
  #113/3   ldsx_insn/ctx_member_narrow_sign_ext:SKIP
  #113     ldsx_insn:SKIP
  Summary: 1/0 PASSED, 3 SKIPPED, 0 FAILED

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20230728011336.3723434-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2023-07-27 18:54:17 -07:00
..
.gitignore selftests/bpf: Add bpf_testmod kernel module for testing 2020-12-03 17:38:20 -08:00
bpf_testmod-events.h bpf/selftests: Add test for writable bare tracepoint 2021-10-08 13:22:57 -07:00
bpf_testmod.c selftests/bpf: Test ldsx with more complex cases 2023-07-27 18:54:17 -07:00
bpf_testmod.h selftests/bpf: implement and test custom testmod_seq iterator 2023-03-08 16:19:51 -08:00
bpf_testmod_kfunc.h selftests/bpf: Add missing prototypes for several test kfuncs 2023-06-08 13:26:12 +02:00
Makefile selftests/bpf: Add bpf_testmod kernel module for testing 2020-12-03 17:38:20 -08:00