Skip to content
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

CI: Test against kernel 5.18 #668

Merged
merged 4 commits into from Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions .semaphore/semaphore.yml
Expand Up @@ -42,7 +42,7 @@ blocks:
- name: TMPDIR
value: /tmp
- name: CI_MAX_KERNEL_VERSION
value: "5.15"
value: "5.18"
jobs:
- name: Build and Lint
commands:
Expand All @@ -61,10 +61,10 @@ blocks:
commands:
- sem-version go 1.17
- go test -v ./cmd/bpf2go -run TestRun
- timeout -s KILL 600s ./run-tests.sh 5.10
- timeout -s KILL 600s ./run-tests.sh $CI_MAX_KERNEL_VERSION
- name: Run unit tests
matrix:
- env_var: KERNEL_VERSION
values: ["5.15", "5.10", "5.4", "4.19", "4.14", "4.9"]
values: ["5.18", "5.15", "5.10", "5.4", "4.19", "4.14", "4.9"]
commands:
- timeout -s KILL 600s ./run-tests.sh $KERNEL_VERSION
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -30,15 +30,15 @@ have questions regarding the library.

## Packages

This library includes the following packages:
This library includes the following packages:

* [asm](https://pkg.go.dev/github.com/cilium/ebpf/asm) contains a basic
assembler, allowing you to write eBPF assembly instructions directly
within your Go code. (You don't need to use this if you prefer to write your eBPF program in C.)
* [cmd/bpf2go](https://pkg.go.dev/github.com/cilium/ebpf/cmd/bpf2go) allows
compiling and embedding eBPF programs written in C within Go code. As well as
compiling the C code, it auto-generates Go code for loading and manipulating
the eBPF program and map objects.
the eBPF program and map objects.
* [link](https://pkg.go.dev/github.com/cilium/ebpf/link) allows attaching eBPF
to various hooks
* [perf](https://pkg.go.dev/github.com/cilium/ebpf/perf) allows reading from a
Expand Down
8 changes: 8 additions & 0 deletions elf_reader_test.go
Expand Up @@ -689,6 +689,14 @@ func TestLibBPFCompat(t *testing.T) {
t.Skip("Skipping since .text contains 'subprog' twice")
case "linked_maps.linked3.o", "linked_funcs.linked3.o":
t.Skip("Skipping since weak relocations are not supported")
case "bloom_filter_map.o", "bloom_filter_map.linked3.o",
"bloom_filter_bench.o", "bloom_filter_bench.linked3.o":
t.Skip("Skipping due to missing MapExtra field in MapSpec")
case "btf_type_tag.o", "btf_type_tag.linked3.o", "test_btf_decl_tag.o",
"test_btf_decl_tag.linked3.o":
t.Skip("Skipping due to missing support for BTF_KIND_TYPE_TAG and BTF_KIND_DECL_TAG")
case "netif_receive_skb.linked3.o":
t.Skip("Skipping due to possible bug in upstream CO-RE generation")
}

t.Parallel()
Expand Down