Browse Source

xtask: Add `bpf_.*` instead of `bpf_map_.*` to allowed type

This patch replaces `bpf_map_.*` with `bpf_.*`.

Currently some types that are not used in helper functions are not generated for bindings - e.g. `bpf_sk_lookup`, `bpf_sockopt` and etc.
This patch replaces `bpf_map_.*` with `bpf_.*`.

Note, this PR does not include bindings files as it would be better to be created by auto script.
The missing bindings can be created by `cargo xtask codegen --libbpf-dir /<PATH_TO>/libbp`.
Kenjiro Nakayama 2 years ago
parent
commit
200d42e414
1 changed files with 1 additions and 1 deletions
  1. 1 1
      xtask/src/codegen/aya_bpf_bindings.rs

+ 1 - 1
xtask/src/codegen/aya_bpf_bindings.rs

@@ -46,7 +46,7 @@ pub fn codegen(opts: &Options) -> Result<(), anyhow::Error> {
             .constified_enum("BPF_FLOW_.*");
             .constified_enum("BPF_FLOW_.*");
 
 
         let types = [
         let types = [
-            "bpf_map_.*",
+            "bpf_.*",
             "sk_action",
             "sk_action",
             "pt_regs",
             "pt_regs",
             "user_pt_regs",
             "user_pt_regs",