A set of fixes for selftests to make them working on systems with PAGE_SIZE > 4K + cleanup (version) and ringbuf_multi extention. -- v3->v4: - zero initialize BPF programs' static variables; - add bpf_map__inner_map to libbpf.map in alphabetical order; - add bpf_map__set_inner_map_fd test to ringbuf_multi; v2->v3: - reorder: move version removing patch first to keep main patches in one group; - rename "selftests/bpf: pass page size from userspace in sockopt_sk" as suggested; - convert sockopt_sk test to use ASSERT macros; - set page size from userspace - split patches to pairs userspace/bpf. It's easier to check that every conversion works as expected; v1->v2: - add missed 'selftests/bpf: test_progs/sockopt_sk: Convert to use BPF skeleton' Yauheni Kaliuta (9): selftests/bpf: test_progs/sockopt_sk: remove version selftests/bpf: test_progs/sockopt_sk: Convert to use BPF skeleton selftests/bpf: pass page size from userspace in sockopt_sk selftests/bpf: pass page size from userspace in map_ptr selftests/bpf: mmap: use runtime page size selftests/bpf: ringbuf: use runtime page size libbpf: add bpf_map__inner_map API selftests/bpf: ringbuf_multi: use runtime page size selftests/bpf: ringbuf_multi: test bpf_map__set_inner_map_fd tools/lib/bpf/libbpf.c | 10 +++ tools/lib/bpf/libbpf.h | 1 + tools/lib/bpf/libbpf.map | 1 + .../selftests/bpf/prog_tests/map_ptr.c | 15 ++++- tools/testing/selftests/bpf/prog_tests/mmap.c | 24 +++++-- .../selftests/bpf/prog_tests/ringbuf.c | 17 +++-- .../selftests/bpf/prog_tests/ringbuf_multi.c | 34 +++++++++- .../selftests/bpf/prog_tests/sockopt_sk.c | 65 +++++-------------- .../selftests/bpf/progs/map_ptr_kern.c | 4 +- .../testing/selftests/bpf/progs/sockopt_sk.c | 11 ++-- tools/testing/selftests/bpf/progs/test_mmap.c | 2 - .../selftests/bpf/progs/test_ringbuf.c | 1 - .../selftests/bpf/progs/test_ringbuf_multi.c | 12 +++- 13 files changed, 123 insertions(+), 74 deletions(-) -- 2.31.1