Skip to content

bpftool: Update to 7.7.0#473

Merged
HadrienPatte merged 1 commit intomasterfrom
pr/HadrienPatte/bpftool-7.7.0
Apr 10, 2026
Merged

bpftool: Update to 7.7.0#473
HadrienPatte merged 1 commit intomasterfrom
pr/HadrienPatte/bpftool-7.7.0

Conversation

@HadrienPatte
Copy link
Copy Markdown
Member

This PR is #472 with a couple additional fixes to account for changes between 7.6.0 and 7.7.0:

Validation:

$ docker build -t bpftool ./images/bpftool --target test --progress=plain --no-cache
[...]
#16 [test 5/5] RUN /test/bin/cst -C /test
#16 0.121 time="2026-03-23T10:42:13Z" level=info msg="File Existence Test: /usr/local/bin/bpftool"
#16 0.121 === RUN: Command Test: bpftool command is in path
#16 0.121 --- PASS
#16 0.121 duration: 953.333µs
#16 0.121 stdout: /usr/local/bin/bpftool
#16 0.121
#16 0.121 === RUN: Command Test: bpftool version
#16 0.121 --- PASS
#16 0.121 duration: 375.083µs
#16 0.121 stdout: bpftool v7.7.0
#16 0.121 using libbpf v1.7
#16 0.121 features:
#16 0.121
#16 0.121 === RUN: Command Test: bpftool is statically linked
#16 0.121 --- PASS
#16 0.121 duration: 6.999167ms
#16 0.121 stderr:       not a dynamic executable
#16 0.121
#16 0.121 === RUN: File Existence Test: /usr/local/bin/bpftool
#16 0.121 --- PASS
#16 0.121 duration: 0s
#16 0.121
#16 0.121 ===========================
#16 0.121 ========= RESULTS =========
#16 0.121 ===========================
#16 0.121 Passes:      4
#16 0.121 Failures:    0
#16 0.121 Duration:    8.327583ms
#16 0.121 Total tests: 4
#16 0.121
#16 0.121 PASS
#16 DONE 0.1s

Comment thread images/bpftool/Dockerfile Outdated
Comment on lines +18 to +19
apt update \
&& apt install -y --no-install-recommends libssl-dev \
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: no need for cleanup here since we're in an intermediate build stage and only the final bpftool binary will be extracted from that stage

This PR is #472 with a couple additional fixes to account for changes
between 7.6.0 and 7.7.0:

* It is no longer necessary to patch `LIBS` to add `-lzstd` since libbpf/bpftool@67f1758
* `bpftool` now links against `openssl`: "This comes at the cost of an
  additional build dependency to OpenSSL's development library." (see https://github.com/libbpf/bpftool/releases/tag/v7.7.0)

Signed-off-by: Hadrien Patte <hadrien.patte@datadoghq.com>
@HadrienPatte HadrienPatte force-pushed the pr/HadrienPatte/bpftool-7.7.0 branch from 1fd2c69 to 503d6ca Compare March 23, 2026 10:48
@HadrienPatte HadrienPatte marked this pull request as ready for review March 23, 2026 10:52
@HadrienPatte HadrienPatte requested a review from a team as a code owner March 23, 2026 10:52
@HadrienPatte HadrienPatte requested a review from rgo3 March 23, 2026 10:52
@HadrienPatte HadrienPatte added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 23, 2026
@HadrienPatte HadrienPatte merged commit cb6c639 into master Apr 10, 2026
11 checks passed
@HadrienPatte HadrienPatte deleted the pr/HadrienPatte/bpftool-7.7.0 branch April 10, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has passed all tests and received consensus from code owners to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants