A set of fixes for selftests to make them working on systems with PAGE_SIZE > 4K 2 questions left: - about `nit: if (!ASSERT_OK(err, "setsockopt_attach"))`. I left CHECK() for now since otherwise it has too many negations. But should I anyway use ASSERT? - https://github.com/torvalds/linux/blob/master/tools/testing/selftests/bpf/prog_tests/mmap.c#L41 and below -- it works now as is, but should be switched also to page_size? -- v1->v2: - add missed 'selftests/bpf: test_progs/sockopt_sk: Convert to use BPF skeleton' Yauheni Kaliuta (4): selftests/bpf: test_progs/sockopt_sk: pass page size from userspace bpf: selftests: test_progs/sockopt_sk: remove version selftests/bpf: ringbuf, mmap: bump up page size to 64K .../selftests/bpf/prog_tests/ringbuf.c | 9 ++- .../selftests/bpf/prog_tests/sockopt_sk.c | 68 ++++++------------- .../selftests/bpf/progs/map_ptr_kern.c | 9 ++- .../testing/selftests/bpf/progs/sockopt_sk.c | 11 ++- tools/testing/selftests/bpf/progs/test_mmap.c | 10 ++- .../selftests/bpf/progs/test_ringbuf.c | 8 ++- .../selftests/bpf/progs/test_ringbuf_multi.c | 7 +- 7 files changed, 61 insertions(+), 61 deletions(-) -- 2.29.2