mbox series

[bpf-next,v2,0/1] docs/bpf: Add description for CO-RE relocations

Message ID 20230825224527.2465062-1-eddyz87@gmail.com (mailing list archive)
Headers show
Series docs/bpf: Add description for CO-RE relocations | expand

Message

Eduard Zingerman Aug. 25, 2023, 10:45 p.m. UTC
Add a section on CO-RE relocations to llvm_relo.rst.
Based on doc-strings from include/uapi/linux/bpf.h and
tools/lib/bpf/relo_core.c

Changelog:
V1 -> V2:
 - Small fixes suggested by Yonghong and Andrii;
 - C example extended to include all 13 relocation kinds (Yonghong);
 - Description of which fields are patched for which instruction
   classes (Andrii);
 - Details for BPF_CORE_TYPE_MATCHES relocation kind;
 - Details for BPF_CORE_FIELD_{LR}SHIFT_U64 relocation kinds.

[V1] https://lore.kernel.org/bpf/20230824230102.2117902-1-eddyz87@gmail.com/

Eduard Zingerman (1):
  docs/bpf: Add description for CO-RE relocations

 Documentation/bpf/btf.rst        |  31 +++-
 Documentation/bpf/llvm_reloc.rst | 304 +++++++++++++++++++++++++++++++
 2 files changed, 329 insertions(+), 6 deletions(-)