|
21 | 21 | #![allow(deref_nullptr)] // `bindgen_test_layout` tests use bogus code |
22 | 22 | #![allow(clippy::all)] |
23 | 23 |
|
24 | | -/* automatically generated by rust-bindgen 0.69.4 */ |
| 24 | +/* automatically generated by rust-bindgen 0.69.1 */ |
25 | 25 |
|
26 | 26 | #[repr(C)] |
27 | | -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] |
| 27 | +#[derive( |
| 28 | + Copy, |
| 29 | + Clone, |
| 30 | + Debug, |
| 31 | + Default, |
| 32 | + Eq, |
| 33 | + Hash, |
| 34 | + Ord, |
| 35 | + PartialEq, |
| 36 | + PartialOrd, |
| 37 | + zerocopy::FromBytes, |
| 38 | + zerocopy::Immutable, |
| 39 | + zerocopy::KnownLayout, |
| 40 | +)] |
28 | 41 | pub struct __BindgenBitfieldUnit<Storage> { |
29 | 42 | storage: Storage, |
30 | 43 | } |
@@ -104,7 +117,7 @@ where |
104 | 117 | } |
105 | 118 | } |
106 | 119 | #[repr(C)] |
107 | | -#[derive(Default)] |
| 120 | +#[derive(Default, zerocopy::FromBytes, zerocopy::Immutable, zerocopy::KnownLayout)] |
108 | 121 | pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]); |
109 | 122 | impl<T> __IncompleteArrayField<T> { |
110 | 123 | #[inline] |
@@ -603,7 +616,15 @@ pub type __u32 = ::std::os::raw::c_uint; |
603 | 616 | pub type __s64 = ::std::os::raw::c_longlong; |
604 | 617 | pub type __u64 = ::std::os::raw::c_ulonglong; |
605 | 618 | #[repr(C)] |
606 | | -#[derive(Debug, Default, Copy, Clone)] |
| 619 | +#[derive( |
| 620 | + Debug, |
| 621 | + Default, |
| 622 | + Copy, |
| 623 | + Clone, |
| 624 | + zerocopy :: FromBytes, |
| 625 | + zerocopy :: Immutable, |
| 626 | + zerocopy :: KnownLayout, |
| 627 | +)] |
607 | 628 | pub struct __kernel_fd_set { |
608 | 629 | pub fds_bits: [::std::os::raw::c_ulong; 16usize], |
609 | 630 | } |
@@ -655,7 +676,15 @@ pub type __kernel_size_t = __kernel_ulong_t; |
655 | 676 | pub type __kernel_ssize_t = __kernel_long_t; |
656 | 677 | pub type __kernel_ptrdiff_t = __kernel_long_t; |
657 | 678 | #[repr(C)] |
658 | | -#[derive(Debug, Default, Copy, Clone)] |
| 679 | +#[derive( |
| 680 | + Debug, |
| 681 | + Default, |
| 682 | + Copy, |
| 683 | + Clone, |
| 684 | + zerocopy :: FromBytes, |
| 685 | + zerocopy :: Immutable, |
| 686 | + zerocopy :: KnownLayout, |
| 687 | +)] |
659 | 688 | pub struct __kernel_fsid_t { |
660 | 689 | pub val: [::std::os::raw::c_int; 2usize], |
661 | 690 | } |
@@ -892,7 +921,7 @@ pub const PERF_FORMAT_LOST: perf_event_read_format = 16; |
892 | 921 | pub const PERF_FORMAT_MAX: perf_event_read_format = 32; |
893 | 922 | pub type perf_event_read_format = ::std::os::raw::c_uint; |
894 | 923 | #[repr(C)] |
895 | | -#[derive(Copy, Clone)] |
| 924 | +#[derive(Copy, Clone, zerocopy :: FromBytes, zerocopy :: Immutable, zerocopy :: KnownLayout)] |
896 | 925 | #[non_exhaustive] |
897 | 926 | pub struct perf_event_attr { |
898 | 927 | pub type_: __u32, |
@@ -921,7 +950,7 @@ pub struct perf_event_attr { |
921 | 950 | pub config3: __u64, |
922 | 951 | } |
923 | 952 | #[repr(C)] |
924 | | -#[derive(Copy, Clone)] |
| 953 | +#[derive(Copy, Clone, zerocopy :: FromBytes, zerocopy :: Immutable, zerocopy :: KnownLayout)] |
925 | 954 | pub union perf_event_attr__bindgen_ty_1 { |
926 | 955 | pub sample_period: __u64, |
927 | 956 | pub sample_freq: __u64, |
@@ -977,7 +1006,7 @@ impl ::std::fmt::Debug for perf_event_attr__bindgen_ty_1 { |
977 | 1006 | } |
978 | 1007 | } |
979 | 1008 | #[repr(C)] |
980 | | -#[derive(Copy, Clone)] |
| 1009 | +#[derive(Copy, Clone, zerocopy :: FromBytes, zerocopy :: Immutable, zerocopy :: KnownLayout)] |
981 | 1010 | pub union perf_event_attr__bindgen_ty_2 { |
982 | 1011 | pub wakeup_events: __u32, |
983 | 1012 | pub wakeup_watermark: __u32, |
@@ -1033,7 +1062,7 @@ impl ::std::fmt::Debug for perf_event_attr__bindgen_ty_2 { |
1033 | 1062 | } |
1034 | 1063 | } |
1035 | 1064 | #[repr(C)] |
1036 | | -#[derive(Copy, Clone)] |
| 1065 | +#[derive(Copy, Clone, zerocopy :: FromBytes, zerocopy :: Immutable, zerocopy :: KnownLayout)] |
1037 | 1066 | pub union perf_event_attr__bindgen_ty_3 { |
1038 | 1067 | pub bp_addr: __u64, |
1039 | 1068 | pub kprobe_func: __u64, |
@@ -1111,7 +1140,7 @@ impl ::std::fmt::Debug for perf_event_attr__bindgen_ty_3 { |
1111 | 1140 | } |
1112 | 1141 | } |
1113 | 1142 | #[repr(C)] |
1114 | | -#[derive(Copy, Clone)] |
| 1143 | +#[derive(Copy, Clone, zerocopy :: FromBytes, zerocopy :: Immutable, zerocopy :: KnownLayout)] |
1115 | 1144 | pub union perf_event_attr__bindgen_ty_4 { |
1116 | 1145 | pub bp_len: __u64, |
1117 | 1146 | pub kprobe_addr: __u64, |
@@ -2017,7 +2046,7 @@ impl perf_event_attr { |
2017 | 2046 | } |
2018 | 2047 | } |
2019 | 2048 | #[repr(C)] |
2020 | | -#[derive(Debug, Default)] |
| 2049 | +#[derive(Debug, Default, zerocopy :: FromBytes, zerocopy :: Immutable, zerocopy :: KnownLayout)] |
2021 | 2050 | pub struct perf_event_query_bpf { |
2022 | 2051 | pub ids_len: __u32, |
2023 | 2052 | pub prog_cnt: __u32, |
@@ -2071,7 +2100,7 @@ fn bindgen_test_layout_perf_event_query_bpf() { |
2071 | 2100 | pub const PERF_IOC_FLAG_GROUP: perf_event_ioc_flags = 1; |
2072 | 2101 | pub type perf_event_ioc_flags = ::std::os::raw::c_uint; |
2073 | 2102 | #[repr(C)] |
2074 | | -#[derive(Copy, Clone)] |
| 2103 | +#[derive(Copy, Clone, zerocopy :: FromBytes, zerocopy :: Immutable, zerocopy :: KnownLayout)] |
2075 | 2104 | #[non_exhaustive] |
2076 | 2105 | pub struct perf_event_mmap_page { |
2077 | 2106 | pub version: __u32, |
@@ -2102,13 +2131,22 @@ pub struct perf_event_mmap_page { |
2102 | 2131 | pub aux_size: __u64, |
2103 | 2132 | } |
2104 | 2133 | #[repr(C)] |
2105 | | -#[derive(Copy, Clone)] |
| 2134 | +#[derive(Copy, Clone, zerocopy :: FromBytes, zerocopy :: Immutable, zerocopy :: KnownLayout)] |
2106 | 2135 | pub union perf_event_mmap_page__bindgen_ty_1 { |
2107 | 2136 | pub capabilities: __u64, |
2108 | 2137 | pub __bindgen_anon_1: perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1, |
2109 | 2138 | } |
2110 | 2139 | #[repr(C)] |
2111 | | -#[derive(Debug, Default, Copy, Clone)] |
| 2140 | +#[repr(align(8))] |
| 2141 | +#[derive( |
| 2142 | + Debug, |
| 2143 | + Default, |
| 2144 | + Copy, |
| 2145 | + Clone, |
| 2146 | + zerocopy :: FromBytes, |
| 2147 | + zerocopy :: Immutable, |
| 2148 | + zerocopy :: KnownLayout, |
| 2149 | +)] |
2112 | 2150 | #[non_exhaustive] |
2113 | 2151 | pub struct perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 { |
2114 | 2152 | pub _bitfield_align_1: [u64; 0], |
@@ -2578,7 +2616,15 @@ impl ::std::fmt::Debug for perf_event_mmap_page { |
2578 | 2616 | } |
2579 | 2617 | } |
2580 | 2618 | #[repr(C)] |
2581 | | -#[derive(Debug, Default, Copy, Clone)] |
| 2619 | +#[derive( |
| 2620 | + Debug, |
| 2621 | + Default, |
| 2622 | + Copy, |
| 2623 | + Clone, |
| 2624 | + zerocopy :: FromBytes, |
| 2625 | + zerocopy :: Immutable, |
| 2626 | + zerocopy :: KnownLayout, |
| 2627 | +)] |
2582 | 2628 | pub struct perf_event_header { |
2583 | 2629 | pub type_: __u32, |
2584 | 2630 | pub misc: __u16, |
@@ -2630,7 +2676,15 @@ fn bindgen_test_layout_perf_event_header() { |
2630 | 2676 | ); |
2631 | 2677 | } |
2632 | 2678 | #[repr(C)] |
2633 | | -#[derive(Debug, Default, Copy, Clone)] |
| 2679 | +#[derive( |
| 2680 | + Debug, |
| 2681 | + Default, |
| 2682 | + Copy, |
| 2683 | + Clone, |
| 2684 | + zerocopy :: FromBytes, |
| 2685 | + zerocopy :: Immutable, |
| 2686 | + zerocopy :: KnownLayout, |
| 2687 | +)] |
2634 | 2688 | pub struct perf_ns_link_info { |
2635 | 2689 | pub dev: __u64, |
2636 | 2690 | pub ino: __u64, |
@@ -2721,14 +2775,22 @@ pub const PERF_CONTEXT_GUEST_USER: perf_callchain_context = 18446744073709549056 |
2721 | 2775 | pub const PERF_CONTEXT_MAX: perf_callchain_context = 18446744073709547521; |
2722 | 2776 | pub type perf_callchain_context = ::std::os::raw::c_ulong; |
2723 | 2777 | #[repr(C)] |
2724 | | -#[derive(Copy, Clone)] |
| 2778 | +#[derive(Copy, Clone, zerocopy :: FromBytes, zerocopy :: Immutable, zerocopy :: KnownLayout)] |
2725 | 2779 | pub union perf_mem_data_src { |
2726 | 2780 | pub val: __u64, |
2727 | 2781 | pub __bindgen_anon_1: perf_mem_data_src__bindgen_ty_1, |
2728 | 2782 | } |
2729 | 2783 | #[repr(C)] |
2730 | 2784 | #[repr(align(8))] |
2731 | | -#[derive(Debug, Default, Copy, Clone)] |
| 2785 | +#[derive( |
| 2786 | + Debug, |
| 2787 | + Default, |
| 2788 | + Copy, |
| 2789 | + Clone, |
| 2790 | + zerocopy :: FromBytes, |
| 2791 | + zerocopy :: Immutable, |
| 2792 | + zerocopy :: KnownLayout, |
| 2793 | +)] |
2732 | 2794 | pub struct perf_mem_data_src__bindgen_ty_1 { |
2733 | 2795 | pub _bitfield_align_1: [u32; 0], |
2734 | 2796 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>, |
@@ -2971,7 +3033,15 @@ impl ::std::fmt::Debug for perf_mem_data_src { |
2971 | 3033 | } |
2972 | 3034 | } |
2973 | 3035 | #[repr(C)] |
2974 | | -#[derive(Debug, Default, Copy, Clone)] |
| 3036 | +#[derive( |
| 3037 | + Debug, |
| 3038 | + Default, |
| 3039 | + Copy, |
| 3040 | + Clone, |
| 3041 | + zerocopy :: FromBytes, |
| 3042 | + zerocopy :: Immutable, |
| 3043 | + zerocopy :: KnownLayout, |
| 3044 | +)] |
2975 | 3045 | pub struct perf_branch_entry { |
2976 | 3046 | pub from: __u64, |
2977 | 3047 | pub to: __u64, |
@@ -3183,13 +3253,21 @@ impl perf_branch_entry { |
3183 | 3253 | } |
3184 | 3254 | } |
3185 | 3255 | #[repr(C)] |
3186 | | -#[derive(Copy, Clone)] |
| 3256 | +#[derive(Copy, Clone, zerocopy :: FromBytes, zerocopy :: Immutable, zerocopy :: KnownLayout)] |
3187 | 3257 | pub union perf_sample_weight { |
3188 | 3258 | pub full: __u64, |
3189 | 3259 | pub __bindgen_anon_1: perf_sample_weight__bindgen_ty_1, |
3190 | 3260 | } |
3191 | 3261 | #[repr(C)] |
3192 | | -#[derive(Debug, Default, Copy, Clone)] |
| 3262 | +#[derive( |
| 3263 | + Debug, |
| 3264 | + Default, |
| 3265 | + Copy, |
| 3266 | + Clone, |
| 3267 | + zerocopy :: FromBytes, |
| 3268 | + zerocopy :: Immutable, |
| 3269 | + zerocopy :: KnownLayout, |
| 3270 | +)] |
3193 | 3271 | pub struct perf_sample_weight__bindgen_ty_1 { |
3194 | 3272 | pub var1_dw: __u32, |
3195 | 3273 | pub var2_w: __u16, |
|
0 commit comments