docs/bpf: Add description for CO-RE relocations
authorEduard Zingerman <eddyz87@gmail.com>
Sat, 26 Aug 2023 22:29:12 +0000 (01:29 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 Aug 2023 07:53:02 +0000 (09:53 +0200)
commitbe4033d36070e44fba766a21ef2d0c24fa04c377
treef4c6650555e8c775e3d40cdacdc3599225984d50
parent2d71a90f7e0fa3cd348602a36f6eb1237ab7cebb
docs/bpf: Add description for CO-RE relocations

Add a section on CO-RE relocations to llvm_relo.rst. Describe relevant .BTF.ext
structure, `enum bpf_core_relo_kind` and `struct bpf_core_relo` in some detail.

Description is based on doc-strings from:

  - include/uapi/linux/bpf.h:struct bpf_core_relo
  - tools/lib/bpf/relo_core.c:__bpf_core_types_match()

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/bpf/20230826222912.2560865-2-eddyz87@gmail.com
Documentation/bpf/btf.rst
Documentation/bpf/llvm_reloc.rst