-
Notifications
You must be signed in to change notification settings - Fork 42
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
emit btf debug info for loading with libbpf-rs #1
Comments
Remove this line, and use the linker with debug build. But there is another problem: libbpf expect the structure has field The simple solution is bithack of the bpf elf |
Hello, @alessandrod thanks for the linker, it is great. I think create a pr to remove few lines is overkill. Please, consider to remove this line, or add a command line option. |
I'll put the strip behind a command line flag, but I'm curious has anyone been getting segfaults generating BTF debug info? I know there's something that triggers a segfault in the BTF emitter in llvm, but haven't had time to look into it. |
I have a bpf binary containing ring buffer, map, dozen of tracepoints and some non-trivial logic, I never saw a segfault during developing. But I saw some segfault when use release mode bpf binary, maybe it is how to reproduce the issue. Anyway it makes no sense to use release mode bpf with libbpf. |
Done in #182 |
No description provided.
The text was updated successfully, but these errors were encountered: