diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-12 23:28:38 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-12 23:28:38 +0200 |
| commit | 2efe5330cb43f685f3159a28ce211392a0bbe3c3 (patch) | |
| tree | 3b0683a80e2b299f44b9dcb9a90383a140dad133 /README.md | |
| parent | 28338f46461c684f1448878a5d9dcd7f2121f7d2 (diff) | |
docs: finalize libbpfgo upgrade guidance
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -31,6 +31,29 @@ git -C ../libbpfgo submodule update --init --recursive make -C ../libbpfgo libbpfgo-static ``` +Validated commands for this pin: + +```shell +env GOTOOLCHAIN=auto mage world +env GOTOOLCHAIN=auto mage integrationTest +``` + +Troubleshooting and rollback: + +- If builds fail with `bpf/bpf.h` missing, re-run the checkout, submodule sync, + and `make libbpfgo-static` commands above, then retry `env GOTOOLCHAIN=auto mage world`. +- Prefer Mage targets over raw `go test` for packages that import `libbpfgo`; + Mage injects the required `CGO_CFLAGS`, `CGO_LDFLAGS`, and `LIBBPFGO` values. +- To roll back to the previous wrapper state, repin `go.mod` to + `github.com/aquasecurity/libbpfgo v0.6.0-libbpf-1.3.0.20240111220235-90dbffffbdab`, + then reset the sibling checkout and rebuild: + +```shell +git -C ../libbpfgo checkout 90dbffffbdab +git -C ../libbpfgo submodule update --init --recursive +make -C ../libbpfgo libbpfgo-static +``` + ## Timing Semantics Each reported event pair has two timing counters: |
