-
Notifications
You must be signed in to change notification settings - Fork 24
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
GCC BPF support #164
GCC BPF support #164
Conversation
6922229
to
83066ab
Compare
835e83e
to
ed0eb19
Compare
a11be94
to
b118b37
Compare
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.
LGTM, I am just not sure if the BPF-GCC is complementary to the current bpf build, e.g after this build, we have 2 distinctive bpf objects, 1 for the llvm build, and one for the gcc one?
@chantra please see an explanation re these two questions below
Yes, it's handled transparently in The "bpf-toolchain" doesn't really change when we set BPF_GCC. This is why I decided to not include the changes from #144 that add "bpf-toolchain" action arguments. For example, let's say the CI toolchain-full is set to "llvm-17". So, the kernel is built with Now, on x86
So from the perspective of the CI, BPF_GCC is an additional test runner, built conditionally. Now to the question wether we want to run this on all variants of the toolchain, I think yes. This way we are testing BPF emitted by GCC against kernels built by different toolchains. |
Thanks, yes, make sense. |
A prerequisite for running selftests/bpf is a recent version of GCC compiled for BPF backend. Signed-off-by: Ihor Solodrai <[email protected]>
When BUILD_BPF_GCC is set in kernel-build, GCC BPF will be built and BPF_GCC variable set for build-selftests. When BPF_GCC is set, test_progs-bpf_gcc runner is built in selftests/bpf. If test_progs-bpf_gcc is specified in KERNEL_TEST, it will be executed by run-vmtest action. Signed-off-by: Ihor Solodrai <[email protected]>
Update kernel-build workflow and configs to run selftests/bpf with BPF objects compiled with recent GCC BPF. Signed-off-by: Ihor Solodrai <[email protected]>
vmtest CI passed: https://github.com/kernel-patches/vmtest/actions/runs/12814890364 Merging now. |
Merge libbpf/ci#164 Update kernel-build workflow and configs to run selftests/bpf with BPF objects compiled with recent GCC BPF. Signed-off-by: Ihor Solodrai <[email protected]>
Successor of #144