-
Notifications
You must be signed in to change notification settings - Fork 11
kernel: generate BTF and enable ftrace, kprobes & dynamic debug #77
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enables eBPF support (including CO-RE) in the kernel by generating BTF (BPF Type Format) and enabling ftrace, kprobes, and dynamic debug features. This is intended to support running tools like Cilium's pwru for network debugging.
Key changes:
- Enables BTF generation by setting
CONFIG_DEBUG_INFO_BTF=yand updatingCONFIG_PAHOLE_VERSIONto 124 - Enables ftrace, kprobes, uprobes, and dynamic debug for tracing capabilities
- Adds pahole package dependency to the build environment
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| kernel/config-6.12.44-x86_64 | Enables debug info, BTF, ftrace, kprobes, dynamic debug, and related kernel configuration options for x86_64 |
| kernel/config-6.12.44-arm64 | Applies the same kernel configuration changes as x86_64 for arm64 architecture |
| Dockerfile | Adds pahole package dependency and changes kernel version from 6.12.46 to 6.12.44 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Commit 6121639 changed the kernel version compiled on x86 and arm64 but did not change the default KERNEL_VERSION in the Dockerfile. Signed-off-by: Albin Kerouanton <[email protected]>
Signed-off-by: Albin Kerouanton <[email protected]>
Signed-off-by: Albin Kerouanton <[email protected]>
Signed-off-by: Albin Kerouanton <[email protected]>
Signed-off-by: Albin Kerouanton <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This is required by bpftrace. See https://github.com/bpftrace/bpftrace/blob/a19d6abaa20ca307d9307ef0d2d58712f26c8e2f/docs/dependency_support.md. Signed-off-by: Albin Kerouanton <[email protected]>
This is required by bpftrace. See https://github.com/bpftrace/bpftrace/blob/a19d6abaa20ca307d9307ef0d2d58712f26c8e2f/docs/dependency_support.md. Signed-off-by: Albin Kerouanton <[email protected]>
This should give us eBPF support (including CO-RE), or at least enough to run http://github.com/cilium/pwru and https://github.com/bpftrace/bpftrace.