فهرست منبع

chore: generate bindings for all eBPF insns

The binding for BPF_ADD was missing from codegen.
Use BPF_.* to capture all of these to avoid missing bindings in future.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Dave Tucker 4 روز پیش
والد
کامیت
59c02447fa
1فایلهای تغییر یافته به همراه1 افزوده شده و 20 حذف شده
  1. 1 20
      xtask/src/codegen/aya.rs

+ 1 - 20
xtask/src/codegen/aya.rs

@@ -130,26 +130,7 @@ fn codegen_bindings(opts: &SysrootOptions, libbpf_dir: &Path) -> Result<()> {
         let vars = [
             // BPF
             "BPF_PSEUDO_.*",
-            "BPF_ALU",
-            "BPF_ALU64",
-            "BPF_LDX",
-            "BPF_ST",
-            "BPF_STX",
-            "BPF_LD",
-            "BPF_K",
-            "BPF_X",
-            "BPF_DW",
-            "BPF_W",
-            "BPF_H",
-            "BPF_B",
-            "BPF_IMM",
-            "BPF_MEM",
-            "BPF_SUB",
-            "BPF_MOV",
-            "BPF_F_.*",
-            "BPF_JMP",
-            "BPF_CALL",
-            "BPF_EXIT",
+            "BPF_.*",
             "SO_ATTACH_BPF",
             "SO_DETACH_BPF",
             // BTF