aws / aws-network-policy-agent

Apache License 2.0
44 stars 29 forks source link

does aws-network-policy-agent work without vmlinux.h? #249

Open developer-guy opened 5 months ago

developer-guy commented 5 months ago

Hello folks👋

At the line #32 in Dockerfile make vmlinuxh tries to run bpftool btf dump file .. and it causes the following problem in our GitHub Actions workflow:

2024/04/13 20:08:33 INFO /sys/kernel/btf/vmlinux: cannot open `/sys/kernel/btf/vmlinux' (No such file or directory)
2024/04/13 20:08:33 INFO bpftool btf dump file /sys/kernel/btf/vmlinux format c > /home/build/pkg/ebpf/c/vmlinux.h
2024/04/13 20:08:33 WARN Error: failed to load BTF from /sys/kernel/btf/vmlinux: No such file or directory

So the questions are:

Thanks!

jayanthvn commented 4 months ago

@developer-guy - Do you know the kernel version where the build is happening?

Since looks like /sys/kernel/btf/vmlinux is missing.