aya-bpf-bindings: generate bindings for pt_regs and sk_action

pull/1/head
Alessandro Decina 4 years ago
parent ca4b3bfc04
commit 696ca1ffa8

@ -1,3 +1,4 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/bpf.h> #include <linux/bpf.h>
#include <linux/ptrace.h>
#include "bpf_helpers.h" #include "bpf_helpers.h"

@ -37,7 +37,7 @@ pub fn codegen(opts: &Options) -> Result<(), anyhow::Error> {
.constified_enum("BPF_FIB_.*") .constified_enum("BPF_FIB_.*")
.constified_enum("BPF_FLOW_.*"); .constified_enum("BPF_FLOW_.*");
let types = ["bpf_map_.*"]; let types = ["bpf_map_.*", "sk_action", "pt_regs"];
let vars = ["BPF_.*", "bpf_.*"]; let vars = ["BPF_.*", "bpf_.*"];
for x in &types { for x in &types {

Loading…
Cancel
Save