Skip to content

Commit

Permalink
xtask/codegen: generate bindings for BPF_RINGBUF types
Browse files Browse the repository at this point in the history
  • Loading branch information
willfindlay authored and ishitatsuyuki committed Jun 3, 2022
1 parent e2685c9 commit 777e6a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xtask/src/codegen/aya.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ fn codegen_bindings(opts: &Options) -> Result<(), anyhow::Error> {
"TC_H_MIN_PRIORITY",
"TC_H_MIN_INGRESS",
"TC_H_MIN_EGRESS",
// Ringbuf
"BPF_RINGBUF_.*",
];

let dir = PathBuf::from("aya");
Expand Down Expand Up @@ -193,7 +195,10 @@ fn codegen_bindings(opts: &Options) -> Result<(), anyhow::Error> {
.allowlist_var(x)
.constified_enum("BPF_F_.*")
.constified_enum("BTF_KIND_.*")
.constified_enum("BTF_VAR_.*");
.constified_enum("BTF_VAR_.*")
.constified_enum("IFLA_.*")
.constified_enum("TCA_.*")
.constified_enum("BPF_RINGBUF_.*");
}

for x in &types {
Expand Down

0 comments on commit 777e6a2

Please sign in to comment.