|
|
@ -40,7 +40,7 @@ fn codegen_internal_btf_bindings(opts: &Options) -> Result<(), anyhow::Error> {
|
|
|
|
let types = ["bpf_core_relo", "btf_ext_header"];
|
|
|
|
let types = ["bpf_core_relo", "btf_ext_header"];
|
|
|
|
|
|
|
|
|
|
|
|
for x in &types {
|
|
|
|
for x in &types {
|
|
|
|
bindgen = bindgen.whitelist_type(x);
|
|
|
|
bindgen = bindgen.allowlist_type(x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let bindings = bindgen
|
|
|
|
let bindings = bindgen
|
|
|
@ -154,10 +154,10 @@ fn codegen_bindings(opts: &Options) -> Result<(), anyhow::Error> {
|
|
|
|
let mut bindgen = builder();
|
|
|
|
let mut bindgen = builder();
|
|
|
|
|
|
|
|
|
|
|
|
for x in &types {
|
|
|
|
for x in &types {
|
|
|
|
bindgen = bindgen.whitelist_type(x);
|
|
|
|
bindgen = bindgen.allowlist_type(x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for x in &vars {
|
|
|
|
for x in &vars {
|
|
|
|
bindgen = bindgen.whitelist_var(x);
|
|
|
|
bindgen = bindgen.allowlist_var(x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: this stuff is probably debian/ubuntu specific
|
|
|
|
// FIXME: this stuff is probably debian/ubuntu specific
|
|
|
@ -174,11 +174,11 @@ fn codegen_bindings(opts: &Options) -> Result<(), anyhow::Error> {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
for x in &types {
|
|
|
|
for x in &types {
|
|
|
|
bindgen = bindgen.whitelist_type(x);
|
|
|
|
bindgen = bindgen.allowlist_type(x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for x in &vars {
|
|
|
|
for x in &vars {
|
|
|
|
bindgen = bindgen.whitelist_var(x);
|
|
|
|
bindgen = bindgen.allowlist_var(x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let bindings = bindgen
|
|
|
|
let bindings = bindgen
|
|
|
|