Add experimental BTF support

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/22/head
Dave Tucker 3 years ago
parent 292ae61bee
commit 1b3c371772

@ -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

@ -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"]

@ -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 = []

Loading…
Cancel
Save