From 8c8d236f42c1dadbf8761b2fb5ccfc8ffab224ae Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Mon, 1 May 2023 17:12:04 +0900 Subject: [PATCH] xtask: codegen: generate bindings for user_regs_struct This patch adds `user_regs_struct`. riscv provides struct user_regs_struct instead of struct pt_regs to userspace. After bindings generates the code, adding the riscv support in `bpf/aya-bpf/src/args.rs` then aya-bpf can be built for riscv. --- xtask/src/codegen/aya_bpf_bindings.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/xtask/src/codegen/aya_bpf_bindings.rs b/xtask/src/codegen/aya_bpf_bindings.rs index bcd7d44c..1bfcbc5b 100644 --- a/xtask/src/codegen/aya_bpf_bindings.rs +++ b/xtask/src/codegen/aya_bpf_bindings.rs @@ -46,6 +46,7 @@ pub fn codegen(opts: &Options) -> Result<(), anyhow::Error> { "sk_action", "pt_regs", "user_pt_regs", + "user_regs_struct", "xdp_action", ]; let vars = ["BPF_.*", "bpf_.*", "TC_ACT_.*", "SOL_SOCKET", "SO_.*"];