Created using GitHub Actions

pull/67/head
alessandrod 4 years ago
parent 4152e8b1a4
commit 7763ae88d7

@ -101,24 +101,6 @@ pub const BPF_PSEUDO_BTF_ID: u32 = 3;
pub const BPF_PSEUDO_FUNC: u32 = 4;
pub const BPF_PSEUDO_CALL: u32 = 1;
pub const BPF_PSEUDO_KFUNC_CALL: u32 = 2;
pub const BTF_KIND_UNKN: u32 = 0;
pub const BTF_KIND_INT: u32 = 1;
pub const BTF_KIND_PTR: u32 = 2;
pub const BTF_KIND_ARRAY: u32 = 3;
pub const BTF_KIND_STRUCT: u32 = 4;
pub const BTF_KIND_UNION: u32 = 5;
pub const BTF_KIND_ENUM: u32 = 6;
pub const BTF_KIND_FWD: u32 = 7;
pub const BTF_KIND_TYPEDEF: u32 = 8;
pub const BTF_KIND_VOLATILE: u32 = 9;
pub const BTF_KIND_CONST: u32 = 10;
pub const BTF_KIND_RESTRICT: u32 = 11;
pub const BTF_KIND_FUNC: u32 = 12;
pub const BTF_KIND_FUNC_PROTO: u32 = 13;
pub const BTF_KIND_VAR: u32 = 14;
pub const BTF_KIND_DATASEC: u32 = 15;
pub const BTF_KIND_FLOAT: u32 = 16;
pub const BTF_KIND_MAX: u32 = 16;
pub const BTF_INT_SIGNED: u32 = 1;
pub const BTF_INT_CHAR: u32 = 2;
pub const BTF_INT_BOOL: u32 = 4;
@ -714,6 +696,49 @@ pub union btf_type__bindgen_ty_1 {
pub size: __u32,
pub type_: __u32,
}
pub const BTF_KIND_UNKN: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_UNKN;
pub const BTF_KIND_INT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_INT;
pub const BTF_KIND_PTR: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_PTR;
pub const BTF_KIND_ARRAY: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_ARRAY;
pub const BTF_KIND_STRUCT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_STRUCT;
pub const BTF_KIND_UNION: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_UNION;
pub const BTF_KIND_ENUM: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_ENUM;
pub const BTF_KIND_FWD: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FWD;
pub const BTF_KIND_TYPEDEF: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_TYPEDEF;
pub const BTF_KIND_VOLATILE: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_VOLATILE;
pub const BTF_KIND_CONST: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_CONST;
pub const BTF_KIND_RESTRICT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_RESTRICT;
pub const BTF_KIND_FUNC: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FUNC;
pub const BTF_KIND_FUNC_PROTO: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FUNC_PROTO;
pub const BTF_KIND_VAR: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_VAR;
pub const BTF_KIND_DATASEC: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_DATASEC;
pub const BTF_KIND_FLOAT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FLOAT;
pub const BTF_KIND_TAG: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_TAG;
pub const NR_BTF_KINDS: _bindgen_ty_37 = _bindgen_ty_37::NR_BTF_KINDS;
pub const BTF_KIND_MAX: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_TAG;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_37 {
BTF_KIND_UNKN = 0,
BTF_KIND_INT = 1,
BTF_KIND_PTR = 2,
BTF_KIND_ARRAY = 3,
BTF_KIND_STRUCT = 4,
BTF_KIND_UNION = 5,
BTF_KIND_ENUM = 6,
BTF_KIND_FWD = 7,
BTF_KIND_TYPEDEF = 8,
BTF_KIND_VOLATILE = 9,
BTF_KIND_CONST = 10,
BTF_KIND_RESTRICT = 11,
BTF_KIND_FUNC = 12,
BTF_KIND_FUNC_PROTO = 13,
BTF_KIND_VAR = 14,
BTF_KIND_DATASEC = 15,
BTF_KIND_FLOAT = 16,
BTF_KIND_TAG = 17,
NR_BTF_KINDS = 18,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct btf_enum {
@ -819,8 +844,7 @@ pub enum perf_sw_ids {
PERF_COUNT_SW_EMULATION_FAULTS = 8,
PERF_COUNT_SW_DUMMY = 9,
PERF_COUNT_SW_BPF_OUTPUT = 10,
PERF_COUNT_SW_CGROUP_SWITCHES = 11,
PERF_COUNT_SW_MAX = 12,
PERF_COUNT_SW_MAX = 11,
}
#[repr(u64)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@ -845,12 +869,7 @@ pub enum perf_event_sample_format {
PERF_SAMPLE_TRANSACTION = 131072,
PERF_SAMPLE_REGS_INTR = 262144,
PERF_SAMPLE_PHYS_ADDR = 524288,
PERF_SAMPLE_AUX = 1048576,
PERF_SAMPLE_CGROUP = 2097152,
PERF_SAMPLE_DATA_PAGE_SIZE = 4194304,
PERF_SAMPLE_CODE_PAGE_SIZE = 8388608,
PERF_SAMPLE_WEIGHT_STRUCT = 16777216,
PERF_SAMPLE_MAX = 33554432,
PERF_SAMPLE_MAX = 1048576,
__PERF_SAMPLE_CALLCHAIN_EARLY = 9223372036854775808,
}
#[repr(C)]
@ -876,9 +895,6 @@ pub struct perf_event_attr {
pub aux_watermark: __u32,
pub sample_max_stack: __u16,
pub __reserved_2: __u16,
pub aux_sample_size: __u32,
pub __reserved_3: __u32,
pub sig_data: __u64,
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -1251,80 +1267,14 @@ impl perf_event_attr {
}
}
#[inline]
pub fn cgroup(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u64) }
}
#[inline]
pub fn set_cgroup(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(32usize, 1u8, val as u64)
}
}
#[inline]
pub fn text_poke(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u64) }
}
#[inline]
pub fn set_text_poke(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(33usize, 1u8, val as u64)
}
}
#[inline]
pub fn build_id(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u64) }
}
#[inline]
pub fn set_build_id(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(34usize, 1u8, val as u64)
}
}
#[inline]
pub fn inherit_thread(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u64) }
}
#[inline]
pub fn set_inherit_thread(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(35usize, 1u8, val as u64)
}
}
#[inline]
pub fn remove_on_exec(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u64) }
}
#[inline]
pub fn set_remove_on_exec(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(36usize, 1u8, val as u64)
}
}
#[inline]
pub fn sigtrap(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u64) }
}
#[inline]
pub fn set_sigtrap(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(37usize, 1u8, val as u64)
}
}
#[inline]
pub fn __reserved_1(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 26u8) as u64) }
unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 32u8) as u64) }
}
#[inline]
pub fn set___reserved_1(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(38usize, 26u8, val as u64)
self._bitfield_1.set(32usize, 32u8, val as u64)
}
}
#[inline]
@ -1360,12 +1310,6 @@ impl perf_event_attr {
ksymbol: __u64,
bpf_event: __u64,
aux_output: __u64,
cgroup: __u64,
text_poke: __u64,
build_id: __u64,
inherit_thread: __u64,
remove_on_exec: __u64,
sigtrap: __u64,
__reserved_1: __u64,
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
@ -1495,31 +1439,7 @@ impl perf_event_attr {
let aux_output: u64 = unsafe { ::std::mem::transmute(aux_output) };
aux_output as u64
});
__bindgen_bitfield_unit.set(32usize, 1u8, {
let cgroup: u64 = unsafe { ::std::mem::transmute(cgroup) };
cgroup as u64
});
__bindgen_bitfield_unit.set(33usize, 1u8, {
let text_poke: u64 = unsafe { ::std::mem::transmute(text_poke) };
text_poke as u64
});
__bindgen_bitfield_unit.set(34usize, 1u8, {
let build_id: u64 = unsafe { ::std::mem::transmute(build_id) };
build_id as u64
});
__bindgen_bitfield_unit.set(35usize, 1u8, {
let inherit_thread: u64 = unsafe { ::std::mem::transmute(inherit_thread) };
inherit_thread as u64
});
__bindgen_bitfield_unit.set(36usize, 1u8, {
let remove_on_exec: u64 = unsafe { ::std::mem::transmute(remove_on_exec) };
remove_on_exec as u64
});
__bindgen_bitfield_unit.set(37usize, 1u8, {
let sigtrap: u64 = unsafe { ::std::mem::transmute(sigtrap) };
sigtrap as u64
});
__bindgen_bitfield_unit.set(38usize, 26u8, {
__bindgen_bitfield_unit.set(32usize, 32u8, {
let __reserved_1: u64 = unsafe { ::std::mem::transmute(__reserved_1) };
__reserved_1 as u64
});
@ -1543,10 +1463,7 @@ pub struct perf_event_mmap_page {
pub time_offset: __u64,
pub time_zero: __u64,
pub size: __u32,
pub __reserved_1: __u32,
pub time_cycles: __u64,
pub time_mask: __u64,
pub __reserved: [__u8; 928usize],
pub __reserved: [__u8; 948usize],
pub data_head: __u64,
pub data_tail: __u64,
pub data_offset: __u64,
@ -1626,25 +1543,14 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
}
}
#[inline]
pub fn cap_user_time_short(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u64) }
}
#[inline]
pub fn set_cap_user_time_short(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(5usize, 1u8, val as u64)
}
}
#[inline]
pub fn cap_____res(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 58u8) as u64) }
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 59u8) as u64) }
}
#[inline]
pub fn set_cap_____res(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(6usize, 58u8, val as u64)
self._bitfield_1.set(5usize, 59u8, val as u64)
}
}
#[inline]
@ -1654,7 +1560,6 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
cap_user_rdpmc: __u64,
cap_user_time: __u64,
cap_user_time_zero: __u64,
cap_user_time_short: __u64,
cap_____res: __u64,
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
@ -1679,11 +1584,7 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
let cap_user_time_zero: u64 = unsafe { ::std::mem::transmute(cap_user_time_zero) };
cap_user_time_zero as u64
});
__bindgen_bitfield_unit.set(5usize, 1u8, {
let cap_user_time_short: u64 = unsafe { ::std::mem::transmute(cap_user_time_short) };
cap_user_time_short as u64
});
__bindgen_bitfield_unit.set(6usize, 58u8, {
__bindgen_bitfield_unit.set(5usize, 59u8, {
let cap_____res: u64 = unsafe { ::std::mem::transmute(cap_____res) };
cap_____res as u64
});
@ -1718,23 +1619,21 @@ pub enum perf_event_type {
PERF_RECORD_NAMESPACES = 16,
PERF_RECORD_KSYMBOL = 17,
PERF_RECORD_BPF_EVENT = 18,
PERF_RECORD_CGROUP = 19,
PERF_RECORD_TEXT_POKE = 20,
PERF_RECORD_MAX = 21,
}
pub const IFLA_XDP_UNSPEC: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_UNSPEC;
pub const IFLA_XDP_FD: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_FD;
pub const IFLA_XDP_ATTACHED: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_ATTACHED;
pub const IFLA_XDP_FLAGS: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_FLAGS;
pub const IFLA_XDP_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_PROG_ID;
pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_DRV_PROG_ID;
pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_SKB_PROG_ID;
pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_HW_PROG_ID;
pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_EXPECTED_FD;
pub const __IFLA_XDP_MAX: _bindgen_ty_80 = _bindgen_ty_80::__IFLA_XDP_MAX;
PERF_RECORD_MAX = 19,
}
pub const IFLA_XDP_UNSPEC: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_UNSPEC;
pub const IFLA_XDP_FD: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_FD;
pub const IFLA_XDP_ATTACHED: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_ATTACHED;
pub const IFLA_XDP_FLAGS: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_FLAGS;
pub const IFLA_XDP_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_PROG_ID;
pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_DRV_PROG_ID;
pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_SKB_PROG_ID;
pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_HW_PROG_ID;
pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_EXPECTED_FD;
pub const __IFLA_XDP_MAX: _bindgen_ty_81 = _bindgen_ty_81::__IFLA_XDP_MAX;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_80 {
pub enum _bindgen_ty_81 {
IFLA_XDP_UNSPEC = 0,
IFLA_XDP_FD = 1,
IFLA_XDP_ATTACHED = 2,
@ -1767,25 +1666,25 @@ pub struct tcmsg {
pub tcm_parent: __u32,
pub tcm_info: __u32,
}
pub const TCA_UNSPEC: _bindgen_ty_92 = _bindgen_ty_92::TCA_UNSPEC;
pub const TCA_KIND: _bindgen_ty_92 = _bindgen_ty_92::TCA_KIND;
pub const TCA_OPTIONS: _bindgen_ty_92 = _bindgen_ty_92::TCA_OPTIONS;
pub const TCA_STATS: _bindgen_ty_92 = _bindgen_ty_92::TCA_STATS;
pub const TCA_XSTATS: _bindgen_ty_92 = _bindgen_ty_92::TCA_XSTATS;
pub const TCA_RATE: _bindgen_ty_92 = _bindgen_ty_92::TCA_RATE;
pub const TCA_FCNT: _bindgen_ty_92 = _bindgen_ty_92::TCA_FCNT;
pub const TCA_STATS2: _bindgen_ty_92 = _bindgen_ty_92::TCA_STATS2;
pub const TCA_STAB: _bindgen_ty_92 = _bindgen_ty_92::TCA_STAB;
pub const TCA_PAD: _bindgen_ty_92 = _bindgen_ty_92::TCA_PAD;
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_92 = _bindgen_ty_92::TCA_DUMP_INVISIBLE;
pub const TCA_CHAIN: _bindgen_ty_92 = _bindgen_ty_92::TCA_CHAIN;
pub const TCA_HW_OFFLOAD: _bindgen_ty_92 = _bindgen_ty_92::TCA_HW_OFFLOAD;
pub const TCA_INGRESS_BLOCK: _bindgen_ty_92 = _bindgen_ty_92::TCA_INGRESS_BLOCK;
pub const TCA_EGRESS_BLOCK: _bindgen_ty_92 = _bindgen_ty_92::TCA_EGRESS_BLOCK;
pub const __TCA_MAX: _bindgen_ty_92 = _bindgen_ty_92::__TCA_MAX;
pub const TCA_UNSPEC: _bindgen_ty_93 = _bindgen_ty_93::TCA_UNSPEC;
pub const TCA_KIND: _bindgen_ty_93 = _bindgen_ty_93::TCA_KIND;
pub const TCA_OPTIONS: _bindgen_ty_93 = _bindgen_ty_93::TCA_OPTIONS;
pub const TCA_STATS: _bindgen_ty_93 = _bindgen_ty_93::TCA_STATS;
pub const TCA_XSTATS: _bindgen_ty_93 = _bindgen_ty_93::TCA_XSTATS;
pub const TCA_RATE: _bindgen_ty_93 = _bindgen_ty_93::TCA_RATE;
pub const TCA_FCNT: _bindgen_ty_93 = _bindgen_ty_93::TCA_FCNT;
pub const TCA_STATS2: _bindgen_ty_93 = _bindgen_ty_93::TCA_STATS2;
pub const TCA_STAB: _bindgen_ty_93 = _bindgen_ty_93::TCA_STAB;
pub const TCA_PAD: _bindgen_ty_93 = _bindgen_ty_93::TCA_PAD;
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_93 = _bindgen_ty_93::TCA_DUMP_INVISIBLE;
pub const TCA_CHAIN: _bindgen_ty_93 = _bindgen_ty_93::TCA_CHAIN;
pub const TCA_HW_OFFLOAD: _bindgen_ty_93 = _bindgen_ty_93::TCA_HW_OFFLOAD;
pub const TCA_INGRESS_BLOCK: _bindgen_ty_93 = _bindgen_ty_93::TCA_INGRESS_BLOCK;
pub const TCA_EGRESS_BLOCK: _bindgen_ty_93 = _bindgen_ty_93::TCA_EGRESS_BLOCK;
pub const __TCA_MAX: _bindgen_ty_93 = _bindgen_ty_93::__TCA_MAX;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_92 {
pub enum _bindgen_ty_93 {
TCA_UNSPEC = 0,
TCA_KIND = 1,
TCA_OPTIONS = 2,
@ -1803,22 +1702,22 @@ pub enum _bindgen_ty_92 {
TCA_EGRESS_BLOCK = 14,
__TCA_MAX = 15,
}
pub const TCA_BPF_UNSPEC: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_UNSPEC;
pub const TCA_BPF_ACT: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_ACT;
pub const TCA_BPF_POLICE: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_POLICE;
pub const TCA_BPF_CLASSID: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_CLASSID;
pub const TCA_BPF_OPS_LEN: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_OPS_LEN;
pub const TCA_BPF_OPS: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_OPS;
pub const TCA_BPF_FD: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_FD;
pub const TCA_BPF_NAME: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_NAME;
pub const TCA_BPF_FLAGS: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_FLAGS;
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_FLAGS_GEN;
pub const TCA_BPF_TAG: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_TAG;
pub const TCA_BPF_ID: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_ID;
pub const __TCA_BPF_MAX: _bindgen_ty_148 = _bindgen_ty_148::__TCA_BPF_MAX;
pub const TCA_BPF_UNSPEC: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_UNSPEC;
pub const TCA_BPF_ACT: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_ACT;
pub const TCA_BPF_POLICE: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_POLICE;
pub const TCA_BPF_CLASSID: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_CLASSID;
pub const TCA_BPF_OPS_LEN: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_OPS_LEN;
pub const TCA_BPF_OPS: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_OPS;
pub const TCA_BPF_FD: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_FD;
pub const TCA_BPF_NAME: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_NAME;
pub const TCA_BPF_FLAGS: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_FLAGS;
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_FLAGS_GEN;
pub const TCA_BPF_TAG: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_TAG;
pub const TCA_BPF_ID: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_ID;
pub const __TCA_BPF_MAX: _bindgen_ty_149 = _bindgen_ty_149::__TCA_BPF_MAX;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_148 {
pub enum _bindgen_ty_149 {
TCA_BPF_UNSPEC = 0,
TCA_BPF_ACT = 1,
TCA_BPF_POLICE = 2,

@ -101,24 +101,6 @@ pub const BPF_PSEUDO_BTF_ID: u32 = 3;
pub const BPF_PSEUDO_FUNC: u32 = 4;
pub const BPF_PSEUDO_CALL: u32 = 1;
pub const BPF_PSEUDO_KFUNC_CALL: u32 = 2;
pub const BTF_KIND_UNKN: u32 = 0;
pub const BTF_KIND_INT: u32 = 1;
pub const BTF_KIND_PTR: u32 = 2;
pub const BTF_KIND_ARRAY: u32 = 3;
pub const BTF_KIND_STRUCT: u32 = 4;
pub const BTF_KIND_UNION: u32 = 5;
pub const BTF_KIND_ENUM: u32 = 6;
pub const BTF_KIND_FWD: u32 = 7;
pub const BTF_KIND_TYPEDEF: u32 = 8;
pub const BTF_KIND_VOLATILE: u32 = 9;
pub const BTF_KIND_CONST: u32 = 10;
pub const BTF_KIND_RESTRICT: u32 = 11;
pub const BTF_KIND_FUNC: u32 = 12;
pub const BTF_KIND_FUNC_PROTO: u32 = 13;
pub const BTF_KIND_VAR: u32 = 14;
pub const BTF_KIND_DATASEC: u32 = 15;
pub const BTF_KIND_FLOAT: u32 = 16;
pub const BTF_KIND_MAX: u32 = 16;
pub const BTF_INT_SIGNED: u32 = 1;
pub const BTF_INT_CHAR: u32 = 2;
pub const BTF_INT_BOOL: u32 = 4;
@ -714,6 +696,49 @@ pub union btf_type__bindgen_ty_1 {
pub size: __u32,
pub type_: __u32,
}
pub const BTF_KIND_UNKN: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_UNKN;
pub const BTF_KIND_INT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_INT;
pub const BTF_KIND_PTR: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_PTR;
pub const BTF_KIND_ARRAY: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_ARRAY;
pub const BTF_KIND_STRUCT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_STRUCT;
pub const BTF_KIND_UNION: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_UNION;
pub const BTF_KIND_ENUM: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_ENUM;
pub const BTF_KIND_FWD: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FWD;
pub const BTF_KIND_TYPEDEF: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_TYPEDEF;
pub const BTF_KIND_VOLATILE: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_VOLATILE;
pub const BTF_KIND_CONST: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_CONST;
pub const BTF_KIND_RESTRICT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_RESTRICT;
pub const BTF_KIND_FUNC: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FUNC;
pub const BTF_KIND_FUNC_PROTO: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FUNC_PROTO;
pub const BTF_KIND_VAR: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_VAR;
pub const BTF_KIND_DATASEC: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_DATASEC;
pub const BTF_KIND_FLOAT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FLOAT;
pub const BTF_KIND_TAG: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_TAG;
pub const NR_BTF_KINDS: _bindgen_ty_37 = _bindgen_ty_37::NR_BTF_KINDS;
pub const BTF_KIND_MAX: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_TAG;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_37 {
BTF_KIND_UNKN = 0,
BTF_KIND_INT = 1,
BTF_KIND_PTR = 2,
BTF_KIND_ARRAY = 3,
BTF_KIND_STRUCT = 4,
BTF_KIND_UNION = 5,
BTF_KIND_ENUM = 6,
BTF_KIND_FWD = 7,
BTF_KIND_TYPEDEF = 8,
BTF_KIND_VOLATILE = 9,
BTF_KIND_CONST = 10,
BTF_KIND_RESTRICT = 11,
BTF_KIND_FUNC = 12,
BTF_KIND_FUNC_PROTO = 13,
BTF_KIND_VAR = 14,
BTF_KIND_DATASEC = 15,
BTF_KIND_FLOAT = 16,
BTF_KIND_TAG = 17,
NR_BTF_KINDS = 18,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct btf_enum {
@ -819,8 +844,7 @@ pub enum perf_sw_ids {
PERF_COUNT_SW_EMULATION_FAULTS = 8,
PERF_COUNT_SW_DUMMY = 9,
PERF_COUNT_SW_BPF_OUTPUT = 10,
PERF_COUNT_SW_CGROUP_SWITCHES = 11,
PERF_COUNT_SW_MAX = 12,
PERF_COUNT_SW_MAX = 11,
}
#[repr(u64)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@ -845,12 +869,7 @@ pub enum perf_event_sample_format {
PERF_SAMPLE_TRANSACTION = 131072,
PERF_SAMPLE_REGS_INTR = 262144,
PERF_SAMPLE_PHYS_ADDR = 524288,
PERF_SAMPLE_AUX = 1048576,
PERF_SAMPLE_CGROUP = 2097152,
PERF_SAMPLE_DATA_PAGE_SIZE = 4194304,
PERF_SAMPLE_CODE_PAGE_SIZE = 8388608,
PERF_SAMPLE_WEIGHT_STRUCT = 16777216,
PERF_SAMPLE_MAX = 33554432,
PERF_SAMPLE_MAX = 1048576,
__PERF_SAMPLE_CALLCHAIN_EARLY = 9223372036854775808,
}
#[repr(C)]
@ -876,9 +895,6 @@ pub struct perf_event_attr {
pub aux_watermark: __u32,
pub sample_max_stack: __u16,
pub __reserved_2: __u16,
pub aux_sample_size: __u32,
pub __reserved_3: __u32,
pub sig_data: __u64,
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -1251,80 +1267,14 @@ impl perf_event_attr {
}
}
#[inline]
pub fn cgroup(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u64) }
}
#[inline]
pub fn set_cgroup(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(32usize, 1u8, val as u64)
}
}
#[inline]
pub fn text_poke(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u64) }
}
#[inline]
pub fn set_text_poke(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(33usize, 1u8, val as u64)
}
}
#[inline]
pub fn build_id(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u64) }
}
#[inline]
pub fn set_build_id(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(34usize, 1u8, val as u64)
}
}
#[inline]
pub fn inherit_thread(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u64) }
}
#[inline]
pub fn set_inherit_thread(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(35usize, 1u8, val as u64)
}
}
#[inline]
pub fn remove_on_exec(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u64) }
}
#[inline]
pub fn set_remove_on_exec(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(36usize, 1u8, val as u64)
}
}
#[inline]
pub fn sigtrap(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u64) }
}
#[inline]
pub fn set_sigtrap(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(37usize, 1u8, val as u64)
}
}
#[inline]
pub fn __reserved_1(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 26u8) as u64) }
unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 32u8) as u64) }
}
#[inline]
pub fn set___reserved_1(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(38usize, 26u8, val as u64)
self._bitfield_1.set(32usize, 32u8, val as u64)
}
}
#[inline]
@ -1360,12 +1310,6 @@ impl perf_event_attr {
ksymbol: __u64,
bpf_event: __u64,
aux_output: __u64,
cgroup: __u64,
text_poke: __u64,
build_id: __u64,
inherit_thread: __u64,
remove_on_exec: __u64,
sigtrap: __u64,
__reserved_1: __u64,
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
@ -1495,31 +1439,7 @@ impl perf_event_attr {
let aux_output: u64 = unsafe { ::std::mem::transmute(aux_output) };
aux_output as u64
});
__bindgen_bitfield_unit.set(32usize, 1u8, {
let cgroup: u64 = unsafe { ::std::mem::transmute(cgroup) };
cgroup as u64
});
__bindgen_bitfield_unit.set(33usize, 1u8, {
let text_poke: u64 = unsafe { ::std::mem::transmute(text_poke) };
text_poke as u64
});
__bindgen_bitfield_unit.set(34usize, 1u8, {
let build_id: u64 = unsafe { ::std::mem::transmute(build_id) };
build_id as u64
});
__bindgen_bitfield_unit.set(35usize, 1u8, {
let inherit_thread: u64 = unsafe { ::std::mem::transmute(inherit_thread) };
inherit_thread as u64
});
__bindgen_bitfield_unit.set(36usize, 1u8, {
let remove_on_exec: u64 = unsafe { ::std::mem::transmute(remove_on_exec) };
remove_on_exec as u64
});
__bindgen_bitfield_unit.set(37usize, 1u8, {
let sigtrap: u64 = unsafe { ::std::mem::transmute(sigtrap) };
sigtrap as u64
});
__bindgen_bitfield_unit.set(38usize, 26u8, {
__bindgen_bitfield_unit.set(32usize, 32u8, {
let __reserved_1: u64 = unsafe { ::std::mem::transmute(__reserved_1) };
__reserved_1 as u64
});
@ -1543,10 +1463,7 @@ pub struct perf_event_mmap_page {
pub time_offset: __u64,
pub time_zero: __u64,
pub size: __u32,
pub __reserved_1: __u32,
pub time_cycles: __u64,
pub time_mask: __u64,
pub __reserved: [__u8; 928usize],
pub __reserved: [__u8; 948usize],
pub data_head: __u64,
pub data_tail: __u64,
pub data_offset: __u64,
@ -1626,25 +1543,14 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
}
}
#[inline]
pub fn cap_user_time_short(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u64) }
}
#[inline]
pub fn set_cap_user_time_short(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(5usize, 1u8, val as u64)
}
}
#[inline]
pub fn cap_____res(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 58u8) as u64) }
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 59u8) as u64) }
}
#[inline]
pub fn set_cap_____res(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(6usize, 58u8, val as u64)
self._bitfield_1.set(5usize, 59u8, val as u64)
}
}
#[inline]
@ -1654,7 +1560,6 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
cap_user_rdpmc: __u64,
cap_user_time: __u64,
cap_user_time_zero: __u64,
cap_user_time_short: __u64,
cap_____res: __u64,
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
@ -1679,11 +1584,7 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
let cap_user_time_zero: u64 = unsafe { ::std::mem::transmute(cap_user_time_zero) };
cap_user_time_zero as u64
});
__bindgen_bitfield_unit.set(5usize, 1u8, {
let cap_user_time_short: u64 = unsafe { ::std::mem::transmute(cap_user_time_short) };
cap_user_time_short as u64
});
__bindgen_bitfield_unit.set(6usize, 58u8, {
__bindgen_bitfield_unit.set(5usize, 59u8, {
let cap_____res: u64 = unsafe { ::std::mem::transmute(cap_____res) };
cap_____res as u64
});
@ -1718,23 +1619,21 @@ pub enum perf_event_type {
PERF_RECORD_NAMESPACES = 16,
PERF_RECORD_KSYMBOL = 17,
PERF_RECORD_BPF_EVENT = 18,
PERF_RECORD_CGROUP = 19,
PERF_RECORD_TEXT_POKE = 20,
PERF_RECORD_MAX = 21,
}
pub const IFLA_XDP_UNSPEC: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_UNSPEC;
pub const IFLA_XDP_FD: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_FD;
pub const IFLA_XDP_ATTACHED: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_ATTACHED;
pub const IFLA_XDP_FLAGS: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_FLAGS;
pub const IFLA_XDP_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_PROG_ID;
pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_DRV_PROG_ID;
pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_SKB_PROG_ID;
pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_HW_PROG_ID;
pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_EXPECTED_FD;
pub const __IFLA_XDP_MAX: _bindgen_ty_80 = _bindgen_ty_80::__IFLA_XDP_MAX;
PERF_RECORD_MAX = 19,
}
pub const IFLA_XDP_UNSPEC: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_UNSPEC;
pub const IFLA_XDP_FD: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_FD;
pub const IFLA_XDP_ATTACHED: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_ATTACHED;
pub const IFLA_XDP_FLAGS: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_FLAGS;
pub const IFLA_XDP_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_PROG_ID;
pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_DRV_PROG_ID;
pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_SKB_PROG_ID;
pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_HW_PROG_ID;
pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_EXPECTED_FD;
pub const __IFLA_XDP_MAX: _bindgen_ty_81 = _bindgen_ty_81::__IFLA_XDP_MAX;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_80 {
pub enum _bindgen_ty_81 {
IFLA_XDP_UNSPEC = 0,
IFLA_XDP_FD = 1,
IFLA_XDP_ATTACHED = 2,
@ -1767,25 +1666,25 @@ pub struct tcmsg {
pub tcm_parent: __u32,
pub tcm_info: __u32,
}
pub const TCA_UNSPEC: _bindgen_ty_92 = _bindgen_ty_92::TCA_UNSPEC;
pub const TCA_KIND: _bindgen_ty_92 = _bindgen_ty_92::TCA_KIND;
pub const TCA_OPTIONS: _bindgen_ty_92 = _bindgen_ty_92::TCA_OPTIONS;
pub const TCA_STATS: _bindgen_ty_92 = _bindgen_ty_92::TCA_STATS;
pub const TCA_XSTATS: _bindgen_ty_92 = _bindgen_ty_92::TCA_XSTATS;
pub const TCA_RATE: _bindgen_ty_92 = _bindgen_ty_92::TCA_RATE;
pub const TCA_FCNT: _bindgen_ty_92 = _bindgen_ty_92::TCA_FCNT;
pub const TCA_STATS2: _bindgen_ty_92 = _bindgen_ty_92::TCA_STATS2;
pub const TCA_STAB: _bindgen_ty_92 = _bindgen_ty_92::TCA_STAB;
pub const TCA_PAD: _bindgen_ty_92 = _bindgen_ty_92::TCA_PAD;
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_92 = _bindgen_ty_92::TCA_DUMP_INVISIBLE;
pub const TCA_CHAIN: _bindgen_ty_92 = _bindgen_ty_92::TCA_CHAIN;
pub const TCA_HW_OFFLOAD: _bindgen_ty_92 = _bindgen_ty_92::TCA_HW_OFFLOAD;
pub const TCA_INGRESS_BLOCK: _bindgen_ty_92 = _bindgen_ty_92::TCA_INGRESS_BLOCK;
pub const TCA_EGRESS_BLOCK: _bindgen_ty_92 = _bindgen_ty_92::TCA_EGRESS_BLOCK;
pub const __TCA_MAX: _bindgen_ty_92 = _bindgen_ty_92::__TCA_MAX;
pub const TCA_UNSPEC: _bindgen_ty_93 = _bindgen_ty_93::TCA_UNSPEC;
pub const TCA_KIND: _bindgen_ty_93 = _bindgen_ty_93::TCA_KIND;
pub const TCA_OPTIONS: _bindgen_ty_93 = _bindgen_ty_93::TCA_OPTIONS;
pub const TCA_STATS: _bindgen_ty_93 = _bindgen_ty_93::TCA_STATS;
pub const TCA_XSTATS: _bindgen_ty_93 = _bindgen_ty_93::TCA_XSTATS;
pub const TCA_RATE: _bindgen_ty_93 = _bindgen_ty_93::TCA_RATE;
pub const TCA_FCNT: _bindgen_ty_93 = _bindgen_ty_93::TCA_FCNT;
pub const TCA_STATS2: _bindgen_ty_93 = _bindgen_ty_93::TCA_STATS2;
pub const TCA_STAB: _bindgen_ty_93 = _bindgen_ty_93::TCA_STAB;
pub const TCA_PAD: _bindgen_ty_93 = _bindgen_ty_93::TCA_PAD;
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_93 = _bindgen_ty_93::TCA_DUMP_INVISIBLE;
pub const TCA_CHAIN: _bindgen_ty_93 = _bindgen_ty_93::TCA_CHAIN;
pub const TCA_HW_OFFLOAD: _bindgen_ty_93 = _bindgen_ty_93::TCA_HW_OFFLOAD;
pub const TCA_INGRESS_BLOCK: _bindgen_ty_93 = _bindgen_ty_93::TCA_INGRESS_BLOCK;
pub const TCA_EGRESS_BLOCK: _bindgen_ty_93 = _bindgen_ty_93::TCA_EGRESS_BLOCK;
pub const __TCA_MAX: _bindgen_ty_93 = _bindgen_ty_93::__TCA_MAX;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_92 {
pub enum _bindgen_ty_93 {
TCA_UNSPEC = 0,
TCA_KIND = 1,
TCA_OPTIONS = 2,
@ -1803,22 +1702,22 @@ pub enum _bindgen_ty_92 {
TCA_EGRESS_BLOCK = 14,
__TCA_MAX = 15,
}
pub const TCA_BPF_UNSPEC: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_UNSPEC;
pub const TCA_BPF_ACT: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_ACT;
pub const TCA_BPF_POLICE: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_POLICE;
pub const TCA_BPF_CLASSID: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_CLASSID;
pub const TCA_BPF_OPS_LEN: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_OPS_LEN;
pub const TCA_BPF_OPS: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_OPS;
pub const TCA_BPF_FD: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_FD;
pub const TCA_BPF_NAME: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_NAME;
pub const TCA_BPF_FLAGS: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_FLAGS;
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_FLAGS_GEN;
pub const TCA_BPF_TAG: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_TAG;
pub const TCA_BPF_ID: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_ID;
pub const __TCA_BPF_MAX: _bindgen_ty_148 = _bindgen_ty_148::__TCA_BPF_MAX;
pub const TCA_BPF_UNSPEC: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_UNSPEC;
pub const TCA_BPF_ACT: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_ACT;
pub const TCA_BPF_POLICE: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_POLICE;
pub const TCA_BPF_CLASSID: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_CLASSID;
pub const TCA_BPF_OPS_LEN: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_OPS_LEN;
pub const TCA_BPF_OPS: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_OPS;
pub const TCA_BPF_FD: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_FD;
pub const TCA_BPF_NAME: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_NAME;
pub const TCA_BPF_FLAGS: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_FLAGS;
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_FLAGS_GEN;
pub const TCA_BPF_TAG: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_TAG;
pub const TCA_BPF_ID: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_ID;
pub const __TCA_BPF_MAX: _bindgen_ty_149 = _bindgen_ty_149::__TCA_BPF_MAX;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_148 {
pub enum _bindgen_ty_149 {
TCA_BPF_UNSPEC = 0,
TCA_BPF_ACT = 1,
TCA_BPF_POLICE = 2,

@ -101,24 +101,6 @@ pub const BPF_PSEUDO_BTF_ID: u32 = 3;
pub const BPF_PSEUDO_FUNC: u32 = 4;
pub const BPF_PSEUDO_CALL: u32 = 1;
pub const BPF_PSEUDO_KFUNC_CALL: u32 = 2;
pub const BTF_KIND_UNKN: u32 = 0;
pub const BTF_KIND_INT: u32 = 1;
pub const BTF_KIND_PTR: u32 = 2;
pub const BTF_KIND_ARRAY: u32 = 3;
pub const BTF_KIND_STRUCT: u32 = 4;
pub const BTF_KIND_UNION: u32 = 5;
pub const BTF_KIND_ENUM: u32 = 6;
pub const BTF_KIND_FWD: u32 = 7;
pub const BTF_KIND_TYPEDEF: u32 = 8;
pub const BTF_KIND_VOLATILE: u32 = 9;
pub const BTF_KIND_CONST: u32 = 10;
pub const BTF_KIND_RESTRICT: u32 = 11;
pub const BTF_KIND_FUNC: u32 = 12;
pub const BTF_KIND_FUNC_PROTO: u32 = 13;
pub const BTF_KIND_VAR: u32 = 14;
pub const BTF_KIND_DATASEC: u32 = 15;
pub const BTF_KIND_FLOAT: u32 = 16;
pub const BTF_KIND_MAX: u32 = 16;
pub const BTF_INT_SIGNED: u32 = 1;
pub const BTF_INT_CHAR: u32 = 2;
pub const BTF_INT_BOOL: u32 = 4;
@ -714,6 +696,49 @@ pub union btf_type__bindgen_ty_1 {
pub size: __u32,
pub type_: __u32,
}
pub const BTF_KIND_UNKN: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_UNKN;
pub const BTF_KIND_INT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_INT;
pub const BTF_KIND_PTR: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_PTR;
pub const BTF_KIND_ARRAY: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_ARRAY;
pub const BTF_KIND_STRUCT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_STRUCT;
pub const BTF_KIND_UNION: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_UNION;
pub const BTF_KIND_ENUM: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_ENUM;
pub const BTF_KIND_FWD: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FWD;
pub const BTF_KIND_TYPEDEF: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_TYPEDEF;
pub const BTF_KIND_VOLATILE: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_VOLATILE;
pub const BTF_KIND_CONST: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_CONST;
pub const BTF_KIND_RESTRICT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_RESTRICT;
pub const BTF_KIND_FUNC: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FUNC;
pub const BTF_KIND_FUNC_PROTO: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FUNC_PROTO;
pub const BTF_KIND_VAR: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_VAR;
pub const BTF_KIND_DATASEC: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_DATASEC;
pub const BTF_KIND_FLOAT: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_FLOAT;
pub const BTF_KIND_TAG: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_TAG;
pub const NR_BTF_KINDS: _bindgen_ty_37 = _bindgen_ty_37::NR_BTF_KINDS;
pub const BTF_KIND_MAX: _bindgen_ty_37 = _bindgen_ty_37::BTF_KIND_TAG;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_37 {
BTF_KIND_UNKN = 0,
BTF_KIND_INT = 1,
BTF_KIND_PTR = 2,
BTF_KIND_ARRAY = 3,
BTF_KIND_STRUCT = 4,
BTF_KIND_UNION = 5,
BTF_KIND_ENUM = 6,
BTF_KIND_FWD = 7,
BTF_KIND_TYPEDEF = 8,
BTF_KIND_VOLATILE = 9,
BTF_KIND_CONST = 10,
BTF_KIND_RESTRICT = 11,
BTF_KIND_FUNC = 12,
BTF_KIND_FUNC_PROTO = 13,
BTF_KIND_VAR = 14,
BTF_KIND_DATASEC = 15,
BTF_KIND_FLOAT = 16,
BTF_KIND_TAG = 17,
NR_BTF_KINDS = 18,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct btf_enum {
@ -819,8 +844,7 @@ pub enum perf_sw_ids {
PERF_COUNT_SW_EMULATION_FAULTS = 8,
PERF_COUNT_SW_DUMMY = 9,
PERF_COUNT_SW_BPF_OUTPUT = 10,
PERF_COUNT_SW_CGROUP_SWITCHES = 11,
PERF_COUNT_SW_MAX = 12,
PERF_COUNT_SW_MAX = 11,
}
#[repr(u64)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@ -845,12 +869,7 @@ pub enum perf_event_sample_format {
PERF_SAMPLE_TRANSACTION = 131072,
PERF_SAMPLE_REGS_INTR = 262144,
PERF_SAMPLE_PHYS_ADDR = 524288,
PERF_SAMPLE_AUX = 1048576,
PERF_SAMPLE_CGROUP = 2097152,
PERF_SAMPLE_DATA_PAGE_SIZE = 4194304,
PERF_SAMPLE_CODE_PAGE_SIZE = 8388608,
PERF_SAMPLE_WEIGHT_STRUCT = 16777216,
PERF_SAMPLE_MAX = 33554432,
PERF_SAMPLE_MAX = 1048576,
__PERF_SAMPLE_CALLCHAIN_EARLY = 9223372036854775808,
}
#[repr(C)]
@ -876,9 +895,6 @@ pub struct perf_event_attr {
pub aux_watermark: __u32,
pub sample_max_stack: __u16,
pub __reserved_2: __u16,
pub aux_sample_size: __u32,
pub __reserved_3: __u32,
pub sig_data: __u64,
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -1251,80 +1267,14 @@ impl perf_event_attr {
}
}
#[inline]
pub fn cgroup(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u64) }
}
#[inline]
pub fn set_cgroup(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(32usize, 1u8, val as u64)
}
}
#[inline]
pub fn text_poke(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u64) }
}
#[inline]
pub fn set_text_poke(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(33usize, 1u8, val as u64)
}
}
#[inline]
pub fn build_id(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u64) }
}
#[inline]
pub fn set_build_id(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(34usize, 1u8, val as u64)
}
}
#[inline]
pub fn inherit_thread(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u64) }
}
#[inline]
pub fn set_inherit_thread(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(35usize, 1u8, val as u64)
}
}
#[inline]
pub fn remove_on_exec(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u64) }
}
#[inline]
pub fn set_remove_on_exec(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(36usize, 1u8, val as u64)
}
}
#[inline]
pub fn sigtrap(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u64) }
}
#[inline]
pub fn set_sigtrap(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(37usize, 1u8, val as u64)
}
}
#[inline]
pub fn __reserved_1(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 26u8) as u64) }
unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 32u8) as u64) }
}
#[inline]
pub fn set___reserved_1(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(38usize, 26u8, val as u64)
self._bitfield_1.set(32usize, 32u8, val as u64)
}
}
#[inline]
@ -1360,12 +1310,6 @@ impl perf_event_attr {
ksymbol: __u64,
bpf_event: __u64,
aux_output: __u64,
cgroup: __u64,
text_poke: __u64,
build_id: __u64,
inherit_thread: __u64,
remove_on_exec: __u64,
sigtrap: __u64,
__reserved_1: __u64,
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
@ -1495,31 +1439,7 @@ impl perf_event_attr {
let aux_output: u64 = unsafe { ::std::mem::transmute(aux_output) };
aux_output as u64
});
__bindgen_bitfield_unit.set(32usize, 1u8, {
let cgroup: u64 = unsafe { ::std::mem::transmute(cgroup) };
cgroup as u64
});
__bindgen_bitfield_unit.set(33usize, 1u8, {
let text_poke: u64 = unsafe { ::std::mem::transmute(text_poke) };
text_poke as u64
});
__bindgen_bitfield_unit.set(34usize, 1u8, {
let build_id: u64 = unsafe { ::std::mem::transmute(build_id) };
build_id as u64
});
__bindgen_bitfield_unit.set(35usize, 1u8, {
let inherit_thread: u64 = unsafe { ::std::mem::transmute(inherit_thread) };
inherit_thread as u64
});
__bindgen_bitfield_unit.set(36usize, 1u8, {
let remove_on_exec: u64 = unsafe { ::std::mem::transmute(remove_on_exec) };
remove_on_exec as u64
});
__bindgen_bitfield_unit.set(37usize, 1u8, {
let sigtrap: u64 = unsafe { ::std::mem::transmute(sigtrap) };
sigtrap as u64
});
__bindgen_bitfield_unit.set(38usize, 26u8, {
__bindgen_bitfield_unit.set(32usize, 32u8, {
let __reserved_1: u64 = unsafe { ::std::mem::transmute(__reserved_1) };
__reserved_1 as u64
});
@ -1543,10 +1463,7 @@ pub struct perf_event_mmap_page {
pub time_offset: __u64,
pub time_zero: __u64,
pub size: __u32,
pub __reserved_1: __u32,
pub time_cycles: __u64,
pub time_mask: __u64,
pub __reserved: [__u8; 928usize],
pub __reserved: [__u8; 948usize],
pub data_head: __u64,
pub data_tail: __u64,
pub data_offset: __u64,
@ -1626,25 +1543,14 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
}
}
#[inline]
pub fn cap_user_time_short(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u64) }
}
#[inline]
pub fn set_cap_user_time_short(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(5usize, 1u8, val as u64)
}
}
#[inline]
pub fn cap_____res(&self) -> __u64 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 58u8) as u64) }
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 59u8) as u64) }
}
#[inline]
pub fn set_cap_____res(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
self._bitfield_1.set(6usize, 58u8, val as u64)
self._bitfield_1.set(5usize, 59u8, val as u64)
}
}
#[inline]
@ -1654,7 +1560,6 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
cap_user_rdpmc: __u64,
cap_user_time: __u64,
cap_user_time_zero: __u64,
cap_user_time_short: __u64,
cap_____res: __u64,
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
@ -1679,11 +1584,7 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
let cap_user_time_zero: u64 = unsafe { ::std::mem::transmute(cap_user_time_zero) };
cap_user_time_zero as u64
});
__bindgen_bitfield_unit.set(5usize, 1u8, {
let cap_user_time_short: u64 = unsafe { ::std::mem::transmute(cap_user_time_short) };
cap_user_time_short as u64
});
__bindgen_bitfield_unit.set(6usize, 58u8, {
__bindgen_bitfield_unit.set(5usize, 59u8, {
let cap_____res: u64 = unsafe { ::std::mem::transmute(cap_____res) };
cap_____res as u64
});
@ -1718,23 +1619,21 @@ pub enum perf_event_type {
PERF_RECORD_NAMESPACES = 16,
PERF_RECORD_KSYMBOL = 17,
PERF_RECORD_BPF_EVENT = 18,
PERF_RECORD_CGROUP = 19,
PERF_RECORD_TEXT_POKE = 20,
PERF_RECORD_MAX = 21,
}
pub const IFLA_XDP_UNSPEC: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_UNSPEC;
pub const IFLA_XDP_FD: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_FD;
pub const IFLA_XDP_ATTACHED: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_ATTACHED;
pub const IFLA_XDP_FLAGS: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_FLAGS;
pub const IFLA_XDP_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_PROG_ID;
pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_DRV_PROG_ID;
pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_SKB_PROG_ID;
pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_HW_PROG_ID;
pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_80 = _bindgen_ty_80::IFLA_XDP_EXPECTED_FD;
pub const __IFLA_XDP_MAX: _bindgen_ty_80 = _bindgen_ty_80::__IFLA_XDP_MAX;
PERF_RECORD_MAX = 19,
}
pub const IFLA_XDP_UNSPEC: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_UNSPEC;
pub const IFLA_XDP_FD: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_FD;
pub const IFLA_XDP_ATTACHED: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_ATTACHED;
pub const IFLA_XDP_FLAGS: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_FLAGS;
pub const IFLA_XDP_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_PROG_ID;
pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_DRV_PROG_ID;
pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_SKB_PROG_ID;
pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_HW_PROG_ID;
pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_81 = _bindgen_ty_81::IFLA_XDP_EXPECTED_FD;
pub const __IFLA_XDP_MAX: _bindgen_ty_81 = _bindgen_ty_81::__IFLA_XDP_MAX;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_80 {
pub enum _bindgen_ty_81 {
IFLA_XDP_UNSPEC = 0,
IFLA_XDP_FD = 1,
IFLA_XDP_ATTACHED = 2,
@ -1767,25 +1666,25 @@ pub struct tcmsg {
pub tcm_parent: __u32,
pub tcm_info: __u32,
}
pub const TCA_UNSPEC: _bindgen_ty_92 = _bindgen_ty_92::TCA_UNSPEC;
pub const TCA_KIND: _bindgen_ty_92 = _bindgen_ty_92::TCA_KIND;
pub const TCA_OPTIONS: _bindgen_ty_92 = _bindgen_ty_92::TCA_OPTIONS;
pub const TCA_STATS: _bindgen_ty_92 = _bindgen_ty_92::TCA_STATS;
pub const TCA_XSTATS: _bindgen_ty_92 = _bindgen_ty_92::TCA_XSTATS;
pub const TCA_RATE: _bindgen_ty_92 = _bindgen_ty_92::TCA_RATE;
pub const TCA_FCNT: _bindgen_ty_92 = _bindgen_ty_92::TCA_FCNT;
pub const TCA_STATS2: _bindgen_ty_92 = _bindgen_ty_92::TCA_STATS2;
pub const TCA_STAB: _bindgen_ty_92 = _bindgen_ty_92::TCA_STAB;
pub const TCA_PAD: _bindgen_ty_92 = _bindgen_ty_92::TCA_PAD;
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_92 = _bindgen_ty_92::TCA_DUMP_INVISIBLE;
pub const TCA_CHAIN: _bindgen_ty_92 = _bindgen_ty_92::TCA_CHAIN;
pub const TCA_HW_OFFLOAD: _bindgen_ty_92 = _bindgen_ty_92::TCA_HW_OFFLOAD;
pub const TCA_INGRESS_BLOCK: _bindgen_ty_92 = _bindgen_ty_92::TCA_INGRESS_BLOCK;
pub const TCA_EGRESS_BLOCK: _bindgen_ty_92 = _bindgen_ty_92::TCA_EGRESS_BLOCK;
pub const __TCA_MAX: _bindgen_ty_92 = _bindgen_ty_92::__TCA_MAX;
pub const TCA_UNSPEC: _bindgen_ty_93 = _bindgen_ty_93::TCA_UNSPEC;
pub const TCA_KIND: _bindgen_ty_93 = _bindgen_ty_93::TCA_KIND;
pub const TCA_OPTIONS: _bindgen_ty_93 = _bindgen_ty_93::TCA_OPTIONS;
pub const TCA_STATS: _bindgen_ty_93 = _bindgen_ty_93::TCA_STATS;
pub const TCA_XSTATS: _bindgen_ty_93 = _bindgen_ty_93::TCA_XSTATS;
pub const TCA_RATE: _bindgen_ty_93 = _bindgen_ty_93::TCA_RATE;
pub const TCA_FCNT: _bindgen_ty_93 = _bindgen_ty_93::TCA_FCNT;
pub const TCA_STATS2: _bindgen_ty_93 = _bindgen_ty_93::TCA_STATS2;
pub const TCA_STAB: _bindgen_ty_93 = _bindgen_ty_93::TCA_STAB;
pub const TCA_PAD: _bindgen_ty_93 = _bindgen_ty_93::TCA_PAD;
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_93 = _bindgen_ty_93::TCA_DUMP_INVISIBLE;
pub const TCA_CHAIN: _bindgen_ty_93 = _bindgen_ty_93::TCA_CHAIN;
pub const TCA_HW_OFFLOAD: _bindgen_ty_93 = _bindgen_ty_93::TCA_HW_OFFLOAD;
pub const TCA_INGRESS_BLOCK: _bindgen_ty_93 = _bindgen_ty_93::TCA_INGRESS_BLOCK;
pub const TCA_EGRESS_BLOCK: _bindgen_ty_93 = _bindgen_ty_93::TCA_EGRESS_BLOCK;
pub const __TCA_MAX: _bindgen_ty_93 = _bindgen_ty_93::__TCA_MAX;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_92 {
pub enum _bindgen_ty_93 {
TCA_UNSPEC = 0,
TCA_KIND = 1,
TCA_OPTIONS = 2,
@ -1803,22 +1702,22 @@ pub enum _bindgen_ty_92 {
TCA_EGRESS_BLOCK = 14,
__TCA_MAX = 15,
}
pub const TCA_BPF_UNSPEC: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_UNSPEC;
pub const TCA_BPF_ACT: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_ACT;
pub const TCA_BPF_POLICE: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_POLICE;
pub const TCA_BPF_CLASSID: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_CLASSID;
pub const TCA_BPF_OPS_LEN: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_OPS_LEN;
pub const TCA_BPF_OPS: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_OPS;
pub const TCA_BPF_FD: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_FD;
pub const TCA_BPF_NAME: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_NAME;
pub const TCA_BPF_FLAGS: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_FLAGS;
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_FLAGS_GEN;
pub const TCA_BPF_TAG: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_TAG;
pub const TCA_BPF_ID: _bindgen_ty_148 = _bindgen_ty_148::TCA_BPF_ID;
pub const __TCA_BPF_MAX: _bindgen_ty_148 = _bindgen_ty_148::__TCA_BPF_MAX;
pub const TCA_BPF_UNSPEC: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_UNSPEC;
pub const TCA_BPF_ACT: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_ACT;
pub const TCA_BPF_POLICE: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_POLICE;
pub const TCA_BPF_CLASSID: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_CLASSID;
pub const TCA_BPF_OPS_LEN: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_OPS_LEN;
pub const TCA_BPF_OPS: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_OPS;
pub const TCA_BPF_FD: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_FD;
pub const TCA_BPF_NAME: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_NAME;
pub const TCA_BPF_FLAGS: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_FLAGS;
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_FLAGS_GEN;
pub const TCA_BPF_TAG: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_TAG;
pub const TCA_BPF_ID: _bindgen_ty_149 = _bindgen_ty_149::TCA_BPF_ID;
pub const __TCA_BPF_MAX: _bindgen_ty_149 = _bindgen_ty_149::__TCA_BPF_MAX;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_148 {
pub enum _bindgen_ty_149 {
TCA_BPF_UNSPEC = 0,
TCA_BPF_ACT = 1,
TCA_BPF_POLICE = 2,

@ -431,6 +431,9 @@ pub struct __sk_buff {
pub gso_segs: __u32,
pub __bindgen_anon_2: __sk_buff__bindgen_ty_2,
pub gso_size: __u32,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub hwtstamp: __u64,
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -438,7 +441,6 @@ pub union __sk_buff__bindgen_ty_1 {
pub flow_keys: *mut bpf_flow_keys,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl __sk_buff__bindgen_ty_1 {
#[inline]
@ -453,7 +455,6 @@ pub union __sk_buff__bindgen_ty_2 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl __sk_buff__bindgen_ty_2 {
#[inline]
@ -462,6 +463,13 @@ impl __sk_buff__bindgen_ty_2 {
__bindgen_bitfield_unit
}
}
impl __sk_buff {
#[inline]
pub fn new_bitfield_1() -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct bpf_tunnel_key {
@ -477,7 +485,6 @@ pub struct bpf_tunnel_key {
pub union bpf_tunnel_key__bindgen_ty_1 {
pub remote_ipv4: __u32,
pub remote_ipv6: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -493,7 +500,6 @@ pub struct bpf_xfrm_state {
pub union bpf_xfrm_state__bindgen_ty_1 {
pub remote_ipv4: __u32,
pub remote_ipv6: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@ -553,7 +559,6 @@ pub struct bpf_sock_tuple {
pub union bpf_sock_tuple__bindgen_ty_1 {
pub ipv4: bpf_sock_tuple__bindgen_ty_1__bindgen_ty_1,
pub ipv6: bpf_sock_tuple__bindgen_ty_1__bindgen_ty_2,
_bindgen_union_align: [u32; 9usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@ -615,7 +620,6 @@ pub union sk_msg_md__bindgen_ty_1 {
pub data: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_msg_md__bindgen_ty_1 {
#[inline]
@ -630,7 +634,6 @@ pub union sk_msg_md__bindgen_ty_2 {
pub data_end: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_msg_md__bindgen_ty_2 {
#[inline]
@ -645,7 +648,6 @@ pub union sk_msg_md__bindgen_ty_3 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_msg_md__bindgen_ty_3 {
#[inline]
@ -673,7 +675,6 @@ pub union sk_reuseport_md__bindgen_ty_1 {
pub data: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_1 {
#[inline]
@ -688,7 +689,6 @@ pub union sk_reuseport_md__bindgen_ty_2 {
pub data_end: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_2 {
#[inline]
@ -703,7 +703,6 @@ pub union sk_reuseport_md__bindgen_ty_3 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_3 {
#[inline]
@ -718,7 +717,6 @@ pub union sk_reuseport_md__bindgen_ty_4 {
pub migrating_sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_4 {
#[inline]
@ -765,7 +763,6 @@ pub union bpf_sock_addr__bindgen_ty_1 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_addr__bindgen_ty_1 {
#[inline]
@ -824,7 +821,6 @@ pub union bpf_sock_ops__bindgen_ty_1 {
pub args: [__u32; 4usize],
pub reply: __u32,
pub replylong: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -832,7 +828,6 @@ pub union bpf_sock_ops__bindgen_ty_2 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_ops__bindgen_ty_2 {
#[inline]
@ -847,7 +842,6 @@ pub union bpf_sock_ops__bindgen_ty_3 {
pub skb_data: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_ops__bindgen_ty_3 {
#[inline]
@ -862,7 +856,6 @@ pub union bpf_sock_ops__bindgen_ty_4 {
pub skb_data_end: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_ops__bindgen_ty_4 {
#[inline]
@ -969,7 +962,6 @@ pub struct bpf_fib_lookup {
pub union bpf_fib_lookup__bindgen_ty_1 {
pub tot_len: __u16,
pub mtu_result: __u16,
_bindgen_union_align: u16,
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -977,21 +969,18 @@ pub union bpf_fib_lookup__bindgen_ty_2 {
pub tos: __u8,
pub flowinfo: __be32,
pub rt_metric: __u32,
_bindgen_union_align: u32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union bpf_fib_lookup__bindgen_ty_3 {
pub ipv4_src: __be32,
pub ipv6_src: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union bpf_fib_lookup__bindgen_ty_4 {
pub ipv4_dst: __be32,
pub ipv6_dst: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -1004,7 +993,6 @@ pub struct bpf_redir_neigh {
pub union bpf_redir_neigh__bindgen_ty_1 {
pub ipv4_nh: __be32,
pub ipv6_nh: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
pub const BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG: ::aya_bpf_cty::c_uint = 1;
pub const BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL: ::aya_bpf_cty::c_uint = 2;
@ -1032,7 +1020,6 @@ pub struct bpf_flow_keys {
pub union bpf_flow_keys__bindgen_ty_1 {
pub __bindgen_anon_1: bpf_flow_keys__bindgen_ty_1__bindgen_ty_1,
pub __bindgen_anon_2: bpf_flow_keys__bindgen_ty_1__bindgen_ty_2,
_bindgen_union_align: [u32; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]

@ -107,6 +107,9 @@ impl __sk_buff {
pub fn gso_size(&self) -> Option<__u32> {
unsafe { crate::bpf_probe_read(&self.gso_size) }.ok()
}
pub fn hwtstamp(&self) -> Option<__u64> {
unsafe { crate::bpf_probe_read(&self.hwtstamp) }.ok()
}
}
impl __sk_buff__bindgen_ty_1 {
pub fn flow_keys(&self) -> Option<*mut bpf_flow_keys> {

@ -1759,3 +1759,34 @@ pub unsafe fn bpf_get_attach_cookie(ctx: *mut ::aya_bpf_cty::c_void) -> __u64 {
::core::mem::transmute(174usize);
fun(ctx)
}
pub unsafe fn bpf_task_pt_regs(task: *mut task_struct) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(task: *mut task_struct) -> ::aya_bpf_cty::c_long =
::core::mem::transmute(175usize);
fun(task)
}
pub unsafe fn bpf_get_branch_snapshot(
entries: *mut ::aya_bpf_cty::c_void,
size: __u32,
flags: __u64,
) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(
entries: *mut ::aya_bpf_cty::c_void,
size: __u32,
flags: __u64,
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(176usize);
fun(entries, size, flags)
}
pub unsafe fn bpf_trace_vprintk(
fmt: *const ::aya_bpf_cty::c_char,
fmt_size: __u32,
data: *const ::aya_bpf_cty::c_void,
data_len: __u32,
) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(
fmt: *const ::aya_bpf_cty::c_char,
fmt_size: __u32,
data: *const ::aya_bpf_cty::c_void,
data_len: __u32,
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(177usize);
fun(fmt, fmt_size, data, data_len)
}

@ -431,6 +431,9 @@ pub struct __sk_buff {
pub gso_segs: __u32,
pub __bindgen_anon_2: __sk_buff__bindgen_ty_2,
pub gso_size: __u32,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub hwtstamp: __u64,
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -438,7 +441,6 @@ pub union __sk_buff__bindgen_ty_1 {
pub flow_keys: *mut bpf_flow_keys,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl __sk_buff__bindgen_ty_1 {
#[inline]
@ -453,7 +455,6 @@ pub union __sk_buff__bindgen_ty_2 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl __sk_buff__bindgen_ty_2 {
#[inline]
@ -462,6 +463,13 @@ impl __sk_buff__bindgen_ty_2 {
__bindgen_bitfield_unit
}
}
impl __sk_buff {
#[inline]
pub fn new_bitfield_1() -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct bpf_tunnel_key {
@ -477,7 +485,6 @@ pub struct bpf_tunnel_key {
pub union bpf_tunnel_key__bindgen_ty_1 {
pub remote_ipv4: __u32,
pub remote_ipv6: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -493,7 +500,6 @@ pub struct bpf_xfrm_state {
pub union bpf_xfrm_state__bindgen_ty_1 {
pub remote_ipv4: __u32,
pub remote_ipv6: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@ -553,7 +559,6 @@ pub struct bpf_sock_tuple {
pub union bpf_sock_tuple__bindgen_ty_1 {
pub ipv4: bpf_sock_tuple__bindgen_ty_1__bindgen_ty_1,
pub ipv6: bpf_sock_tuple__bindgen_ty_1__bindgen_ty_2,
_bindgen_union_align: [u32; 9usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@ -615,7 +620,6 @@ pub union sk_msg_md__bindgen_ty_1 {
pub data: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_msg_md__bindgen_ty_1 {
#[inline]
@ -630,7 +634,6 @@ pub union sk_msg_md__bindgen_ty_2 {
pub data_end: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_msg_md__bindgen_ty_2 {
#[inline]
@ -645,7 +648,6 @@ pub union sk_msg_md__bindgen_ty_3 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_msg_md__bindgen_ty_3 {
#[inline]
@ -673,7 +675,6 @@ pub union sk_reuseport_md__bindgen_ty_1 {
pub data: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_1 {
#[inline]
@ -688,7 +689,6 @@ pub union sk_reuseport_md__bindgen_ty_2 {
pub data_end: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_2 {
#[inline]
@ -703,7 +703,6 @@ pub union sk_reuseport_md__bindgen_ty_3 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_3 {
#[inline]
@ -718,7 +717,6 @@ pub union sk_reuseport_md__bindgen_ty_4 {
pub migrating_sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_4 {
#[inline]
@ -765,7 +763,6 @@ pub union bpf_sock_addr__bindgen_ty_1 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_addr__bindgen_ty_1 {
#[inline]
@ -824,7 +821,6 @@ pub union bpf_sock_ops__bindgen_ty_1 {
pub args: [__u32; 4usize],
pub reply: __u32,
pub replylong: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -832,7 +828,6 @@ pub union bpf_sock_ops__bindgen_ty_2 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_ops__bindgen_ty_2 {
#[inline]
@ -847,7 +842,6 @@ pub union bpf_sock_ops__bindgen_ty_3 {
pub skb_data: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_ops__bindgen_ty_3 {
#[inline]
@ -862,7 +856,6 @@ pub union bpf_sock_ops__bindgen_ty_4 {
pub skb_data_end: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_ops__bindgen_ty_4 {
#[inline]
@ -969,7 +962,6 @@ pub struct bpf_fib_lookup {
pub union bpf_fib_lookup__bindgen_ty_1 {
pub tot_len: __u16,
pub mtu_result: __u16,
_bindgen_union_align: u16,
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -977,21 +969,18 @@ pub union bpf_fib_lookup__bindgen_ty_2 {
pub tos: __u8,
pub flowinfo: __be32,
pub rt_metric: __u32,
_bindgen_union_align: u32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union bpf_fib_lookup__bindgen_ty_3 {
pub ipv4_src: __be32,
pub ipv6_src: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union bpf_fib_lookup__bindgen_ty_4 {
pub ipv4_dst: __be32,
pub ipv6_dst: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -1004,7 +993,6 @@ pub struct bpf_redir_neigh {
pub union bpf_redir_neigh__bindgen_ty_1 {
pub ipv4_nh: __be32,
pub ipv6_nh: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
pub const BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG: ::aya_bpf_cty::c_uint = 1;
pub const BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL: ::aya_bpf_cty::c_uint = 2;
@ -1032,7 +1020,6 @@ pub struct bpf_flow_keys {
pub union bpf_flow_keys__bindgen_ty_1 {
pub __bindgen_anon_1: bpf_flow_keys__bindgen_ty_1__bindgen_ty_1,
pub __bindgen_anon_2: bpf_flow_keys__bindgen_ty_1__bindgen_ty_2,
_bindgen_union_align: [u32; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]

@ -107,6 +107,9 @@ impl __sk_buff {
pub fn gso_size(&self) -> Option<__u32> {
unsafe { crate::bpf_probe_read(&self.gso_size) }.ok()
}
pub fn hwtstamp(&self) -> Option<__u64> {
unsafe { crate::bpf_probe_read(&self.hwtstamp) }.ok()
}
}
impl __sk_buff__bindgen_ty_1 {
pub fn flow_keys(&self) -> Option<*mut bpf_flow_keys> {

@ -1759,3 +1759,34 @@ pub unsafe fn bpf_get_attach_cookie(ctx: *mut ::aya_bpf_cty::c_void) -> __u64 {
::core::mem::transmute(174usize);
fun(ctx)
}
pub unsafe fn bpf_task_pt_regs(task: *mut task_struct) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(task: *mut task_struct) -> ::aya_bpf_cty::c_long =
::core::mem::transmute(175usize);
fun(task)
}
pub unsafe fn bpf_get_branch_snapshot(
entries: *mut ::aya_bpf_cty::c_void,
size: __u32,
flags: __u64,
) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(
entries: *mut ::aya_bpf_cty::c_void,
size: __u32,
flags: __u64,
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(176usize);
fun(entries, size, flags)
}
pub unsafe fn bpf_trace_vprintk(
fmt: *const ::aya_bpf_cty::c_char,
fmt_size: __u32,
data: *const ::aya_bpf_cty::c_void,
data_len: __u32,
) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(
fmt: *const ::aya_bpf_cty::c_char,
fmt_size: __u32,
data: *const ::aya_bpf_cty::c_void,
data_len: __u32,
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(177usize);
fun(fmt, fmt_size, data, data_len)
}

@ -431,6 +431,9 @@ pub struct __sk_buff {
pub gso_segs: __u32,
pub __bindgen_anon_2: __sk_buff__bindgen_ty_2,
pub gso_size: __u32,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub hwtstamp: __u64,
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -438,7 +441,6 @@ pub union __sk_buff__bindgen_ty_1 {
pub flow_keys: *mut bpf_flow_keys,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl __sk_buff__bindgen_ty_1 {
#[inline]
@ -453,7 +455,6 @@ pub union __sk_buff__bindgen_ty_2 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl __sk_buff__bindgen_ty_2 {
#[inline]
@ -462,6 +463,13 @@ impl __sk_buff__bindgen_ty_2 {
__bindgen_bitfield_unit
}
}
impl __sk_buff {
#[inline]
pub fn new_bitfield_1() -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct bpf_tunnel_key {
@ -477,7 +485,6 @@ pub struct bpf_tunnel_key {
pub union bpf_tunnel_key__bindgen_ty_1 {
pub remote_ipv4: __u32,
pub remote_ipv6: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -493,7 +500,6 @@ pub struct bpf_xfrm_state {
pub union bpf_xfrm_state__bindgen_ty_1 {
pub remote_ipv4: __u32,
pub remote_ipv6: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@ -553,7 +559,6 @@ pub struct bpf_sock_tuple {
pub union bpf_sock_tuple__bindgen_ty_1 {
pub ipv4: bpf_sock_tuple__bindgen_ty_1__bindgen_ty_1,
pub ipv6: bpf_sock_tuple__bindgen_ty_1__bindgen_ty_2,
_bindgen_union_align: [u32; 9usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@ -615,7 +620,6 @@ pub union sk_msg_md__bindgen_ty_1 {
pub data: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_msg_md__bindgen_ty_1 {
#[inline]
@ -630,7 +634,6 @@ pub union sk_msg_md__bindgen_ty_2 {
pub data_end: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_msg_md__bindgen_ty_2 {
#[inline]
@ -645,7 +648,6 @@ pub union sk_msg_md__bindgen_ty_3 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_msg_md__bindgen_ty_3 {
#[inline]
@ -673,7 +675,6 @@ pub union sk_reuseport_md__bindgen_ty_1 {
pub data: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_1 {
#[inline]
@ -688,7 +689,6 @@ pub union sk_reuseport_md__bindgen_ty_2 {
pub data_end: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_2 {
#[inline]
@ -703,7 +703,6 @@ pub union sk_reuseport_md__bindgen_ty_3 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_3 {
#[inline]
@ -718,7 +717,6 @@ pub union sk_reuseport_md__bindgen_ty_4 {
pub migrating_sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl sk_reuseport_md__bindgen_ty_4 {
#[inline]
@ -765,7 +763,6 @@ pub union bpf_sock_addr__bindgen_ty_1 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_addr__bindgen_ty_1 {
#[inline]
@ -824,7 +821,6 @@ pub union bpf_sock_ops__bindgen_ty_1 {
pub args: [__u32; 4usize],
pub reply: __u32,
pub replylong: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -832,7 +828,6 @@ pub union bpf_sock_ops__bindgen_ty_2 {
pub sk: *mut bpf_sock,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_ops__bindgen_ty_2 {
#[inline]
@ -847,7 +842,6 @@ pub union bpf_sock_ops__bindgen_ty_3 {
pub skb_data: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_ops__bindgen_ty_3 {
#[inline]
@ -862,7 +856,6 @@ pub union bpf_sock_ops__bindgen_ty_4 {
pub skb_data_end: *mut ::aya_bpf_cty::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
_bindgen_union_align: u64,
}
impl bpf_sock_ops__bindgen_ty_4 {
#[inline]
@ -969,7 +962,6 @@ pub struct bpf_fib_lookup {
pub union bpf_fib_lookup__bindgen_ty_1 {
pub tot_len: __u16,
pub mtu_result: __u16,
_bindgen_union_align: u16,
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -977,21 +969,18 @@ pub union bpf_fib_lookup__bindgen_ty_2 {
pub tos: __u8,
pub flowinfo: __be32,
pub rt_metric: __u32,
_bindgen_union_align: u32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union bpf_fib_lookup__bindgen_ty_3 {
pub ipv4_src: __be32,
pub ipv6_src: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union bpf_fib_lookup__bindgen_ty_4 {
pub ipv4_dst: __be32,
pub ipv6_dst: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
@ -1004,7 +993,6 @@ pub struct bpf_redir_neigh {
pub union bpf_redir_neigh__bindgen_ty_1 {
pub ipv4_nh: __be32,
pub ipv6_nh: [__u32; 4usize],
_bindgen_union_align: [u32; 4usize],
}
pub const BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG: ::aya_bpf_cty::c_uint = 1;
pub const BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL: ::aya_bpf_cty::c_uint = 2;
@ -1032,7 +1020,6 @@ pub struct bpf_flow_keys {
pub union bpf_flow_keys__bindgen_ty_1 {
pub __bindgen_anon_1: bpf_flow_keys__bindgen_ty_1__bindgen_ty_1,
pub __bindgen_anon_2: bpf_flow_keys__bindgen_ty_1__bindgen_ty_2,
_bindgen_union_align: [u32; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]

@ -107,6 +107,9 @@ impl __sk_buff {
pub fn gso_size(&self) -> Option<__u32> {
unsafe { crate::bpf_probe_read(&self.gso_size) }.ok()
}
pub fn hwtstamp(&self) -> Option<__u64> {
unsafe { crate::bpf_probe_read(&self.hwtstamp) }.ok()
}
}
impl __sk_buff__bindgen_ty_1 {
pub fn flow_keys(&self) -> Option<*mut bpf_flow_keys> {

@ -1759,3 +1759,34 @@ pub unsafe fn bpf_get_attach_cookie(ctx: *mut ::aya_bpf_cty::c_void) -> __u64 {
::core::mem::transmute(174usize);
fun(ctx)
}
pub unsafe fn bpf_task_pt_regs(task: *mut task_struct) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(task: *mut task_struct) -> ::aya_bpf_cty::c_long =
::core::mem::transmute(175usize);
fun(task)
}
pub unsafe fn bpf_get_branch_snapshot(
entries: *mut ::aya_bpf_cty::c_void,
size: __u32,
flags: __u64,
) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(
entries: *mut ::aya_bpf_cty::c_void,
size: __u32,
flags: __u64,
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(176usize);
fun(entries, size, flags)
}
pub unsafe fn bpf_trace_vprintk(
fmt: *const ::aya_bpf_cty::c_char,
fmt_size: __u32,
data: *const ::aya_bpf_cty::c_void,
data_len: __u32,
) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(
fmt: *const ::aya_bpf_cty::c_char,
fmt_size: __u32,
data: *const ::aya_bpf_cty::c_void,
data_len: __u32,
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(177usize);
fun(fmt, fmt_size, data, data_len)
}

Loading…
Cancel
Save