Nick Schuetz
Nick Schuetz
Same result: ``` # bee run tcpconnect SUCCESS Fetching program from registry: tcpconnect ERROR Loading BPF program and maps into Kernel Error: program tcp_v4_connect_ret: load program: invalid argument: R1 type=ctx...
Thanks @lgadban for pointing this out: https://nakryiko.com/posts/bpf-core-reference-guide/#guarding-potentially-failing-relocations
After including vmlinux_arm.h: `bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux_arm.h` and attempting a build I get: ``` # ./builder/build.sh ./examples/tcpconnect/tcpconnect.c tcpconnect.o ./examples/tcpconnect/tcpconnect.c:107:5: error: no member named 'di' in...
Changing the build.sh from `clang-13 -g -O2 -target bpf -D__TARGET_ARCH_x86 -Wall -c $1 -o $2` to `clang-13 -g -O2 -target bpf -D__TARGET_ARCH_ARM -Wall -c $1 -o $2 ` worked. ```...
That did it @yuval-k. A clean build of tcpconnect on arm64 without warnings or errors. It now runs as expected as well.
> @nickschuetz thanks for your application. > > I'm not seeing much engagement with this project yet, but we're excited to have you come and join the project. > >...