-
Notifications
You must be signed in to change notification settings - Fork 97
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
[WIP] Enable bpf-next tree build and test #2064
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -285,6 +285,12 @@ test_plans: | |
kselftest_collections: "arm64" | ||
filters: *kselftest_no_fragment | ||
|
||
kselftest-bpf: | ||
<<: *kselftest | ||
params: | ||
job_timeout: '10' | ||
kselftest_collections: "bpf" | ||
Comment on lines
+288
to
+292
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we can actually do this because, like you mentioned, BPF requires an unreasonably cutting-edge toolchain. It's actually one of the reasons why it got disabled by default:
So a prerequisite before being able to run this test automatically would be to have a dedicated job to build a custom toolchain Docker image. This sounds like something to do with the new API, at some point in 2024 I guess. |
||
|
||
kselftest-capabilities: | ||
<<: *kselftest | ||
params: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ARG PAHOLE_VER=1.25 | ||
ARG SHA256SUM=db31d13c3dad8d9f4e38296bd35c4586e98b9c950e07dabba212985e6d051631 | ||
ARG PAHOLE_TRIPLE=dwarves-${PAHOLE_VER} | ||
|
||
RUN apt-get update && apt-get install -y elfutils libelf-dev libdw-dev cmake | ||
|
||
# https://lwn.net/Articles/928617/ | ||
RUN wget https://fedorapeople.org/~acme/dwarves/${PAHOLE_TRIPLE}.tar.xz && \ | ||
wget https://fedorapeople.org/~acme/dwarves/${PAHOLE_TRIPLE}.tar.sign && \ | ||
tar -xf ${PAHOLE_TRIPLE}.tar.xz -C /tmp/ && \ | ||
cd /tmp/${PAHOLE_TRIPLE} && \ | ||
ls /tmp/${PAHOLE_TRIPLE} && \ | ||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -D__LIB=lib . && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
rm -rf /tmp/${PAHOLE_TRIPLE} && \ | ||
rm /${PAHOLE_TRIPLE}* | ||
|
||
ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH:-}:/usr/local/lib |
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.
It might be better to directly declare the variants here rather than elsewhere in the file with an anchor as it's only used with the BPF tree.