xtask: Add `bpf_.*` instead of `bpf_map_.*` to allowed type

This patch replaces `bpf_map_.*` with `bpf_.*`.

Currently some types that are not used in helper functions are not generated for bindings - e.g. `bpf_sk_lookup`, `bpf_sockopt` and etc.
This patch replaces `bpf_map_.*` with `bpf_.*`.

Note, this PR does not include bindings files as it would be better to be created by auto script.
The missing bindings can be created by `cargo xtask codegen --libbpf-dir /<PATH_TO>/libbp`.
pull/266/head
Kenjiro Nakayama 3 years ago
parent 41a27e3784
commit 200d42e414

@ -46,7 +46,7 @@ pub fn codegen(opts: &Options) -> Result<(), anyhow::Error> {
.constified_enum("BPF_FLOW_.*"); .constified_enum("BPF_FLOW_.*");
let types = [ let types = [
"bpf_map_.*", "bpf_.*",
"sk_action", "sk_action",
"pt_regs", "pt_regs",
"user_pt_regs", "user_pt_regs",

Loading…
Cancel
Save