diff --git a/Documentation/bpf/instruction-set.rst b/Documentation/bpf/instruction-set.rst index c1c17ee60ecb..af515de5fc38 100644 --- a/Documentation/bpf/instruction-set.rst +++ b/Documentation/bpf/instruction-set.rst @@ -7,6 +7,11 @@ eBPF Instruction Set Specification, v1.0 This document specifies version 1.0 of the eBPF instruction set. +Documentation conventions +========================= + +For brevity, this document uses the type notion "u64", "u32", etc. +to mean an unsigned integer whose width is the specified number of bits. Registers and calling convention ================================ @@ -164,6 +169,8 @@ the destination register is unchanged whereas for ``BPF_ALU`` the upper dst = (u32) ((u32) dst + (u32) src) +where '(u32)' indicates that the upper 32 bits are zeroed. + ``BPF_ADD | BPF_X | BPF_ALU64`` means:: dst = dst + src