Skip to content

Commit d27bf30

Browse files
committed
asm: update and rename built-in functions
eBPF helpers are added frequently, so we should make updating the list simple. Remove the (duplicate, probably incorrect) documentation and re-generate the new list of functions.
1 parent 274f2d2 commit d27bf30

9 files changed

+355
-329
lines changed

asm/alu_string.go

+37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asm/dsl_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func TestDSL(t *testing.T) {
1010
have Instruction
1111
want Instruction
1212
}{
13-
{"Call", MapLookupElement.Call(), Instruction{OpCode: 0x85, Constant: 1}},
13+
{"Call", FnMapLookupElem.Call(), Instruction{OpCode: 0x85, Constant: 1}},
1414
{"Exit", Return(), Instruction{OpCode: 0x95}},
1515
{"LoadAbs", LoadAbs(2, Byte), Instruction{OpCode: 0x30, Constant: 2}},
1616
{"Store", StoreMem(RFP, -4, R0, Word), Instruction{

0 commit comments

Comments
 (0)