MCPcopy Index your code
hub / github.com/cilium/ebpf / Source

Method Source

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

Source returns the source for branch and ALU operations.

()

Source from the content-addressed store, hash-verified

153
154// Source returns the source for branch and ALU operations.
155func (op OpCode) Source() Source {
156 if !op.Class().isJumpOrALU() || op.ALUOp() == Swap {
157 return InvalidSource
158 }
159 return Source(op & sourceMask)
160}
161
162// ALUOp returns the ALUOp.
163func (op OpCode) ALUOp() ALUOp {

Callers 7

StringMethod · 0.95
TestProgInfoExtBTFFunction · 0.45
mustGoTypeDeclarationFunction · 0.45
MarshalExtInfosFunction · 0.45
ApplyMethod · 0.45
WriteFormattedFunction · 0.45

Calls 4

ClassMethod · 0.95
ALUOpMethod · 0.95
SourceTypeAlias · 0.85
isJumpOrALUMethod · 0.80

Tested by 3

TestProgInfoExtBTFFunction · 0.36
mustGoTypeDeclarationFunction · 0.36