-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ebpf support for mips,ppc and risc archs
* Test if the bpf assets can be compiled for different archs in CI. * We are only ensuring the bpf assets are able to compile. No guarantee that these work in prod as we are not doing any functional testing. Signed-off-by: Mahendra Paipuri <[email protected]>
- Loading branch information
1 parent
1b009cd
commit 5964d3d
Showing
6 changed files
with
223 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -exo pipefail | ||
|
||
# Change directory | ||
cd pkg/collector/bpf | ||
|
||
# List of archs to test | ||
declare -a archs=("386" "amd64" "arm64" "mips" "mipsle" "mips64" "mips64le" "ppc64le" "riscv64") | ||
|
||
# Test if we can compile bpf assets for all these archs | ||
for arch in "${archs[@]}" | ||
do | ||
echo "Compiling bpf assets for $arch" | ||
make clean | ||
GOARCH="$arch" make | ||
done | ||
|
||
# Clean up all the assets | ||
make clean |