Skip to content

Commit 7a80300

Browse files
puranjaymohanAlexei Starovoitov
authored andcommitted
bpf, docs: Fix the description of 'src' in ALU instructions
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 <[email protected]> Acked-by: Dave Thaler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 1de27bb commit 7a80300

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/bpf/standardization/instruction-set.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,9 @@ Arithmetic instructions
301301
``ALU`` uses 32-bit wide operands while ``ALU64`` uses 64-bit wide operands for
302302
otherwise identical operations. ``ALU64`` instructions belong to the
303303
base64 conformance group unless noted otherwise.
304-
The 'code' field encodes the operation as below, where 'src' and 'dst' refer
305-
to the values of the source and destination registers, respectively.
304+
The 'code' field encodes the operation as below, where 'src' refers to the
305+
the source operand and 'dst' refers to the value of the destination
306+
register.
306307

307308
===== ===== ======= ==========================================================
308309
name code offset description

0 commit comments

Comments
 (0)