Use release profile for eBPF programs by default
This change removes the differentiation between release and dev profiles for eBPF programs. There is no way eBPF programs can be debugged and building them with dev profile just makes them slower and often unable to be verified. They should be always built with the release profile. After this change, `cargo xtask build-ebpf` is going to build eBPF programs with release profile. And the userspace program is going to include eBPF program bytes from target/release/. Regardless of which profile is being used in the userspace program. `cargo xtask build-ebpf` has the --profile argument which can be optionally used (i.e. for user-defined profiles), but by default the value of that option is `release`. Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>pull/31/head
parent
33a385c8ab
commit
ad9b8ee8dc
Loading…
Reference in New Issue