This patch set is a mix of mostly mutually unrelated libbpf and selftests fixes and improvements. Individual patches provide details on each one. Andrii Nakryiko (9): selftests/bpf: prevent skeleton generation race libbpf: make __kptr and __kptr_ref unconditionally use btf_type_tag() attr libbpf: improve usability of field-based CO-RE helpers selftests/bpf: use both syntaxes for field-based CO-RE helpers libbpf: complete field-based CO-RE helpers with field offset helper selftests/bpf: add bpf_core_field_offset() tests libbpf: provide barrier() and barrier_var() in bpf_helpers.h libbpf: automatically fix up BPF_MAP_TYPE_RINGBUF size, if necessary selftests/bpf: test libbpf's ringbuf size fix up logic tools/lib/bpf/bpf_core_read.h | 37 ++++++++++++++-- tools/lib/bpf/bpf_helpers.h | 29 ++++++++++--- tools/lib/bpf/libbpf.c | 42 ++++++++++++++++++- tools/testing/selftests/bpf/Makefile | 10 ++--- .../selftests/bpf/prog_tests/core_reloc.c | 13 +++++- .../selftests/bpf/prog_tests/ringbuf_multi.c | 12 ------ .../progs/btf__core_reloc_size___diff_offs.c | 3 ++ .../selftests/bpf/progs/core_reloc_types.h | 18 ++++++++ .../selftests/bpf/progs/exhandler_kern.c | 2 - tools/testing/selftests/bpf/progs/loop5.c | 1 - tools/testing/selftests/bpf/progs/profiler1.c | 1 - tools/testing/selftests/bpf/progs/pyperf.h | 2 - .../bpf/progs/test_core_reloc_existence.c | 11 +++-- .../bpf/progs/test_core_reloc_size.c | 31 ++++++++++++-- .../selftests/bpf/progs/test_pkt_access.c | 2 - .../selftests/bpf/progs/test_ringbuf_multi.c | 2 + 16 files changed, 169 insertions(+), 47 deletions(-) create mode 100644 tools/testing/selftests/bpf/progs/btf__core_reloc_size___diff_offs.c -- 2.30.2