Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
200d42e414
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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",