A set of fixes for selftests to make them working on systems with PAGE_SIZE > 4K -- 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 (8): 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 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 | 23 ++++++- .../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 | 1 - 13 files changed, 101 insertions(+), 74 deletions(-) -- 2.31.1