BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next] bpf, docs: Clarify call local offset
@ 2024-05-25 15:33 Dave Thaler
  2024-05-25 15:33 ` [Bpf] " Dave Thaler
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Dave Thaler @ 2024-05-25 15:33 UTC (permalink / raw)
  To: bpf; +Cc: bpf, Dave Thaler

In the Jump instructions section it explains that the offset is
"relative to the instruction following the jump instruction".
But the program-local section confusingly said "referenced by
offset from the call instruction, similar to JA".

This patch updates that sentence with consistent wording, saying
it's relative to the instruction following the call instruction.

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
---
 Documentation/bpf/standardization/instruction-set.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/bpf/standardization/instruction-set.rst b/Documentation/bpf/standardization/instruction-set.rst
index 00c93eb42..6bb5ae7e4 100644
--- a/Documentation/bpf/standardization/instruction-set.rst
+++ b/Documentation/bpf/standardization/instruction-set.rst
@@ -520,7 +520,7 @@ identifies the helper name and type.
 Program-local functions
 ~~~~~~~~~~~~~~~~~~~~~~~
 Program-local functions are functions exposed by the same BPF program as the
-caller, and are referenced by offset from the call instruction, similar to
+caller, and are referenced by offset from the instruction following the call instruction, similar to
 ``JA``.  The offset is encoded in the 'imm' field of the call instruction.
 An ``EXIT`` within the program-local function will return to the caller.
 
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-25 17:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-25 15:33 [PATCH bpf-next] bpf, docs: Clarify call local offset Dave Thaler
2024-05-25 15:33 ` [Bpf] " Dave Thaler
2024-05-25 16:47 ` Yonghong Song
2024-05-25 16:47   ` [Bpf] " Yonghong Song
2024-05-25 17:44 ` Alexei Starovoitov
2024-05-25 17:44   ` [Bpf] " Alexei Starovoitov
2024-05-25 17:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox