Skip to content

Commit

Permalink
[codegen] Update libbpf to 80b16457cb23db4d633b17ba0305f29daa2eb307Up…
Browse files Browse the repository at this point in the history
…date libbpf to 80b16457cb23db4d633b17ba0305f29daa2eb307

Files changed:
M	aya-obj/src/generated/btf_internal_bindings.rs
M	aya-obj/src/generated/linux_bindings_aarch64.rs
M	aya-obj/src/generated/linux_bindings_armv7.rs
M	aya-obj/src/generated/linux_bindings_powerpc64.rs
M	aya-obj/src/generated/linux_bindings_riscv64.rs
M	aya-obj/src/generated/linux_bindings_s390x.rs
M	aya-obj/src/generated/linux_bindings_x86_64.rs
  • Loading branch information
dave-tucker committed Oct 11, 2024
1 parent 366c599 commit 9db67d1
Show file tree
Hide file tree
Showing 7 changed files with 433 additions and 193 deletions.
2 changes: 1 addition & 1 deletion aya-obj/src/generated/btf_internal_bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.69.4 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __u8 = ::core::ffi::c_uchar;
pub type __u16 = ::core::ffi::c_ushort;
Expand Down
104 changes: 72 additions & 32 deletions aya-obj/src/generated/linux_bindings_aarch64.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.69.4 */
/* automatically generated by rust-bindgen 0.70.1 */

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
Expand Down Expand Up @@ -237,6 +237,15 @@ pub struct bpf_lpm_trie_key {
pub prefixlen: __u32,
pub data: __IncompleteArrayField<__u8>,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum bpf_cgroup_iter_order {
BPF_CGROUP_ITER_ORDER_UNSPEC = 0,
BPF_CGROUP_ITER_SELF_ONLY = 1,
BPF_CGROUP_ITER_DESCENDANTS_PRE = 2,
BPF_CGROUP_ITER_DESCENDANTS_POST = 3,
BPF_CGROUP_ITER_ANCESTORS_UP = 4,
}
impl bpf_cmd {
pub const BPF_PROG_RUN: bpf_cmd = bpf_cmd::BPF_PROG_TEST_RUN;
}
Expand Down Expand Up @@ -447,6 +456,17 @@ pub enum bpf_link_type {
BPF_LINK_TYPE_NETKIT = 13,
__MAX_BPF_LINK_TYPE = 14,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum bpf_perf_event_type {
BPF_PERF_EVENT_UNSPEC = 0,
BPF_PERF_EVENT_UPROBE = 1,
BPF_PERF_EVENT_URETPROBE = 2,
BPF_PERF_EVENT_KPROBE = 3,
BPF_PERF_EVENT_KRETPROBE = 4,
BPF_PERF_EVENT_TRACEPOINT = 5,
BPF_PERF_EVENT_EVENT = 6,
}
pub const BPF_F_KPROBE_MULTI_RETURN: _bindgen_ty_2 = 1;
pub type _bindgen_ty_2 = ::core::ffi::c_uint;
pub const BPF_F_UPROBE_MULTI_RETURN: _bindgen_ty_3 = 1;
Expand Down Expand Up @@ -1405,6 +1425,26 @@ pub const __IFLA_XDP_MAX: _bindgen_ty_92 = 9;
pub type _bindgen_ty_92 = ::core::ffi::c_uint;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum nf_inet_hooks {
NF_INET_PRE_ROUTING = 0,
NF_INET_LOCAL_IN = 1,
NF_INET_FORWARD = 2,
NF_INET_LOCAL_OUT = 3,
NF_INET_POST_ROUTING = 4,
NF_INET_NUMHOOKS = 5,
}
pub const NFPROTO_UNSPEC: _bindgen_ty_99 = 0;
pub const NFPROTO_INET: _bindgen_ty_99 = 1;
pub const NFPROTO_IPV4: _bindgen_ty_99 = 2;
pub const NFPROTO_ARP: _bindgen_ty_99 = 3;
pub const NFPROTO_NETDEV: _bindgen_ty_99 = 5;
pub const NFPROTO_BRIDGE: _bindgen_ty_99 = 7;
pub const NFPROTO_IPV6: _bindgen_ty_99 = 10;
pub const NFPROTO_DECNET: _bindgen_ty_99 = 12;
pub const NFPROTO_NUMPROTO: _bindgen_ty_99 = 13;
pub type _bindgen_ty_99 = ::core::ffi::c_uint;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum perf_type_id {
PERF_TYPE_HARDWARE = 0,
PERF_TYPE_SOFTWARE = 1,
Expand Down Expand Up @@ -2373,20 +2413,20 @@ pub enum perf_event_type {
PERF_RECORD_AUX_OUTPUT_HW_ID = 21,
PERF_RECORD_MAX = 22,
}
pub const TCA_BPF_UNSPEC: _bindgen_ty_152 = 0;
pub const TCA_BPF_ACT: _bindgen_ty_152 = 1;
pub const TCA_BPF_POLICE: _bindgen_ty_152 = 2;
pub const TCA_BPF_CLASSID: _bindgen_ty_152 = 3;
pub const TCA_BPF_OPS_LEN: _bindgen_ty_152 = 4;
pub const TCA_BPF_OPS: _bindgen_ty_152 = 5;
pub const TCA_BPF_FD: _bindgen_ty_152 = 6;
pub const TCA_BPF_NAME: _bindgen_ty_152 = 7;
pub const TCA_BPF_FLAGS: _bindgen_ty_152 = 8;
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_152 = 9;
pub const TCA_BPF_TAG: _bindgen_ty_152 = 10;
pub const TCA_BPF_ID: _bindgen_ty_152 = 11;
pub const __TCA_BPF_MAX: _bindgen_ty_152 = 12;
pub type _bindgen_ty_152 = ::core::ffi::c_uint;
pub const TCA_BPF_UNSPEC: _bindgen_ty_154 = 0;
pub const TCA_BPF_ACT: _bindgen_ty_154 = 1;
pub const TCA_BPF_POLICE: _bindgen_ty_154 = 2;
pub const TCA_BPF_CLASSID: _bindgen_ty_154 = 3;
pub const TCA_BPF_OPS_LEN: _bindgen_ty_154 = 4;
pub const TCA_BPF_OPS: _bindgen_ty_154 = 5;
pub const TCA_BPF_FD: _bindgen_ty_154 = 6;
pub const TCA_BPF_NAME: _bindgen_ty_154 = 7;
pub const TCA_BPF_FLAGS: _bindgen_ty_154 = 8;
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_154 = 9;
pub const TCA_BPF_TAG: _bindgen_ty_154 = 10;
pub const TCA_BPF_ID: _bindgen_ty_154 = 11;
pub const __TCA_BPF_MAX: _bindgen_ty_154 = 12;
pub type _bindgen_ty_154 = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ifinfomsg {
Expand All @@ -2408,23 +2448,23 @@ pub struct tcmsg {
pub tcm_parent: __u32,
pub tcm_info: __u32,
}
pub const TCA_UNSPEC: _bindgen_ty_170 = 0;
pub const TCA_KIND: _bindgen_ty_170 = 1;
pub const TCA_OPTIONS: _bindgen_ty_170 = 2;
pub const TCA_STATS: _bindgen_ty_170 = 3;
pub const TCA_XSTATS: _bindgen_ty_170 = 4;
pub const TCA_RATE: _bindgen_ty_170 = 5;
pub const TCA_FCNT: _bindgen_ty_170 = 6;
pub const TCA_STATS2: _bindgen_ty_170 = 7;
pub const TCA_STAB: _bindgen_ty_170 = 8;
pub const TCA_PAD: _bindgen_ty_170 = 9;
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_170 = 10;
pub const TCA_CHAIN: _bindgen_ty_170 = 11;
pub const TCA_HW_OFFLOAD: _bindgen_ty_170 = 12;
pub const TCA_INGRESS_BLOCK: _bindgen_ty_170 = 13;
pub const TCA_EGRESS_BLOCK: _bindgen_ty_170 = 14;
pub const __TCA_MAX: _bindgen_ty_170 = 15;
pub type _bindgen_ty_170 = ::core::ffi::c_uint;
pub const TCA_UNSPEC: _bindgen_ty_172 = 0;
pub const TCA_KIND: _bindgen_ty_172 = 1;
pub const TCA_OPTIONS: _bindgen_ty_172 = 2;
pub const TCA_STATS: _bindgen_ty_172 = 3;
pub const TCA_XSTATS: _bindgen_ty_172 = 4;
pub const TCA_RATE: _bindgen_ty_172 = 5;
pub const TCA_FCNT: _bindgen_ty_172 = 6;
pub const TCA_STATS2: _bindgen_ty_172 = 7;
pub const TCA_STAB: _bindgen_ty_172 = 8;
pub const TCA_PAD: _bindgen_ty_172 = 9;
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_172 = 10;
pub const TCA_CHAIN: _bindgen_ty_172 = 11;
pub const TCA_HW_OFFLOAD: _bindgen_ty_172 = 12;
pub const TCA_INGRESS_BLOCK: _bindgen_ty_172 = 13;
pub const TCA_EGRESS_BLOCK: _bindgen_ty_172 = 14;
pub const __TCA_MAX: _bindgen_ty_172 = 15;
pub type _bindgen_ty_172 = ::core::ffi::c_uint;
pub const AYA_PERF_EVENT_IOC_ENABLE: ::core::ffi::c_int = 9216;
pub const AYA_PERF_EVENT_IOC_DISABLE: ::core::ffi::c_int = 9217;
pub const AYA_PERF_EVENT_IOC_SET_BPF: ::core::ffi::c_int = 1074013192;
104 changes: 72 additions & 32 deletions aya-obj/src/generated/linux_bindings_armv7.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.69.4 */
/* automatically generated by rust-bindgen 0.70.1 */

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
Expand Down Expand Up @@ -237,6 +237,15 @@ pub struct bpf_lpm_trie_key {
pub prefixlen: __u32,
pub data: __IncompleteArrayField<__u8>,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum bpf_cgroup_iter_order {
BPF_CGROUP_ITER_ORDER_UNSPEC = 0,
BPF_CGROUP_ITER_SELF_ONLY = 1,
BPF_CGROUP_ITER_DESCENDANTS_PRE = 2,
BPF_CGROUP_ITER_DESCENDANTS_POST = 3,
BPF_CGROUP_ITER_ANCESTORS_UP = 4,
}
impl bpf_cmd {
pub const BPF_PROG_RUN: bpf_cmd = bpf_cmd::BPF_PROG_TEST_RUN;
}
Expand Down Expand Up @@ -447,6 +456,17 @@ pub enum bpf_link_type {
BPF_LINK_TYPE_NETKIT = 13,
__MAX_BPF_LINK_TYPE = 14,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum bpf_perf_event_type {
BPF_PERF_EVENT_UNSPEC = 0,
BPF_PERF_EVENT_UPROBE = 1,
BPF_PERF_EVENT_URETPROBE = 2,
BPF_PERF_EVENT_KPROBE = 3,
BPF_PERF_EVENT_KRETPROBE = 4,
BPF_PERF_EVENT_TRACEPOINT = 5,
BPF_PERF_EVENT_EVENT = 6,
}
pub const BPF_F_KPROBE_MULTI_RETURN: _bindgen_ty_2 = 1;
pub type _bindgen_ty_2 = ::core::ffi::c_uint;
pub const BPF_F_UPROBE_MULTI_RETURN: _bindgen_ty_3 = 1;
Expand Down Expand Up @@ -1405,6 +1425,26 @@ pub const __IFLA_XDP_MAX: _bindgen_ty_92 = 9;
pub type _bindgen_ty_92 = ::core::ffi::c_uint;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum nf_inet_hooks {
NF_INET_PRE_ROUTING = 0,
NF_INET_LOCAL_IN = 1,
NF_INET_FORWARD = 2,
NF_INET_LOCAL_OUT = 3,
NF_INET_POST_ROUTING = 4,
NF_INET_NUMHOOKS = 5,
}
pub const NFPROTO_UNSPEC: _bindgen_ty_99 = 0;
pub const NFPROTO_INET: _bindgen_ty_99 = 1;
pub const NFPROTO_IPV4: _bindgen_ty_99 = 2;
pub const NFPROTO_ARP: _bindgen_ty_99 = 3;
pub const NFPROTO_NETDEV: _bindgen_ty_99 = 5;
pub const NFPROTO_BRIDGE: _bindgen_ty_99 = 7;
pub const NFPROTO_IPV6: _bindgen_ty_99 = 10;
pub const NFPROTO_DECNET: _bindgen_ty_99 = 12;
pub const NFPROTO_NUMPROTO: _bindgen_ty_99 = 13;
pub type _bindgen_ty_99 = ::core::ffi::c_uint;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum perf_type_id {
PERF_TYPE_HARDWARE = 0,
PERF_TYPE_SOFTWARE = 1,
Expand Down Expand Up @@ -2373,20 +2413,20 @@ pub enum perf_event_type {
PERF_RECORD_AUX_OUTPUT_HW_ID = 21,
PERF_RECORD_MAX = 22,
}
pub const TCA_BPF_UNSPEC: _bindgen_ty_152 = 0;
pub const TCA_BPF_ACT: _bindgen_ty_152 = 1;
pub const TCA_BPF_POLICE: _bindgen_ty_152 = 2;
pub const TCA_BPF_CLASSID: _bindgen_ty_152 = 3;
pub const TCA_BPF_OPS_LEN: _bindgen_ty_152 = 4;
pub const TCA_BPF_OPS: _bindgen_ty_152 = 5;
pub const TCA_BPF_FD: _bindgen_ty_152 = 6;
pub const TCA_BPF_NAME: _bindgen_ty_152 = 7;
pub const TCA_BPF_FLAGS: _bindgen_ty_152 = 8;
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_152 = 9;
pub const TCA_BPF_TAG: _bindgen_ty_152 = 10;
pub const TCA_BPF_ID: _bindgen_ty_152 = 11;
pub const __TCA_BPF_MAX: _bindgen_ty_152 = 12;
pub type _bindgen_ty_152 = ::core::ffi::c_uint;
pub const TCA_BPF_UNSPEC: _bindgen_ty_154 = 0;
pub const TCA_BPF_ACT: _bindgen_ty_154 = 1;
pub const TCA_BPF_POLICE: _bindgen_ty_154 = 2;
pub const TCA_BPF_CLASSID: _bindgen_ty_154 = 3;
pub const TCA_BPF_OPS_LEN: _bindgen_ty_154 = 4;
pub const TCA_BPF_OPS: _bindgen_ty_154 = 5;
pub const TCA_BPF_FD: _bindgen_ty_154 = 6;
pub const TCA_BPF_NAME: _bindgen_ty_154 = 7;
pub const TCA_BPF_FLAGS: _bindgen_ty_154 = 8;
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_154 = 9;
pub const TCA_BPF_TAG: _bindgen_ty_154 = 10;
pub const TCA_BPF_ID: _bindgen_ty_154 = 11;
pub const __TCA_BPF_MAX: _bindgen_ty_154 = 12;
pub type _bindgen_ty_154 = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ifinfomsg {
Expand All @@ -2408,23 +2448,23 @@ pub struct tcmsg {
pub tcm_parent: __u32,
pub tcm_info: __u32,
}
pub const TCA_UNSPEC: _bindgen_ty_170 = 0;
pub const TCA_KIND: _bindgen_ty_170 = 1;
pub const TCA_OPTIONS: _bindgen_ty_170 = 2;
pub const TCA_STATS: _bindgen_ty_170 = 3;
pub const TCA_XSTATS: _bindgen_ty_170 = 4;
pub const TCA_RATE: _bindgen_ty_170 = 5;
pub const TCA_FCNT: _bindgen_ty_170 = 6;
pub const TCA_STATS2: _bindgen_ty_170 = 7;
pub const TCA_STAB: _bindgen_ty_170 = 8;
pub const TCA_PAD: _bindgen_ty_170 = 9;
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_170 = 10;
pub const TCA_CHAIN: _bindgen_ty_170 = 11;
pub const TCA_HW_OFFLOAD: _bindgen_ty_170 = 12;
pub const TCA_INGRESS_BLOCK: _bindgen_ty_170 = 13;
pub const TCA_EGRESS_BLOCK: _bindgen_ty_170 = 14;
pub const __TCA_MAX: _bindgen_ty_170 = 15;
pub type _bindgen_ty_170 = ::core::ffi::c_uint;
pub const TCA_UNSPEC: _bindgen_ty_172 = 0;
pub const TCA_KIND: _bindgen_ty_172 = 1;
pub const TCA_OPTIONS: _bindgen_ty_172 = 2;
pub const TCA_STATS: _bindgen_ty_172 = 3;
pub const TCA_XSTATS: _bindgen_ty_172 = 4;
pub const TCA_RATE: _bindgen_ty_172 = 5;
pub const TCA_FCNT: _bindgen_ty_172 = 6;
pub const TCA_STATS2: _bindgen_ty_172 = 7;
pub const TCA_STAB: _bindgen_ty_172 = 8;
pub const TCA_PAD: _bindgen_ty_172 = 9;
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_172 = 10;
pub const TCA_CHAIN: _bindgen_ty_172 = 11;
pub const TCA_HW_OFFLOAD: _bindgen_ty_172 = 12;
pub const TCA_INGRESS_BLOCK: _bindgen_ty_172 = 13;
pub const TCA_EGRESS_BLOCK: _bindgen_ty_172 = 14;
pub const __TCA_MAX: _bindgen_ty_172 = 15;
pub type _bindgen_ty_172 = ::core::ffi::c_uint;
pub const AYA_PERF_EVENT_IOC_ENABLE: ::core::ffi::c_int = 9216;
pub const AYA_PERF_EVENT_IOC_DISABLE: ::core::ffi::c_int = 9217;
pub const AYA_PERF_EVENT_IOC_SET_BPF: ::core::ffi::c_int = 1074013192;
Loading

0 comments on commit 9db67d1

Please sign in to comment.