|
@@ -1,18 +1,17 @@
|
|
|
-/* automatically generated by rust-bindgen 0.55.1 */
|
|
|
+/* automatically generated by rust-bindgen 0.57.0 */
|
|
|
|
|
|
#[repr(C)]
|
|
|
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
|
|
-pub struct __BindgenBitfieldUnit<Storage, Align> {
|
|
|
+pub struct __BindgenBitfieldUnit<Storage> {
|
|
|
storage: Storage,
|
|
|
- align: [Align; 0],
|
|
|
}
|
|
|
-impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align> {
|
|
|
+impl<Storage> __BindgenBitfieldUnit<Storage> {
|
|
|
#[inline]
|
|
|
pub const fn new(storage: Storage) -> Self {
|
|
|
- Self { storage, align: [] }
|
|
|
+ Self { storage }
|
|
|
}
|
|
|
}
|
|
|
-impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align>
|
|
|
+impl<Storage> __BindgenBitfieldUnit<Storage>
|
|
|
where
|
|
|
Storage: AsRef<[u8]> + AsMut<[u8]>,
|
|
|
{
|
|
@@ -141,7 +140,8 @@ pub type __u64 = ::std::os::raw::c_ulonglong;
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
pub struct bpf_insn {
|
|
|
pub code: __u8,
|
|
|
- pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
|
|
|
+ pub _bitfield_align_1: [u8; 0],
|
|
|
+ pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
|
|
|
pub off: __s16,
|
|
|
pub imm: __s32,
|
|
|
}
|
|
@@ -169,9 +169,8 @@ impl bpf_insn {
|
|
|
}
|
|
|
}
|
|
|
#[inline]
|
|
|
- pub fn new_bitfield_1(dst_reg: __u8, src_reg: __u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
|
|
|
- let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
|
|
|
- Default::default();
|
|
|
+ pub fn new_bitfield_1(dst_reg: __u8, src_reg: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> {
|
|
|
+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
|
|
|
__bindgen_bitfield_unit.set(0usize, 4u8, {
|
|
|
let dst_reg: u8 = unsafe { ::std::mem::transmute(dst_reg) };
|
|
|
dst_reg as u64
|
|
@@ -712,7 +711,8 @@ pub struct perf_event_attr {
|
|
|
pub __bindgen_anon_1: perf_event_attr__bindgen_ty_1,
|
|
|
pub sample_type: __u64,
|
|
|
pub read_format: __u64,
|
|
|
- pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize], u32>,
|
|
|
+ pub _bitfield_align_1: [u32; 0],
|
|
|
+ pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
|
|
|
pub __bindgen_anon_2: perf_event_attr__bindgen_ty_2,
|
|
|
pub bp_type: __u32,
|
|
|
pub __bindgen_anon_3: perf_event_attr__bindgen_ty_3,
|
|
@@ -1159,9 +1159,8 @@ impl perf_event_attr {
|
|
|
aux_output: __u64,
|
|
|
cgroup: __u64,
|
|
|
__reserved_1: __u64,
|
|
|
- ) -> __BindgenBitfieldUnit<[u8; 8usize], u32> {
|
|
|
- let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize], u32> =
|
|
|
- Default::default();
|
|
|
+ ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
|
|
|
+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
|
|
|
__bindgen_bitfield_unit.set(0usize, 1u8, {
|
|
|
let disabled: u64 = unsafe { ::std::mem::transmute(disabled) };
|
|
|
disabled as u64
|
|
@@ -1337,7 +1336,8 @@ pub union perf_event_mmap_page__bindgen_ty_1 {
|
|
|
#[repr(align(8))]
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
pub struct perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
|
|
|
- pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize], u64>,
|
|
|
+ pub _bitfield_align_1: [u64; 0],
|
|
|
+ pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
|
|
|
}
|
|
|
impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
|
|
|
#[inline]
|
|
@@ -1414,9 +1414,8 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
|
|
|
cap_user_time: __u64,
|
|
|
cap_user_time_zero: __u64,
|
|
|
cap_____res: __u64,
|
|
|
- ) -> __BindgenBitfieldUnit<[u8; 8usize], u64> {
|
|
|
- let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize], u64> =
|
|
|
- Default::default();
|
|
|
+ ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
|
|
|
+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
|
|
|
__bindgen_bitfield_unit.set(0usize, 1u8, {
|
|
|
let cap_bit0: u64 = unsafe { ::std::mem::transmute(cap_bit0) };
|
|
|
cap_bit0 as u64
|