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

libbpf expects kernel config at specific locations. #721

Open
tomer-shefler opened this issue Aug 28, 2023 · 1 comment
Open

libbpf expects kernel config at specific locations. #721

tomer-shefler opened this issue Aug 28, 2023 · 1 comment

Comments

@tomer-shefler
Copy link

tomer-shefler commented Aug 28, 2023

Hi,
I'm getting libbpf: failed to open system Kconfig due to the fact that the kernelconfig in my platform is located on a different location (/lib/modules/$(uname -r)/config)
Libbbpf currently only looks at /boot/ or /proc/ zipped.

Can this be configurable somehow? Got any other suggestions? let me know

@tomer-shefler tomer-shefler changed the title libbpf expect kernel config in specific locations. libbpf expects kernel config at specific locations. Aug 28, 2023
@anakryiko
Copy link
Member

see kconfig option in bpf_object_open_opts, you can provide an entire contents of Kconfig file as a string, and if libbpf finds all necessary values there, it shouldn't attempt to find a system-wide Kconfig

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

No branches or pull requests

2 participants