|
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 | 27 | #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] |
@@ -121,11 +121,11 @@ impl<T> __IncompleteArrayField<T> { |
121 | 121 | } |
122 | 122 | #[inline] |
123 | 123 | pub unsafe fn as_slice(&self, len: usize) -> &[T] { |
124 | | - ::std::slice::from_raw_parts(self.as_ptr(), len) |
| 124 | + unsafe { ::std::slice::from_raw_parts(self.as_ptr(), len) } |
125 | 125 | } |
126 | 126 | #[inline] |
127 | 127 | pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { |
128 | | - ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) |
| 128 | + unsafe { ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) } |
129 | 129 | } |
130 | 130 | } |
131 | 131 | impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> { |
@@ -1394,7 +1394,70 @@ impl Default for perf_event_attr { |
1394 | 1394 | } |
1395 | 1395 | impl ::std::fmt::Debug for perf_event_attr { |
1396 | 1396 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
1397 | | - write ! (f , "perf_event_attr {{ type: {:?}, size: {:?}, config: {:?}, __bindgen_anon_1: {:?}, sample_type: {:?}, read_format: {:?}, disabled : {:?}, inherit : {:?}, pinned : {:?}, exclusive : {:?}, exclude_user : {:?}, exclude_kernel : {:?}, exclude_hv : {:?}, exclude_idle : {:?}, mmap : {:?}, comm : {:?}, freq : {:?}, inherit_stat : {:?}, enable_on_exec : {:?}, task : {:?}, watermark : {:?}, precise_ip : {:?}, mmap_data : {:?}, sample_id_all : {:?}, exclude_host : {:?}, exclude_guest : {:?}, exclude_callchain_kernel : {:?}, exclude_callchain_user : {:?}, mmap2 : {:?}, comm_exec : {:?}, use_clockid : {:?}, context_switch : {:?}, write_backward : {:?}, namespaces : {:?}, ksymbol : {:?}, bpf_event : {:?}, aux_output : {:?}, cgroup : {:?}, text_poke : {:?}, build_id : {:?}, inherit_thread : {:?}, remove_on_exec : {:?}, sigtrap : {:?}, __reserved_1 : {:?}, __bindgen_anon_2: {:?}, bp_type: {:?}, __bindgen_anon_3: {:?}, __bindgen_anon_4: {:?}, branch_sample_type: {:?}, sample_regs_user: {:?}, sample_stack_user: {:?}, clockid: {:?}, sample_regs_intr: {:?}, aux_watermark: {:?}, sample_max_stack: {:?}, __reserved_2: {:?}, aux_sample_size: {:?}, __reserved_3: {:?}, sig_data: {:?}, config3: {:?} }}" , self . type_ , self . size , self . config , self . __bindgen_anon_1 , self . sample_type , self . read_format , self . disabled () , self . inherit () , self . pinned () , self . exclusive () , self . exclude_user () , self . exclude_kernel () , self . exclude_hv () , self . exclude_idle () , self . mmap () , self . comm () , self . freq () , self . inherit_stat () , self . enable_on_exec () , self . task () , self . watermark () , self . precise_ip () , self . mmap_data () , self . sample_id_all () , self . exclude_host () , self . exclude_guest () , self . exclude_callchain_kernel () , self . exclude_callchain_user () , self . mmap2 () , self . comm_exec () , self . use_clockid () , self . context_switch () , self . write_backward () , self . namespaces () , self . ksymbol () , self . bpf_event () , self . aux_output () , self . cgroup () , self . text_poke () , self . build_id () , self . inherit_thread () , self . remove_on_exec () , self . sigtrap () , self . __reserved_1 () , self . __bindgen_anon_2 , self . bp_type , self . __bindgen_anon_3 , self . __bindgen_anon_4 , self . branch_sample_type , self . sample_regs_user , self . sample_stack_user , self . clockid , self . sample_regs_intr , self . aux_watermark , self . sample_max_stack , self . __reserved_2 , self . aux_sample_size , self . __reserved_3 , self . sig_data , self . config3) |
| 1397 | + write!( |
| 1398 | + f, |
| 1399 | + "perf_event_attr {{ type: {:?}, size: {:?}, config: {:?}, __bindgen_anon_1: {:?}, sample_type: {:?}, read_format: {:?}, disabled : {:?}, inherit : {:?}, pinned : {:?}, exclusive : {:?}, exclude_user : {:?}, exclude_kernel : {:?}, exclude_hv : {:?}, exclude_idle : {:?}, mmap : {:?}, comm : {:?}, freq : {:?}, inherit_stat : {:?}, enable_on_exec : {:?}, task : {:?}, watermark : {:?}, precise_ip : {:?}, mmap_data : {:?}, sample_id_all : {:?}, exclude_host : {:?}, exclude_guest : {:?}, exclude_callchain_kernel : {:?}, exclude_callchain_user : {:?}, mmap2 : {:?}, comm_exec : {:?}, use_clockid : {:?}, context_switch : {:?}, write_backward : {:?}, namespaces : {:?}, ksymbol : {:?}, bpf_event : {:?}, aux_output : {:?}, cgroup : {:?}, text_poke : {:?}, build_id : {:?}, inherit_thread : {:?}, remove_on_exec : {:?}, sigtrap : {:?}, __reserved_1 : {:?}, __bindgen_anon_2: {:?}, bp_type: {:?}, __bindgen_anon_3: {:?}, __bindgen_anon_4: {:?}, branch_sample_type: {:?}, sample_regs_user: {:?}, sample_stack_user: {:?}, clockid: {:?}, sample_regs_intr: {:?}, aux_watermark: {:?}, sample_max_stack: {:?}, __reserved_2: {:?}, aux_sample_size: {:?}, __reserved_3: {:?}, sig_data: {:?}, config3: {:?} }}", |
| 1400 | + self.type_, |
| 1401 | + self.size, |
| 1402 | + self.config, |
| 1403 | + self.__bindgen_anon_1, |
| 1404 | + self.sample_type, |
| 1405 | + self.read_format, |
| 1406 | + self.disabled(), |
| 1407 | + self.inherit(), |
| 1408 | + self.pinned(), |
| 1409 | + self.exclusive(), |
| 1410 | + self.exclude_user(), |
| 1411 | + self.exclude_kernel(), |
| 1412 | + self.exclude_hv(), |
| 1413 | + self.exclude_idle(), |
| 1414 | + self.mmap(), |
| 1415 | + self.comm(), |
| 1416 | + self.freq(), |
| 1417 | + self.inherit_stat(), |
| 1418 | + self.enable_on_exec(), |
| 1419 | + self.task(), |
| 1420 | + self.watermark(), |
| 1421 | + self.precise_ip(), |
| 1422 | + self.mmap_data(), |
| 1423 | + self.sample_id_all(), |
| 1424 | + self.exclude_host(), |
| 1425 | + self.exclude_guest(), |
| 1426 | + self.exclude_callchain_kernel(), |
| 1427 | + self.exclude_callchain_user(), |
| 1428 | + self.mmap2(), |
| 1429 | + self.comm_exec(), |
| 1430 | + self.use_clockid(), |
| 1431 | + self.context_switch(), |
| 1432 | + self.write_backward(), |
| 1433 | + self.namespaces(), |
| 1434 | + self.ksymbol(), |
| 1435 | + self.bpf_event(), |
| 1436 | + self.aux_output(), |
| 1437 | + self.cgroup(), |
| 1438 | + self.text_poke(), |
| 1439 | + self.build_id(), |
| 1440 | + self.inherit_thread(), |
| 1441 | + self.remove_on_exec(), |
| 1442 | + self.sigtrap(), |
| 1443 | + self.__reserved_1(), |
| 1444 | + self.__bindgen_anon_2, |
| 1445 | + self.bp_type, |
| 1446 | + self.__bindgen_anon_3, |
| 1447 | + self.__bindgen_anon_4, |
| 1448 | + self.branch_sample_type, |
| 1449 | + self.sample_regs_user, |
| 1450 | + self.sample_stack_user, |
| 1451 | + self.clockid, |
| 1452 | + self.sample_regs_intr, |
| 1453 | + self.aux_watermark, |
| 1454 | + self.sample_max_stack, |
| 1455 | + self.__reserved_2, |
| 1456 | + self.aux_sample_size, |
| 1457 | + self.__reserved_3, |
| 1458 | + self.sig_data, |
| 1459 | + self.config3 |
| 1460 | + ) |
1398 | 1461 | } |
1399 | 1462 | } |
1400 | 1463 | impl perf_event_attr { |
@@ -2108,6 +2171,7 @@ pub union perf_event_mmap_page__bindgen_ty_1 { |
2108 | 2171 | pub __bindgen_anon_1: perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1, |
2109 | 2172 | } |
2110 | 2173 | #[repr(C)] |
| 2174 | +#[repr(align(8))] |
2111 | 2175 | #[derive(Debug, Default, Copy, Clone)] |
2112 | 2176 | #[non_exhaustive] |
2113 | 2177 | pub struct perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 { |
@@ -2574,7 +2638,36 @@ impl Default for perf_event_mmap_page { |
2574 | 2638 | } |
2575 | 2639 | impl ::std::fmt::Debug for perf_event_mmap_page { |
2576 | 2640 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
2577 | | - write ! (f , "perf_event_mmap_page {{ version: {:?}, compat_version: {:?}, lock: {:?}, index: {:?}, offset: {:?}, time_enabled: {:?}, time_running: {:?}, __bindgen_anon_1: {:?}, pmc_width: {:?}, time_shift: {:?}, time_mult: {:?}, time_offset: {:?}, time_zero: {:?}, size: {:?}, __reserved_1: {:?}, time_cycles: {:?}, time_mask: {:?}, __reserved: {:?}, data_head: {:?}, data_tail: {:?}, data_offset: {:?}, data_size: {:?}, aux_head: {:?}, aux_tail: {:?}, aux_offset: {:?}, aux_size: {:?} }}" , self . version , self . compat_version , self . lock , self . index , self . offset , self . time_enabled , self . time_running , self . __bindgen_anon_1 , self . pmc_width , self . time_shift , self . time_mult , self . time_offset , self . time_zero , self . size , self . __reserved_1 , self . time_cycles , self . time_mask , self . __reserved , self . data_head , self . data_tail , self . data_offset , self . data_size , self . aux_head , self . aux_tail , self . aux_offset , self . aux_size) |
| 2641 | + write!( |
| 2642 | + f, |
| 2643 | + "perf_event_mmap_page {{ version: {:?}, compat_version: {:?}, lock: {:?}, index: {:?}, offset: {:?}, time_enabled: {:?}, time_running: {:?}, __bindgen_anon_1: {:?}, pmc_width: {:?}, time_shift: {:?}, time_mult: {:?}, time_offset: {:?}, time_zero: {:?}, size: {:?}, __reserved_1: {:?}, time_cycles: {:?}, time_mask: {:?}, __reserved: {:?}, data_head: {:?}, data_tail: {:?}, data_offset: {:?}, data_size: {:?}, aux_head: {:?}, aux_tail: {:?}, aux_offset: {:?}, aux_size: {:?} }}", |
| 2644 | + self.version, |
| 2645 | + self.compat_version, |
| 2646 | + self.lock, |
| 2647 | + self.index, |
| 2648 | + self.offset, |
| 2649 | + self.time_enabled, |
| 2650 | + self.time_running, |
| 2651 | + self.__bindgen_anon_1, |
| 2652 | + self.pmc_width, |
| 2653 | + self.time_shift, |
| 2654 | + self.time_mult, |
| 2655 | + self.time_offset, |
| 2656 | + self.time_zero, |
| 2657 | + self.size, |
| 2658 | + self.__reserved_1, |
| 2659 | + self.time_cycles, |
| 2660 | + self.time_mask, |
| 2661 | + self.__reserved, |
| 2662 | + self.data_head, |
| 2663 | + self.data_tail, |
| 2664 | + self.data_offset, |
| 2665 | + self.data_size, |
| 2666 | + self.aux_head, |
| 2667 | + self.aux_tail, |
| 2668 | + self.aux_offset, |
| 2669 | + self.aux_size |
| 2670 | + ) |
2578 | 2671 | } |
2579 | 2672 | } |
2580 | 2673 | #[repr(C)] |
|
0 commit comments