All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eduard Zingerman <eddyz87@gmail.com>
To: bpf@vger.kernel.org, ast@kernel.org
Cc: andrii@kernel.org, daniel@iogearbox.net, martin.lau@linux.dev,
	kernel-team@fb.com, yonghong.song@linux.dev,
	Eduard Zingerman <eddyz87@gmail.com>
Subject: [PATCH bpf-next v2 0/1] docs/bpf: Add description for CO-RE relocations
Date: Sat, 26 Aug 2023 01:45:26 +0300	[thread overview]
Message-ID: <20230825224527.2465062-1-eddyz87@gmail.com> (raw)

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(-)

-- 
2.41.0


             reply	other threads:[~2023-08-25 22:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-25 22:45 Eduard Zingerman [this message]
2023-08-25 22:45 ` [PATCH bpf-next v2 1/1] docs/bpf: Add description for CO-RE relocations Eduard Zingerman
2023-08-26  4:24   ` Yonghong Song
2023-08-26 15:10     ` Eduard Zingerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230825224527.2465062-1-eddyz87@gmail.com \
    --to=eddyz87@gmail.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=kernel-team@fb.com \
    --cc=martin.lau@linux.dev \
    --cc=yonghong.song@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.