kernel: generate BTF and enable ftrace, kprobes & dynamic debug#77
Open
akerouanton wants to merge 7 commits intocontainerd:mainfrom
Open
kernel: generate BTF and enable ftrace, kprobes & dynamic debug#77akerouanton wants to merge 7 commits intocontainerd:mainfrom
akerouanton wants to merge 7 commits intocontainerd:mainfrom
Conversation
There was a problem hiding this comment.
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 <albin.kerouanton@docker.com>
Signed-off-by: Albin Kerouanton <albin.kerouanton@docker.com>
Signed-off-by: Albin Kerouanton <albin.kerouanton@docker.com>
Signed-off-by: Albin Kerouanton <albin.kerouanton@docker.com>
Signed-off-by: Albin Kerouanton <albin.kerouanton@docker.com>
There was a problem hiding this comment.
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 <albin.kerouanton@docker.com>
This is required by bpftrace. See https://github.com/bpftrace/bpftrace/blob/a19d6abaa20ca307d9307ef0d2d58712f26c8e2f/docs/dependency_support.md. Signed-off-by: Albin Kerouanton <albin.kerouanton@docker.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.