Procházet zdrojové kódy

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 před 2 roky
rodič
revize
200d42e414
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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_.*");
 
         let types = [
-            "bpf_map_.*",
+            "bpf_.*",
             "sk_action",
             "pt_regs",
             "user_pt_regs",