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.
pull/598/head
Kenjiro Nakayama 2 years ago
parent 7cd1c642e3
commit 8c8d236f42

@ -46,6 +46,7 @@ pub fn codegen(opts: &Options) -> Result<(), anyhow::Error> {
"sk_action", "sk_action",
"pt_regs", "pt_regs",
"user_pt_regs", "user_pt_regs",
"user_regs_struct",
"xdp_action", "xdp_action",
]; ];
let vars = ["BPF_.*", "bpf_.*", "TC_ACT_.*", "SOL_SOCKET", "SO_.*"]; let vars = ["BPF_.*", "bpf_.*", "TC_ACT_.*", "SOL_SOCKET", "SO_.*"];

Loading…
Cancel
Save