Skip to contentSkip to conversation

BPF assembler?

DISCUSSION Jakub Kicinski 3 participants 4 messages Aug 31, 2017

lore
Share & tools
lore
#0 lore raw

Hi!

Is there any way to write eBPF programs in some form of an assembly language?

#1 lore raw
Quoted 4 lines · Jakub Kicinski

Hi!

Is there any way to write eBPF programs in some form of an assembly language?

was Dave's gnu asm upstreamed? I lost the track while away... llvm assembler is almost there too, but it needs some work.

#2 lore raw
Quoted 7 lines · Alexei Starovoitov
Quoted 4 lines · Jakub Kicinski

Hi!

Is there any way to write eBPF programs in some form of an assembly language?

was Dave's gnu asm upstreamed? I lost the track while away...

I'm not sure, I don't see it here:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git

Quoted 1 line

llvm assembler is almost there too, but it needs some work.

Does it use the "verifier instruction format"? Is it available somewhere to look at?

Either way, I would be happy to help finish at least one of them :)

#3 lore raw
In reply to Alexei Starovoitov

From: Alexei Starovoitov <[email protected]>
Date: Wed, 30 Aug 2017 21:14:33 -0700

Quoted 8 lines · Jakub Kicinski
Quoted 4 lines

Hi!

Is there any way to write eBPF programs in some form of an assembly language?

was Dave's gnu asm upstreamed? I lost the track while away... llvm assembler is almost there too, but it needs some work.

No, I never was able to move forward on that unfortunately.