search for: bpfcparser

Displaying 2 results from an estimated 2 matches for "bpfcparser".

2018 Sep 13
4
bpf compilation using clang
...e instructions were generated using the following command line: clang -I ~/Builds/bpf_rss/iproute2/include -Wall -target bpf -O2 -emit-llvm -c upstream/qemu/hw/net/rss_tap_bpf_program.c -o - | llc -march=bpf -filetype=obj -o tap_bpf_program.o and then were translated to bpf instructions using the BPFCparser tool Every time I try to insert the array of instructions the verfier fails with the following error: back-edge from insn 363 to 364 or something similar even though the compilation succeeds. I have multiple maps in my code and I translate only the code section to bpf insns structure and insert...
2018 Sep 25
2
bpf compilation using clang
...t; instructions back to your source (though it's probably an LLVM bug to > produce them in the first place). > > If you send files reproducing the issue here people will have more > information to give you advice. > > > and then were translated to bpf instructions using the BPFCparser tool > > You seem to be the only person on the internet to have mentioned this > tool. If it's mangling the instruction stream it's also a candidate > for introducing bugs. It's a tool that I created for translating object files to instructions. It already uses the -S flag...