Repository navigation
engine: support running ebpf programs at engine start - #11548
Merged
Merged
Conversation
2 tasks done
sipsma
force-pushed
the
ebpf-support
branch
3 times, most recently
from
December 11, 2025 03:02
51bc489 to
b936616
Compare
Contributor
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
sipsma
force-pushed
the
ebpf-support
branch
4 times, most recently
from
December 30, 2025 21:47
30804f7 to
baadbd7
Compare
sipsma
marked this pull request as ready for review
December 30, 2025 22:01
sipsma
commented
Dec 30, 2025
| "glibc=2.42-r0", | ||
| "ld-linux=2.42-r0", | ||
| "libcrypt1=2.42-r0", | ||
| "busybox", |
Contributor
Author
There was a problem hiding this comment.
This is technically tangential, but I needed it at various times to install some packages successfully. The workaround was added prior to when we bumped our go-apk dependency which fixed a ton of bugs. Won't be sure until we try but I'm hoping we may now longer need this workaround 🤞
Closed
sipsma
force-pushed
the
ebpf-support
branch
3 times, most recently
from
January 15, 2026 22:01
c7347e9 to
20782ba
Compare
alexcb
approved these changes
Jan 15, 2026
alexcb
left a comment
Contributor
There was a problem hiding this comment.
looks pretty useful! I'm not that familar with eBPFs, so take my +1 with a grain of salt :)
sipsma
force-pushed
the
ebpf-support
branch
3 times, most recently
from
January 15, 2026 23:51
91bd4c5 to
7e38d01
Compare
Signed-off-by: Erik Sipsma <[email protected]>
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.
eBPF was crucial in debugging #11545 and #11556. It also has quite a bit of potential for future debugging, monitoring, performance analysis, and possibly even user facing features in terms of tracing (?)
Running it as a sidecar on my machine was very tedious, it's much nicer to have it in the engine itself and part of its logs. For the previous debugging I was shelling out to
bpftrace, but getting that to build for wolfi was a nightmare and extremely slow, so trying outcilium/ebpfas a library directly.LLMs (claude code + codex) seem to be consistently very good at converting "here's what I want to trace" into working ebpf programs. The two programs checked in here (
ovl_inusefor debugging overlay in-use warnings +filetracerfor tracing all file syscalls) were entirely written by them.engine/ebpf/AGENTS.mdto help out more hereWe obviously don't want to always run these programs, currently they can be configured by:
DAGGER_EBPF_PROG_<prog name>=y(e.g.DAGGER_EBPF_PROG_FILETRACER=y)cmd/engine/main.goExtraDebugis on, progs can be enabled by default by uncommenting entries in thedefaultEbpfProgramsmap at the top ofcmd/engine/main.goAlso added the ability to selectively enable progs per test workflow (add name of progs to new arg added in
toolchains/test-split/engine-tests.gen.dang), which is useful when trying to debug CI-only flakes.Overall the overhead of tracing seems to be extremely low. The
filetracerprog that logs every file create/rename/delete/etc. doesn't seem to have much noticeable impact on test runtime (though the engine logs do have over 1 million lines)