diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1de7ad..d8c7d3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: components: rust-src - name: Install bpf-linker - run: cargo +nightly install bpf-linker + run: cargo +nightly install --git https://github.com/dave-tucker/bpf-linker --branch btf bpf-linker - name: Install Cargo Generate run: cargo install --git https://github.com/cargo-generate/cargo-generate cargo-generate diff --git a/{{project-name}}-ebpf/.cargo/config.toml b/{{project-name}}-ebpf/.cargo/config.toml index 5d7e591..28eb48a 100644 --- a/{{project-name}}-ebpf/.cargo/config.toml +++ b/{{project-name}}-ebpf/.cargo/config.toml @@ -1,6 +1,8 @@ [build] target-dir = "../target" target = "bpfel-unknown-none" +# Experimental: Enable BTF Support. Requires btf-linker 0.9.3+ +# rustflags = ["-C", "link-args=--btf"] [unstable] build-std = ["core"] \ No newline at end of file diff --git a/{{project-name}}-ebpf/Cargo.toml b/{{project-name}}-ebpf/Cargo.toml index b062455..a6ede81 100644 --- a/{{project-name}}-ebpf/Cargo.toml +++ b/{{project-name}}-ebpf/Cargo.toml @@ -13,12 +13,13 @@ path = "src/main.rs" [profile.dev] panic = "abort" -debug = 1 opt-level = 2 overflow-checks = false [profile.release] panic = "abort" +# Experimental: Enable BTF Support. Requires btf-linker 0.9.3+ +# debug = 2 [workspace] members = []