Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpf, docs: Fix typos in instructions-set.rst

* "imm32" should just be "imm"
* Add blank line to fix formatting error reported by Stephen Rothwell [0]

[0]: https://lore.kernel.org/bpf/20240206153301.4ead0bad@canb.auug.org.au/T/#u

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
Acked-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/r/20240206045146.4965-1-dthaler1968@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Dave Thaler and committed by
Alexei Starovoitov
563918a0 c7dcb6c9

+4 -3
+4 -3
Documentation/bpf/standardization/instruction-set.rst
··· 117 117 instruction has one or more conformance groups of which it is a member. 118 118 119 119 This document defines the following conformance groups: 120 + 120 121 * base32: includes all instructions defined in this 121 122 specification unless otherwise noted. 122 123 * base64: includes base32, plus instructions explicitly noted ··· 290 289 291 290 ``BPF_XOR | BPF_K | BPF_ALU`` means:: 292 291 293 - dst = (u32) dst ^ (u32) imm32 292 + dst = (u32) dst ^ (u32) imm 294 293 295 294 ``BPF_XOR | BPF_K | BPF_ALU64`` means:: 296 295 297 - dst = dst ^ imm32 296 + dst = dst ^ imm 298 297 299 298 Note that most instructions have instruction offset of 0. Only three instructions 300 299 (``BPF_SDIV``, ``BPF_SMOD``, ``BPF_MOVSX``) have a non-zero offset. ··· 512 511 513 512 ``BPF_MEM | <size> | BPF_ST`` means:: 514 513 515 - *(size *) (dst + offset) = imm32 514 + *(size *) (dst + offset) = imm 516 515 517 516 ``BPF_MEM | <size> | BPF_LDX`` means:: 518 517