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

Function LoadImmOp

asm/load_store.go:221–223  ·  view source on GitHub ↗

LoadImmOp returns the OpCode to load an immediate of given size. As of kernel 4.20, only DWord size is accepted.

(size Size)

Source from the content-addressed store, hash-verified

219//
220// As of kernel 4.20, only DWord size is accepted.
221func LoadImmOp(size Size) OpCode {
222 return OpCode(LdClass).SetMode(ImmMode).SetSize(size)
223}
224
225// LoadImm emits `dst = (size)value`.
226//

Callers 6

IsDWordLoadMethod · 0.85
LoadImmFunction · 0.85
LoadMapPtrFunction · 0.85
LoadMapValueFunction · 0.85
IsLoadFromMapMethod · 0.85
IsConstantLoadMethod · 0.85

Calls 3

OpCodeTypeAlias · 0.85
SetModeMethod · 0.80
SetSizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…