Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpftrace doesn't work due to fatal error: 'generated/autoconf.h' file not found #271

Open
christarazi opened this issue May 10, 2021 · 3 comments

Comments

@christarazi
Copy link
Member

I tried running bpftrace on the dev VMs on net-next, but was unable to due to:

$ sudo bpftrace xfrm_policy_kprobe.bpf
/lib/modules/5.12.0-rc4+/build/include/linux/kconfig.h:5:10: fatal error: 'generated/autoconf.h' file not found

It seems that that file is missing. Maybe we opt to not save it during the build?

@pchaigno
Copy link
Member

Did you test with an image other than the net-next one?

@christarazi
Copy link
Member Author

christarazi commented May 14, 2021

@pchaigno The file is available on the 'cilium/ubuntu-dev' (v199) box:

vagrant@runtime1:~$ ls /lib/modules/*/build/include/generated
/lib/modules/4.15.0-112-generic/build/include/generated:
asm-offsets.h  autoconf.h  autoksyms.h  bounds.h  compile.h  timeconst.h  uapi  utsrelease.h

/lib/modules/4.9.258-0409258-generic/build/include/generated:
asm-offsets.h  autoconf.h  autoksyms.h  bounds.h  compile.h  timeconst.h  uapi  utsrelease.h

@pchaigno
Copy link
Member

Same issue with bcc scripts 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants