Commit 894cda55 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Alexei Starovoitov

bpf, docs: Document the opcode classes

Add a description for each opcode class.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220103183556.41040-4-hch@lst.de
parent be3193cd
...@@ -38,18 +38,18 @@ Instruction classes ...@@ -38,18 +38,18 @@ Instruction classes
The three LSB bits of the 'opcode' field store the instruction class: The three LSB bits of the 'opcode' field store the instruction class:
========= ===== ========= ===== ===============================
class value class value description
========= ===== ========= ===== ===============================
BPF_LD 0x00 BPF_LD 0x00 non-standard load operations
BPF_LDX 0x01 BPF_LDX 0x01 load into register operations
BPF_ST 0x02 BPF_ST 0x02 store from immediate operations
BPF_STX 0x03 BPF_STX 0x03 store from register operations
BPF_ALU 0x04 BPF_ALU 0x04 32-bit arithmetic operations
BPF_JMP 0x05 BPF_JMP 0x05 64-bit jump operations
BPF_JMP32 0x06 BPF_JMP32 0x06 32-bit jump operations
BPF_ALU64 0x07 BPF_ALU64 0x07 64-bit arithmetic operations
========= ===== ========= ===== ===============================
Arithmetic and jump instructions Arithmetic and jump instructions
================================ ================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment