Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.51 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.51 KB

kernels

This repository holds both infrastructure and assets for bpftrace's CI kernels.

We use a dummy release as an object store.

Adding a new kernel

To add a new kernel, update KERNELS with the upstream tag of the version you want. Examples:

  • v6.12
  • v6.12-rc7

Once the change is checked in, automation will build and upload any kernels not already present in the Assets Release to the assets release.

Doing a local build

Doing a local build is useful for testing an infra or config change. For example:

$ ./build.sh v6.6
[...]

$ file linux-v6.6.tar.zst
linux-v6.6.tar.zst: Zstandard compressed data (v0.8+), Dictionary ID: None

$ tar --zstd -xvf linux-v6.6.tar.zst
[...]

$ vmtest -k ./assets/bzImage -- uname -r
=> bzImage
===> Booting
===> Setting up VM
===> Running command
6.6.0

Note it could take a while to build a kernel.

Changing already-built kernels

Automation is not yet smart enough to rebuild and reupload existing assets affected by a config or infra change. If you want to change an already-uploaded kernel, delete the impacted kernel from the release assets and trigger a new run.

You can trigger a new run by going to the workflow page and following these docs to trigger a manual run.