-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Autogenerate all eBPF feature combinations
* Add `bpf-features` crate which contains only the `BpfFeatures` struct with a static method `all_combinations`, which is then used both by `bpf-builder` (to build programs with all feature combinations) and and `bpf-common` (to pick the correct program based on detected features). * Add `bpf-feature-autodetect` crate and move feature probes there. * Add `bpf-features-macros` crate for with the `ebpf_programs_map` macro which autogenerates mapping of features to program bytes. The program bytes (for all feature sets) are still embedded in the final binary.
- Loading branch information
1 parent
8e678f3
commit 7e6dbed
Showing
23 changed files
with
417 additions
and
255 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ repository.workspace = true | |
|
||
[dependencies] | ||
anyhow = { workspace = true } | ||
bpf-features = { workspace = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.