MCPcopy
hub / github.com/cilium/ebpf / OpCode

TypeAlias OpCode

asm/opcode.go:96–96  ·  view source on GitHub ↗

OpCode represents a single operation. It is not a 1:1 mapping to real eBPF opcodes. The encoding varies based on a 3-bit Class: 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 ??? | CLS For ALUClass and ALUCLass32: 7 6 5 4 3

Source from the content-addressed store, hash-verified

94// 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
95// 0 | OPC |S| CLS
96type OpCode uint32
97
98// InvalidOpCode is returned by setters on OpCode
99const InvalidOpCode OpCode = 0xffff

Callers 15

CallMethod · 0.85
TestGetSetJumpOpFunction · 0.85
HostToFunction · 0.85
BSwapFunction · 0.85
OpMethod · 0.85
Op32Method · 0.85
ReturnFunction · 0.85
OpMethod · 0.85
opCodeMethod · 0.85
LabelMethod · 0.85
SetModeMethod · 0.85
SetSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected