From 2319770f5b167a0f879a685c1132b0cfb89e88d9 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Tue, 4 Feb 2025 13:07:17 -0500 Subject: [PATCH] codegen: generate additional userspace constants --- xtask/src/codegen/aya.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xtask/src/codegen/aya.rs b/xtask/src/codegen/aya.rs index d7270fa7..118e9d53 100644 --- a/xtask/src/codegen/aya.rs +++ b/xtask/src/codegen/aya.rs @@ -61,6 +61,7 @@ fn codegen_bindings(opts: &SysrootOptions, libbpf_dir: &Path) -> Result<(), anyh "bpf_link_info", "bpf_link_type", "bpf_btf_info", + "bpf_func_id", "bpf_func_info", "bpf_line_info", "bpf_lpm_trie_key", @@ -114,13 +115,19 @@ fn codegen_bindings(opts: &SysrootOptions, libbpf_dir: &Path) -> Result<(), anyh "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", "SO_ATTACH_BPF", "SO_DETACH_BPF", // BTF