* [PATCH bpf] bpf, docs: Fix the description of 'src' in ALU instructions
@ 2024-05-14 13:03 Puranjay Mohan
2024-05-14 14:33 ` dthaler1968
2024-05-15 16:58 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Puranjay Mohan @ 2024-05-14 13:03 UTC (permalink / raw)
To: David Vernet, Alexei Starovoitov, Daniel Borkmann,
Andrii Nakryiko, Martin KaFai Lau, Eduard Zingerman, Song Liu,
Yonghong Song, John Fastabend, KP Singh, Stanislav Fomichev,
Hao Luo, Jiri Olsa, Jonathan Corbet, Dave Thaler, Will Hawkins,
bpf, bpf, linux-doc, linux-kernel
Cc: puranjay12
An ALU instruction's source operand can be the value in the source
register or the 32-bit immediate value encoded in the instruction. This
is controlled by the 's' bit of the 'opcode'.
The current description explicitly uses the phrase 'value of the source
register' when defining the meaning of 'src'.
Change the description to use 'source operand' in place of 'value of the
source register'.
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
---
Documentation/bpf/standardization/instruction-set.rst | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Documentation/bpf/standardization/instruction-set.rst b/Documentation/bpf/standardization/instruction-set.rst
index a5ab00ac0b14..2e17b365388e 100644
--- a/Documentation/bpf/standardization/instruction-set.rst
+++ b/Documentation/bpf/standardization/instruction-set.rst
@@ -292,8 +292,9 @@ Arithmetic instructions
``ALU`` uses 32-bit wide operands while ``ALU64`` uses 64-bit wide operands for
otherwise identical operations. ``ALU64`` instructions belong to the
base64 conformance group unless noted otherwise.
-The 'code' field encodes the operation as below, where 'src' and 'dst' refer
-to the values of the source and destination registers, respectively.
+The 'code' field encodes the operation as below, where 'src' refers to the
+the source operand and 'dst' refers to the value of the destination
+register.
===== ===== ======= ==========================================================
name code offset description
--
2.40.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH bpf] bpf, docs: Fix the description of 'src' in ALU instructions
2024-05-14 13:03 [PATCH bpf] bpf, docs: Fix the description of 'src' in ALU instructions Puranjay Mohan
@ 2024-05-14 14:33 ` dthaler1968
2024-05-15 16:58 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: dthaler1968 @ 2024-05-14 14:33 UTC (permalink / raw)
To: 'Puranjay Mohan', 'David Vernet',
'Alexei Starovoitov', 'Daniel Borkmann',
'Andrii Nakryiko', 'Martin KaFai Lau',
'Eduard Zingerman', 'Song Liu',
'Yonghong Song', 'John Fastabend',
'KP Singh', 'Stanislav Fomichev',
'Hao Luo', 'Jiri Olsa', 'Jonathan Corbet',
'Dave Thaler', 'Will Hawkins', bpf, bpf,
linux-doc, linux-kernel
Cc: puranjay12
Puranjay Mohan <puranjay@kernel.org> wrote:
> An ALU instruction's source operand can be the value in the source
register or the
> 32-bit immediate value encoded in the instruction. This is controlled by
the 's' bit of
> the 'opcode'.
>
> The current description explicitly uses the phrase 'value of the source
register'
> when defining the meaning of 'src'.
>
> Change the description to use 'source operand' in place of 'value of the
source
> register'.
>
> Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Acked-by: Dave Thaler <dthaler1968@gmail.com>
> ---
> Documentation/bpf/standardization/instruction-set.rst | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/bpf/standardization/instruction-set.rst
> b/Documentation/bpf/standardization/instruction-set.rst
> index a5ab00ac0b14..2e17b365388e 100644
> --- a/Documentation/bpf/standardization/instruction-set.rst
> +++ b/Documentation/bpf/standardization/instruction-set.rst
> @@ -292,8 +292,9 @@ Arithmetic instructions ``ALU`` uses 32-bit wide
> operands while ``ALU64`` uses 64-bit wide operands for otherwise
identical
> operations. ``ALU64`` instructions belong to the
> base64 conformance group unless noted otherwise.
> -The 'code' field encodes the operation as below, where 'src' and 'dst'
refer -to the
> values of the source and destination registers, respectively.
> +The 'code' field encodes the operation as below, where 'src' refers to
> +the the source operand and 'dst' refers to the value of the destination
> +register.
>
> ===== ===== =======
> ==========================================================
> name code offset description
> --
> 2.40.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH bpf] bpf, docs: Fix the description of 'src' in ALU instructions
2024-05-14 13:03 [PATCH bpf] bpf, docs: Fix the description of 'src' in ALU instructions Puranjay Mohan
2024-05-14 14:33 ` dthaler1968
@ 2024-05-15 16:58 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-05-15 16:58 UTC (permalink / raw)
To: Puranjay Mohan
Cc: void, ast, daniel, andrii, martin.lau, eddyz87, song,
yonghong.song, john.fastabend, kpsingh, sdf, haoluo, jolsa,
corbet, dthaler1968, hawkinsw, bpf, bpf, linux-doc, linux-kernel,
puranjay12
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Tue, 14 May 2024 13:03:03 +0000 you wrote:
> An ALU instruction's source operand can be the value in the source
> register or the 32-bit immediate value encoded in the instruction. This
> is controlled by the 's' bit of the 'opcode'.
>
> The current description explicitly uses the phrase 'value of the source
> register' when defining the meaning of 'src'.
>
> [...]
Here is the summary with links:
- [bpf] bpf, docs: Fix the description of 'src' in ALU instructions
https://git.kernel.org/bpf/bpf/c/7a8030057f67
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-15 16:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14 13:03 [PATCH bpf] bpf, docs: Fix the description of 'src' in ALU instructions Puranjay Mohan
2024-05-14 14:33 ` dthaler1968
2024-05-15 16:58 ` 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;
as well as URLs for NNTP newsgroup(s).