summaryrefslogtreecommitdiffstats
path: root/vendor/perf-event-open-sys/src/bindings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/perf-event-open-sys/src/bindings.rs')
-rw-r--r--vendor/perf-event-open-sys/src/bindings.rs941
1 files changed, 639 insertions, 302 deletions
diff --git a/vendor/perf-event-open-sys/src/bindings.rs b/vendor/perf-event-open-sys/src/bindings.rs
index 0cdd40742..012e5afe6 100644
--- a/vendor/perf-event-open-sys/src/bindings.rs
+++ b/vendor/perf-event-open-sys/src/bindings.rs
@@ -18,22 +18,25 @@
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
+#![allow(deref_nullptr)] // `bindgen_test_layout` tests use bogus code
+#![allow(clippy::missing_safety_doc)]
+#![allow(clippy::too_many_arguments)]
+#![allow(clippy::useless_transmute)]
-/* automatically generated by rust-bindgen 0.54.1 */
+/* automatically generated by rust-bindgen 0.59.2 */
#[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]>,
{
@@ -155,6 +158,8 @@ pub const IOC_INOUT: u32 = 3221225472;
pub const IOCSIZE_MASK: u32 = 1073676288;
pub const IOCSIZE_SHIFT: u32 = 16;
pub const __LITTLE_ENDIAN: u32 = 1234;
+pub const PERF_PMU_TYPE_SHIFT: u32 = 32;
+pub const PERF_HW_EVENT_MASK: u32 = 4294967295;
pub const PERF_ATTR_SIZE_VER0: u32 = 64;
pub const PERF_ATTR_SIZE_VER1: u32 = 72;
pub const PERF_ATTR_SIZE_VER2: u32 = 80;
@@ -162,6 +167,7 @@ pub const PERF_ATTR_SIZE_VER3: u32 = 96;
pub const PERF_ATTR_SIZE_VER4: u32 = 104;
pub const PERF_ATTR_SIZE_VER5: u32 = 112;
pub const PERF_ATTR_SIZE_VER6: u32 = 120;
+pub const PERF_ATTR_SIZE_VER7: u32 = 128;
pub const PERF_RECORD_MISC_CPUMODE_MASK: u32 = 7;
pub const PERF_RECORD_MISC_CPUMODE_UNKNOWN: u32 = 0;
pub const PERF_RECORD_MISC_KERNEL: u32 = 1;
@@ -176,6 +182,7 @@ pub const PERF_RECORD_MISC_FORK_EXEC: u32 = 8192;
pub const PERF_RECORD_MISC_SWITCH_OUT: u32 = 8192;
pub const PERF_RECORD_MISC_EXACT_IP: u32 = 16384;
pub const PERF_RECORD_MISC_SWITCH_OUT_PREEMPT: u32 = 16384;
+pub const PERF_RECORD_MISC_MMAP_BUILD_ID: u32 = 16384;
pub const PERF_RECORD_MISC_EXT_RESERVED: u32 = 32768;
pub const PERF_RECORD_KSYMBOL_FLAGS_UNREGISTER: u32 = 1;
pub const PERF_MAX_STACK_DEPTH: u32 = 127;
@@ -184,6 +191,9 @@ pub const PERF_AUX_FLAG_TRUNCATED: u32 = 1;
pub const PERF_AUX_FLAG_OVERWRITE: u32 = 2;
pub const PERF_AUX_FLAG_PARTIAL: u32 = 4;
pub const PERF_AUX_FLAG_COLLISION: u32 = 8;
+pub const PERF_AUX_FLAG_PMU_FORMAT_TYPE_MASK: u32 = 65280;
+pub const PERF_AUX_FLAG_CORESIGHT_FORMAT_CORESIGHT: u32 = 0;
+pub const PERF_AUX_FLAG_CORESIGHT_FORMAT_RAW: u32 = 256;
pub const PERF_FLAG_FD_NO_GROUP: u32 = 1;
pub const PERF_FLAG_FD_OUTPUT: u32 = 2;
pub const PERF_FLAG_PID_CGROUP: u32 = 4;
@@ -228,7 +238,7 @@ pub const PERF_MEM_SNOOP_MISS: u32 = 8;
pub const PERF_MEM_SNOOP_HITM: u32 = 16;
pub const PERF_MEM_SNOOP_SHIFT: u32 = 19;
pub const PERF_MEM_SNOOPX_FWD: u32 = 1;
-pub const PERF_MEM_SNOOPX_SHIFT: u32 = 37;
+pub const PERF_MEM_SNOOPX_SHIFT: u32 = 38;
pub const PERF_MEM_LOCK_NA: u32 = 1;
pub const PERF_MEM_LOCK_LOCKED: u32 = 2;
pub const PERF_MEM_LOCK_SHIFT: u32 = 24;
@@ -240,8 +250,16 @@ pub const PERF_MEM_TLB_L2: u32 = 16;
pub const PERF_MEM_TLB_WK: u32 = 32;
pub const PERF_MEM_TLB_OS: u32 = 64;
pub const PERF_MEM_TLB_SHIFT: u32 = 26;
+pub const PERF_MEM_BLK_NA: u32 = 1;
+pub const PERF_MEM_BLK_DATA: u32 = 2;
+pub const PERF_MEM_BLK_ADDR: u32 = 4;
+pub const PERF_MEM_BLK_SHIFT: u32 = 40;
+pub const PERF_MEM_HOPS_0: u32 = 1;
+pub const PERF_MEM_HOPS_1: u32 = 2;
+pub const PERF_MEM_HOPS_2: u32 = 3;
+pub const PERF_MEM_HOPS_3: u32 = 4;
+pub const PERF_MEM_HOPS_SHIFT: u32 = 43;
pub const __X32_SYSCALL_BIT: u32 = 1073741824;
-pub const _ASM_X86_UNISTD_64_H: u32 = 1;
pub const __NR_read: u32 = 0;
pub const __NR_write: u32 = 1;
pub const __NR_open: u32 = 2;
@@ -589,8 +607,21 @@ pub const __NR_fsmount: u32 = 432;
pub const __NR_fspick: u32 = 433;
pub const __NR_pidfd_open: u32 = 434;
pub const __NR_clone3: u32 = 435;
+pub const __NR_close_range: u32 = 436;
pub const __NR_openat2: u32 = 437;
pub const __NR_pidfd_getfd: u32 = 438;
+pub const __NR_faccessat2: u32 = 439;
+pub const __NR_process_madvise: u32 = 440;
+pub const __NR_epoll_pwait2: u32 = 441;
+pub const __NR_mount_setattr: u32 = 442;
+pub const __NR_quotactl_fd: u32 = 443;
+pub const __NR_landlock_create_ruleset: u32 = 444;
+pub const __NR_landlock_add_rule: u32 = 445;
+pub const __NR_landlock_restrict_self: u32 = 446;
+pub const __NR_memfd_secret: u32 = 447;
+pub const __NR_process_mrelease: u32 = 448;
+pub const __NR_futex_waitv: u32 = 449;
+pub const __NR_set_mempolicy_home_node: u32 = 450;
pub type __s8 = ::std::os::raw::c_schar;
pub type __u8 = ::std::os::raw::c_uchar;
pub type __s16 = ::std::os::raw::c_short;
@@ -697,175 +728,163 @@ pub type __be64 = __u64;
pub type __sum16 = __u16;
pub type __wsum = __u32;
pub type __poll_t = ::std::os::raw::c_uint;
-pub const perf_type_id_PERF_TYPE_HARDWARE: perf_type_id = 0;
-pub const perf_type_id_PERF_TYPE_SOFTWARE: perf_type_id = 1;
-pub const perf_type_id_PERF_TYPE_TRACEPOINT: perf_type_id = 2;
-pub const perf_type_id_PERF_TYPE_HW_CACHE: perf_type_id = 3;
-pub const perf_type_id_PERF_TYPE_RAW: perf_type_id = 4;
-pub const perf_type_id_PERF_TYPE_BREAKPOINT: perf_type_id = 5;
-pub const perf_type_id_PERF_TYPE_MAX: perf_type_id = 6;
-pub type perf_type_id = u32;
-pub const perf_hw_id_PERF_COUNT_HW_CPU_CYCLES: perf_hw_id = 0;
-pub const perf_hw_id_PERF_COUNT_HW_INSTRUCTIONS: perf_hw_id = 1;
-pub const perf_hw_id_PERF_COUNT_HW_CACHE_REFERENCES: perf_hw_id = 2;
-pub const perf_hw_id_PERF_COUNT_HW_CACHE_MISSES: perf_hw_id = 3;
-pub const perf_hw_id_PERF_COUNT_HW_BRANCH_INSTRUCTIONS: perf_hw_id = 4;
-pub const perf_hw_id_PERF_COUNT_HW_BRANCH_MISSES: perf_hw_id = 5;
-pub const perf_hw_id_PERF_COUNT_HW_BUS_CYCLES: perf_hw_id = 6;
-pub const perf_hw_id_PERF_COUNT_HW_STALLED_CYCLES_FRONTEND: perf_hw_id = 7;
-pub const perf_hw_id_PERF_COUNT_HW_STALLED_CYCLES_BACKEND: perf_hw_id = 8;
-pub const perf_hw_id_PERF_COUNT_HW_REF_CPU_CYCLES: perf_hw_id = 9;
-pub const perf_hw_id_PERF_COUNT_HW_MAX: perf_hw_id = 10;
-pub type perf_hw_id = u32;
-pub const perf_hw_cache_id_PERF_COUNT_HW_CACHE_L1D: perf_hw_cache_id = 0;
-pub const perf_hw_cache_id_PERF_COUNT_HW_CACHE_L1I: perf_hw_cache_id = 1;
-pub const perf_hw_cache_id_PERF_COUNT_HW_CACHE_LL: perf_hw_cache_id = 2;
-pub const perf_hw_cache_id_PERF_COUNT_HW_CACHE_DTLB: perf_hw_cache_id = 3;
-pub const perf_hw_cache_id_PERF_COUNT_HW_CACHE_ITLB: perf_hw_cache_id = 4;
-pub const perf_hw_cache_id_PERF_COUNT_HW_CACHE_BPU: perf_hw_cache_id = 5;
-pub const perf_hw_cache_id_PERF_COUNT_HW_CACHE_NODE: perf_hw_cache_id = 6;
-pub const perf_hw_cache_id_PERF_COUNT_HW_CACHE_MAX: perf_hw_cache_id = 7;
-pub type perf_hw_cache_id = u32;
-pub const perf_hw_cache_op_id_PERF_COUNT_HW_CACHE_OP_READ: perf_hw_cache_op_id = 0;
-pub const perf_hw_cache_op_id_PERF_COUNT_HW_CACHE_OP_WRITE: perf_hw_cache_op_id = 1;
-pub const perf_hw_cache_op_id_PERF_COUNT_HW_CACHE_OP_PREFETCH: perf_hw_cache_op_id = 2;
-pub const perf_hw_cache_op_id_PERF_COUNT_HW_CACHE_OP_MAX: perf_hw_cache_op_id = 3;
-pub type perf_hw_cache_op_id = u32;
-pub const perf_hw_cache_op_result_id_PERF_COUNT_HW_CACHE_RESULT_ACCESS: perf_hw_cache_op_result_id =
- 0;
-pub const perf_hw_cache_op_result_id_PERF_COUNT_HW_CACHE_RESULT_MISS: perf_hw_cache_op_result_id =
- 1;
-pub const perf_hw_cache_op_result_id_PERF_COUNT_HW_CACHE_RESULT_MAX: perf_hw_cache_op_result_id = 2;
-pub type perf_hw_cache_op_result_id = u32;
-pub const perf_sw_ids_PERF_COUNT_SW_CPU_CLOCK: perf_sw_ids = 0;
-pub const perf_sw_ids_PERF_COUNT_SW_TASK_CLOCK: perf_sw_ids = 1;
-pub const perf_sw_ids_PERF_COUNT_SW_PAGE_FAULTS: perf_sw_ids = 2;
-pub const perf_sw_ids_PERF_COUNT_SW_CONTEXT_SWITCHES: perf_sw_ids = 3;
-pub const perf_sw_ids_PERF_COUNT_SW_CPU_MIGRATIONS: perf_sw_ids = 4;
-pub const perf_sw_ids_PERF_COUNT_SW_PAGE_FAULTS_MIN: perf_sw_ids = 5;
-pub const perf_sw_ids_PERF_COUNT_SW_PAGE_FAULTS_MAJ: perf_sw_ids = 6;
-pub const perf_sw_ids_PERF_COUNT_SW_ALIGNMENT_FAULTS: perf_sw_ids = 7;
-pub const perf_sw_ids_PERF_COUNT_SW_EMULATION_FAULTS: perf_sw_ids = 8;
-pub const perf_sw_ids_PERF_COUNT_SW_DUMMY: perf_sw_ids = 9;
-pub const perf_sw_ids_PERF_COUNT_SW_BPF_OUTPUT: perf_sw_ids = 10;
-pub const perf_sw_ids_PERF_COUNT_SW_MAX: perf_sw_ids = 11;
-pub type perf_sw_ids = u32;
-pub const perf_event_sample_format_PERF_SAMPLE_IP: perf_event_sample_format = 1;
-pub const perf_event_sample_format_PERF_SAMPLE_TID: perf_event_sample_format = 2;
-pub const perf_event_sample_format_PERF_SAMPLE_TIME: perf_event_sample_format = 4;
-pub const perf_event_sample_format_PERF_SAMPLE_ADDR: perf_event_sample_format = 8;
-pub const perf_event_sample_format_PERF_SAMPLE_READ: perf_event_sample_format = 16;
-pub const perf_event_sample_format_PERF_SAMPLE_CALLCHAIN: perf_event_sample_format = 32;
-pub const perf_event_sample_format_PERF_SAMPLE_ID: perf_event_sample_format = 64;
-pub const perf_event_sample_format_PERF_SAMPLE_CPU: perf_event_sample_format = 128;
-pub const perf_event_sample_format_PERF_SAMPLE_PERIOD: perf_event_sample_format = 256;
-pub const perf_event_sample_format_PERF_SAMPLE_STREAM_ID: perf_event_sample_format = 512;
-pub const perf_event_sample_format_PERF_SAMPLE_RAW: perf_event_sample_format = 1024;
-pub const perf_event_sample_format_PERF_SAMPLE_BRANCH_STACK: perf_event_sample_format = 2048;
-pub const perf_event_sample_format_PERF_SAMPLE_REGS_USER: perf_event_sample_format = 4096;
-pub const perf_event_sample_format_PERF_SAMPLE_STACK_USER: perf_event_sample_format = 8192;
-pub const perf_event_sample_format_PERF_SAMPLE_WEIGHT: perf_event_sample_format = 16384;
-pub const perf_event_sample_format_PERF_SAMPLE_DATA_SRC: perf_event_sample_format = 32768;
-pub const perf_event_sample_format_PERF_SAMPLE_IDENTIFIER: perf_event_sample_format = 65536;
-pub const perf_event_sample_format_PERF_SAMPLE_TRANSACTION: perf_event_sample_format = 131072;
-pub const perf_event_sample_format_PERF_SAMPLE_REGS_INTR: perf_event_sample_format = 262144;
-pub const perf_event_sample_format_PERF_SAMPLE_PHYS_ADDR: perf_event_sample_format = 524288;
-pub const perf_event_sample_format_PERF_SAMPLE_AUX: perf_event_sample_format = 1048576;
-pub const perf_event_sample_format_PERF_SAMPLE_MAX: perf_event_sample_format = 2097152;
-pub const perf_event_sample_format___PERF_SAMPLE_CALLCHAIN_EARLY: perf_event_sample_format =
- 9223372036854775808;
-pub type perf_event_sample_format = u64;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_USER_SHIFT:
- perf_branch_sample_type_shift = 0;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_KERNEL_SHIFT:
- perf_branch_sample_type_shift = 1;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_HV_SHIFT: perf_branch_sample_type_shift =
- 2;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_ANY_SHIFT:
- perf_branch_sample_type_shift = 3;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_ANY_CALL_SHIFT:
- perf_branch_sample_type_shift = 4;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_ANY_RETURN_SHIFT:
- perf_branch_sample_type_shift = 5;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_IND_CALL_SHIFT:
- perf_branch_sample_type_shift = 6;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_ABORT_TX_SHIFT:
- perf_branch_sample_type_shift = 7;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_IN_TX_SHIFT:
- perf_branch_sample_type_shift = 8;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_NO_TX_SHIFT:
- perf_branch_sample_type_shift = 9;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_COND_SHIFT:
- perf_branch_sample_type_shift = 10;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT:
- perf_branch_sample_type_shift = 11;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT:
- perf_branch_sample_type_shift = 12;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_CALL_SHIFT:
- perf_branch_sample_type_shift = 13;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_NO_FLAGS_SHIFT:
- perf_branch_sample_type_shift = 14;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_NO_CYCLES_SHIFT:
- perf_branch_sample_type_shift = 15;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT:
- perf_branch_sample_type_shift = 16;
-pub const perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_MAX_SHIFT:
- perf_branch_sample_type_shift = 17;
-pub type perf_branch_sample_type_shift = u32;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_USER: perf_branch_sample_type = 1;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_KERNEL: perf_branch_sample_type = 2;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_HV: perf_branch_sample_type = 4;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_ANY: perf_branch_sample_type = 8;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_ANY_CALL: perf_branch_sample_type = 16;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_ANY_RETURN: perf_branch_sample_type = 32;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_IND_CALL: perf_branch_sample_type = 64;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_ABORT_TX: perf_branch_sample_type = 128;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_IN_TX: perf_branch_sample_type = 256;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_NO_TX: perf_branch_sample_type = 512;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_COND: perf_branch_sample_type = 1024;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_CALL_STACK: perf_branch_sample_type = 2048;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_IND_JUMP: perf_branch_sample_type = 4096;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_CALL: perf_branch_sample_type = 8192;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_NO_FLAGS: perf_branch_sample_type = 16384;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_NO_CYCLES: perf_branch_sample_type = 32768;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_TYPE_SAVE: perf_branch_sample_type = 65536;
-pub const perf_branch_sample_type_PERF_SAMPLE_BRANCH_MAX: perf_branch_sample_type = 131072;
-pub type perf_branch_sample_type = u32;
-pub const PERF_BR_UNKNOWN: _bindgen_ty_1 = 0;
-pub const PERF_BR_COND: _bindgen_ty_1 = 1;
-pub const PERF_BR_UNCOND: _bindgen_ty_1 = 2;
-pub const PERF_BR_IND: _bindgen_ty_1 = 3;
-pub const PERF_BR_CALL: _bindgen_ty_1 = 4;
-pub const PERF_BR_IND_CALL: _bindgen_ty_1 = 5;
-pub const PERF_BR_RET: _bindgen_ty_1 = 6;
-pub const PERF_BR_SYSCALL: _bindgen_ty_1 = 7;
-pub const PERF_BR_SYSRET: _bindgen_ty_1 = 8;
-pub const PERF_BR_COND_CALL: _bindgen_ty_1 = 9;
-pub const PERF_BR_COND_RET: _bindgen_ty_1 = 10;
-pub const PERF_BR_MAX: _bindgen_ty_1 = 11;
-pub type _bindgen_ty_1 = u32;
-pub const perf_sample_regs_abi_PERF_SAMPLE_REGS_ABI_NONE: perf_sample_regs_abi = 0;
-pub const perf_sample_regs_abi_PERF_SAMPLE_REGS_ABI_32: perf_sample_regs_abi = 1;
-pub const perf_sample_regs_abi_PERF_SAMPLE_REGS_ABI_64: perf_sample_regs_abi = 2;
-pub type perf_sample_regs_abi = u32;
-pub const PERF_TXN_ELISION: _bindgen_ty_2 = 1;
-pub const PERF_TXN_TRANSACTION: _bindgen_ty_2 = 2;
-pub const PERF_TXN_SYNC: _bindgen_ty_2 = 4;
-pub const PERF_TXN_ASYNC: _bindgen_ty_2 = 8;
-pub const PERF_TXN_RETRY: _bindgen_ty_2 = 16;
-pub const PERF_TXN_CONFLICT: _bindgen_ty_2 = 32;
-pub const PERF_TXN_CAPACITY_WRITE: _bindgen_ty_2 = 64;
-pub const PERF_TXN_CAPACITY_READ: _bindgen_ty_2 = 128;
-pub const PERF_TXN_MAX: _bindgen_ty_2 = 256;
-pub const PERF_TXN_ABORT_MASK: _bindgen_ty_2 = 18446744069414584320;
-pub const PERF_TXN_ABORT_SHIFT: _bindgen_ty_2 = 32;
-pub type _bindgen_ty_2 = u64;
-pub const perf_event_read_format_PERF_FORMAT_TOTAL_TIME_ENABLED: perf_event_read_format = 1;
-pub const perf_event_read_format_PERF_FORMAT_TOTAL_TIME_RUNNING: perf_event_read_format = 2;
-pub const perf_event_read_format_PERF_FORMAT_ID: perf_event_read_format = 4;
-pub const perf_event_read_format_PERF_FORMAT_GROUP: perf_event_read_format = 8;
-pub const perf_event_read_format_PERF_FORMAT_MAX: perf_event_read_format = 16;
-pub type perf_event_read_format = u32;
+pub const PERF_TYPE_HARDWARE: perf_type_id = 0;
+pub const PERF_TYPE_SOFTWARE: perf_type_id = 1;
+pub const PERF_TYPE_TRACEPOINT: perf_type_id = 2;
+pub const PERF_TYPE_HW_CACHE: perf_type_id = 3;
+pub const PERF_TYPE_RAW: perf_type_id = 4;
+pub const PERF_TYPE_BREAKPOINT: perf_type_id = 5;
+pub const PERF_TYPE_MAX: perf_type_id = 6;
+pub type perf_type_id = ::std::os::raw::c_uint;
+pub const PERF_COUNT_HW_CPU_CYCLES: perf_hw_id = 0;
+pub const PERF_COUNT_HW_INSTRUCTIONS: perf_hw_id = 1;
+pub const PERF_COUNT_HW_CACHE_REFERENCES: perf_hw_id = 2;
+pub const PERF_COUNT_HW_CACHE_MISSES: perf_hw_id = 3;
+pub const PERF_COUNT_HW_BRANCH_INSTRUCTIONS: perf_hw_id = 4;
+pub const PERF_COUNT_HW_BRANCH_MISSES: perf_hw_id = 5;
+pub const PERF_COUNT_HW_BUS_CYCLES: perf_hw_id = 6;
+pub const PERF_COUNT_HW_STALLED_CYCLES_FRONTEND: perf_hw_id = 7;
+pub const PERF_COUNT_HW_STALLED_CYCLES_BACKEND: perf_hw_id = 8;
+pub const PERF_COUNT_HW_REF_CPU_CYCLES: perf_hw_id = 9;
+pub const PERF_COUNT_HW_MAX: perf_hw_id = 10;
+pub type perf_hw_id = ::std::os::raw::c_uint;
+pub const PERF_COUNT_HW_CACHE_L1D: perf_hw_cache_id = 0;
+pub const PERF_COUNT_HW_CACHE_L1I: perf_hw_cache_id = 1;
+pub const PERF_COUNT_HW_CACHE_LL: perf_hw_cache_id = 2;
+pub const PERF_COUNT_HW_CACHE_DTLB: perf_hw_cache_id = 3;
+pub const PERF_COUNT_HW_CACHE_ITLB: perf_hw_cache_id = 4;
+pub const PERF_COUNT_HW_CACHE_BPU: perf_hw_cache_id = 5;
+pub const PERF_COUNT_HW_CACHE_NODE: perf_hw_cache_id = 6;
+pub const PERF_COUNT_HW_CACHE_MAX: perf_hw_cache_id = 7;
+pub type perf_hw_cache_id = ::std::os::raw::c_uint;
+pub const PERF_COUNT_HW_CACHE_OP_READ: perf_hw_cache_op_id = 0;
+pub const PERF_COUNT_HW_CACHE_OP_WRITE: perf_hw_cache_op_id = 1;
+pub const PERF_COUNT_HW_CACHE_OP_PREFETCH: perf_hw_cache_op_id = 2;
+pub const PERF_COUNT_HW_CACHE_OP_MAX: perf_hw_cache_op_id = 3;
+pub type perf_hw_cache_op_id = ::std::os::raw::c_uint;
+pub const PERF_COUNT_HW_CACHE_RESULT_ACCESS: perf_hw_cache_op_result_id = 0;
+pub const PERF_COUNT_HW_CACHE_RESULT_MISS: perf_hw_cache_op_result_id = 1;
+pub const PERF_COUNT_HW_CACHE_RESULT_MAX: perf_hw_cache_op_result_id = 2;
+pub type perf_hw_cache_op_result_id = ::std::os::raw::c_uint;
+pub const PERF_COUNT_SW_CPU_CLOCK: perf_sw_ids = 0;
+pub const PERF_COUNT_SW_TASK_CLOCK: perf_sw_ids = 1;
+pub const PERF_COUNT_SW_PAGE_FAULTS: perf_sw_ids = 2;
+pub const PERF_COUNT_SW_CONTEXT_SWITCHES: perf_sw_ids = 3;
+pub const PERF_COUNT_SW_CPU_MIGRATIONS: perf_sw_ids = 4;
+pub const PERF_COUNT_SW_PAGE_FAULTS_MIN: perf_sw_ids = 5;
+pub const PERF_COUNT_SW_PAGE_FAULTS_MAJ: perf_sw_ids = 6;
+pub const PERF_COUNT_SW_ALIGNMENT_FAULTS: perf_sw_ids = 7;
+pub const PERF_COUNT_SW_EMULATION_FAULTS: perf_sw_ids = 8;
+pub const PERF_COUNT_SW_DUMMY: perf_sw_ids = 9;
+pub const PERF_COUNT_SW_BPF_OUTPUT: perf_sw_ids = 10;
+pub const PERF_COUNT_SW_CGROUP_SWITCHES: perf_sw_ids = 11;
+pub const PERF_COUNT_SW_MAX: perf_sw_ids = 12;
+pub type perf_sw_ids = ::std::os::raw::c_uint;
+pub const PERF_SAMPLE_IP: perf_event_sample_format = 1;
+pub const PERF_SAMPLE_TID: perf_event_sample_format = 2;
+pub const PERF_SAMPLE_TIME: perf_event_sample_format = 4;
+pub const PERF_SAMPLE_ADDR: perf_event_sample_format = 8;
+pub const PERF_SAMPLE_READ: perf_event_sample_format = 16;
+pub const PERF_SAMPLE_CALLCHAIN: perf_event_sample_format = 32;
+pub const PERF_SAMPLE_ID: perf_event_sample_format = 64;
+pub const PERF_SAMPLE_CPU: perf_event_sample_format = 128;
+pub const PERF_SAMPLE_PERIOD: perf_event_sample_format = 256;
+pub const PERF_SAMPLE_STREAM_ID: perf_event_sample_format = 512;
+pub const PERF_SAMPLE_RAW: perf_event_sample_format = 1024;
+pub const PERF_SAMPLE_BRANCH_STACK: perf_event_sample_format = 2048;
+pub const PERF_SAMPLE_REGS_USER: perf_event_sample_format = 4096;
+pub const PERF_SAMPLE_STACK_USER: perf_event_sample_format = 8192;
+pub const PERF_SAMPLE_WEIGHT: perf_event_sample_format = 16384;
+pub const PERF_SAMPLE_DATA_SRC: perf_event_sample_format = 32768;
+pub const PERF_SAMPLE_IDENTIFIER: perf_event_sample_format = 65536;
+pub const PERF_SAMPLE_TRANSACTION: perf_event_sample_format = 131072;
+pub const PERF_SAMPLE_REGS_INTR: perf_event_sample_format = 262144;
+pub const PERF_SAMPLE_PHYS_ADDR: perf_event_sample_format = 524288;
+pub const PERF_SAMPLE_AUX: perf_event_sample_format = 1048576;
+pub const PERF_SAMPLE_CGROUP: perf_event_sample_format = 2097152;
+pub const PERF_SAMPLE_DATA_PAGE_SIZE: perf_event_sample_format = 4194304;
+pub const PERF_SAMPLE_CODE_PAGE_SIZE: perf_event_sample_format = 8388608;
+pub const PERF_SAMPLE_WEIGHT_STRUCT: perf_event_sample_format = 16777216;
+pub const PERF_SAMPLE_MAX: perf_event_sample_format = 33554432;
+pub const __PERF_SAMPLE_CALLCHAIN_EARLY: perf_event_sample_format = 9223372036854775808;
+pub type perf_event_sample_format = ::std::os::raw::c_ulong;
+pub const PERF_SAMPLE_BRANCH_USER_SHIFT: perf_branch_sample_type_shift = 0;
+pub const PERF_SAMPLE_BRANCH_KERNEL_SHIFT: perf_branch_sample_type_shift = 1;
+pub const PERF_SAMPLE_BRANCH_HV_SHIFT: perf_branch_sample_type_shift = 2;
+pub const PERF_SAMPLE_BRANCH_ANY_SHIFT: perf_branch_sample_type_shift = 3;
+pub const PERF_SAMPLE_BRANCH_ANY_CALL_SHIFT: perf_branch_sample_type_shift = 4;
+pub const PERF_SAMPLE_BRANCH_ANY_RETURN_SHIFT: perf_branch_sample_type_shift = 5;
+pub const PERF_SAMPLE_BRANCH_IND_CALL_SHIFT: perf_branch_sample_type_shift = 6;
+pub const PERF_SAMPLE_BRANCH_ABORT_TX_SHIFT: perf_branch_sample_type_shift = 7;
+pub const PERF_SAMPLE_BRANCH_IN_TX_SHIFT: perf_branch_sample_type_shift = 8;
+pub const PERF_SAMPLE_BRANCH_NO_TX_SHIFT: perf_branch_sample_type_shift = 9;
+pub const PERF_SAMPLE_BRANCH_COND_SHIFT: perf_branch_sample_type_shift = 10;
+pub const PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT: perf_branch_sample_type_shift = 11;
+pub const PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT: perf_branch_sample_type_shift = 12;
+pub const PERF_SAMPLE_BRANCH_CALL_SHIFT: perf_branch_sample_type_shift = 13;
+pub const PERF_SAMPLE_BRANCH_NO_FLAGS_SHIFT: perf_branch_sample_type_shift = 14;
+pub const PERF_SAMPLE_BRANCH_NO_CYCLES_SHIFT: perf_branch_sample_type_shift = 15;
+pub const PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT: perf_branch_sample_type_shift = 16;
+pub const PERF_SAMPLE_BRANCH_HW_INDEX_SHIFT: perf_branch_sample_type_shift = 17;
+pub const PERF_SAMPLE_BRANCH_MAX_SHIFT: perf_branch_sample_type_shift = 18;
+pub type perf_branch_sample_type_shift = ::std::os::raw::c_uint;
+pub const PERF_SAMPLE_BRANCH_USER: perf_branch_sample_type = 1;
+pub const PERF_SAMPLE_BRANCH_KERNEL: perf_branch_sample_type = 2;
+pub const PERF_SAMPLE_BRANCH_HV: perf_branch_sample_type = 4;
+pub const PERF_SAMPLE_BRANCH_ANY: perf_branch_sample_type = 8;
+pub const PERF_SAMPLE_BRANCH_ANY_CALL: perf_branch_sample_type = 16;
+pub const PERF_SAMPLE_BRANCH_ANY_RETURN: perf_branch_sample_type = 32;
+pub const PERF_SAMPLE_BRANCH_IND_CALL: perf_branch_sample_type = 64;
+pub const PERF_SAMPLE_BRANCH_ABORT_TX: perf_branch_sample_type = 128;
+pub const PERF_SAMPLE_BRANCH_IN_TX: perf_branch_sample_type = 256;
+pub const PERF_SAMPLE_BRANCH_NO_TX: perf_branch_sample_type = 512;
+pub const PERF_SAMPLE_BRANCH_COND: perf_branch_sample_type = 1024;
+pub const PERF_SAMPLE_BRANCH_CALL_STACK: perf_branch_sample_type = 2048;
+pub const PERF_SAMPLE_BRANCH_IND_JUMP: perf_branch_sample_type = 4096;
+pub const PERF_SAMPLE_BRANCH_CALL: perf_branch_sample_type = 8192;
+pub const PERF_SAMPLE_BRANCH_NO_FLAGS: perf_branch_sample_type = 16384;
+pub const PERF_SAMPLE_BRANCH_NO_CYCLES: perf_branch_sample_type = 32768;
+pub const PERF_SAMPLE_BRANCH_TYPE_SAVE: perf_branch_sample_type = 65536;
+pub const PERF_SAMPLE_BRANCH_HW_INDEX: perf_branch_sample_type = 131072;
+pub const PERF_SAMPLE_BRANCH_MAX: perf_branch_sample_type = 262144;
+pub type perf_branch_sample_type = ::std::os::raw::c_uint;
+pub const PERF_BR_UNKNOWN: ::std::os::raw::c_uint = 0;
+pub const PERF_BR_COND: ::std::os::raw::c_uint = 1;
+pub const PERF_BR_UNCOND: ::std::os::raw::c_uint = 2;
+pub const PERF_BR_IND: ::std::os::raw::c_uint = 3;
+pub const PERF_BR_CALL: ::std::os::raw::c_uint = 4;
+pub const PERF_BR_IND_CALL: ::std::os::raw::c_uint = 5;
+pub const PERF_BR_RET: ::std::os::raw::c_uint = 6;
+pub const PERF_BR_SYSCALL: ::std::os::raw::c_uint = 7;
+pub const PERF_BR_SYSRET: ::std::os::raw::c_uint = 8;
+pub const PERF_BR_COND_CALL: ::std::os::raw::c_uint = 9;
+pub const PERF_BR_COND_RET: ::std::os::raw::c_uint = 10;
+pub const PERF_BR_ERET: ::std::os::raw::c_uint = 11;
+pub const PERF_BR_IRQ: ::std::os::raw::c_uint = 12;
+pub const PERF_BR_MAX: ::std::os::raw::c_uint = 13;
+pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
+pub const PERF_SAMPLE_REGS_ABI_NONE: perf_sample_regs_abi = 0;
+pub const PERF_SAMPLE_REGS_ABI_32: perf_sample_regs_abi = 1;
+pub const PERF_SAMPLE_REGS_ABI_64: perf_sample_regs_abi = 2;
+pub type perf_sample_regs_abi = ::std::os::raw::c_uint;
+pub const PERF_TXN_ELISION: ::std::os::raw::c_ulong = 1;
+pub const PERF_TXN_TRANSACTION: ::std::os::raw::c_ulong = 2;
+pub const PERF_TXN_SYNC: ::std::os::raw::c_ulong = 4;
+pub const PERF_TXN_ASYNC: ::std::os::raw::c_ulong = 8;
+pub const PERF_TXN_RETRY: ::std::os::raw::c_ulong = 16;
+pub const PERF_TXN_CONFLICT: ::std::os::raw::c_ulong = 32;
+pub const PERF_TXN_CAPACITY_WRITE: ::std::os::raw::c_ulong = 64;
+pub const PERF_TXN_CAPACITY_READ: ::std::os::raw::c_ulong = 128;
+pub const PERF_TXN_MAX: ::std::os::raw::c_ulong = 256;
+pub const PERF_TXN_ABORT_MASK: ::std::os::raw::c_ulong = 18446744069414584320;
+pub const PERF_TXN_ABORT_SHIFT: ::std::os::raw::c_ulong = 32;
+pub type _bindgen_ty_2 = ::std::os::raw::c_ulong;
+pub const PERF_FORMAT_TOTAL_TIME_ENABLED: perf_event_read_format = 1;
+pub const PERF_FORMAT_TOTAL_TIME_RUNNING: perf_event_read_format = 2;
+pub const PERF_FORMAT_ID: perf_event_read_format = 4;
+pub const PERF_FORMAT_GROUP: perf_event_read_format = 8;
+pub const PERF_FORMAT_MAX: perf_event_read_format = 16;
+pub type perf_event_read_format = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct perf_event_attr {
@@ -875,7 +894,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,
@@ -890,13 +910,13 @@ pub struct perf_event_attr {
pub __reserved_2: __u16,
pub aux_sample_size: __u32,
pub __reserved_3: __u32,
+ pub sig_data: __u64,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union perf_event_attr__bindgen_ty_1 {
pub sample_period: __u64,
pub sample_freq: __u64,
- _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_perf_event_attr__bindgen_ty_1() {
@@ -939,7 +959,11 @@ fn bindgen_test_layout_perf_event_attr__bindgen_ty_1() {
}
impl Default for perf_event_attr__bindgen_ty_1 {
fn default() -> Self {
- unsafe { ::std::mem::zeroed() }
+ let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
+ unsafe {
+ ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
+ s.assume_init()
+ }
}
}
#[repr(C)]
@@ -947,7 +971,6 @@ impl Default for perf_event_attr__bindgen_ty_1 {
pub union perf_event_attr__bindgen_ty_2 {
pub wakeup_events: __u32,
pub wakeup_watermark: __u32,
- _bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_perf_event_attr__bindgen_ty_2() {
@@ -990,7 +1013,11 @@ fn bindgen_test_layout_perf_event_attr__bindgen_ty_2() {
}
impl Default for perf_event_attr__bindgen_ty_2 {
fn default() -> Self {
- unsafe { ::std::mem::zeroed() }
+ let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
+ unsafe {
+ ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
+ s.assume_init()
+ }
}
}
#[repr(C)]
@@ -1000,7 +1027,6 @@ pub union perf_event_attr__bindgen_ty_3 {
pub kprobe_func: __u64,
pub uprobe_path: __u64,
pub config1: __u64,
- _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_perf_event_attr__bindgen_ty_3() {
@@ -1067,7 +1093,11 @@ fn bindgen_test_layout_perf_event_attr__bindgen_ty_3() {
}
impl Default for perf_event_attr__bindgen_ty_3 {
fn default() -> Self {
- unsafe { ::std::mem::zeroed() }
+ let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
+ unsafe {
+ ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
+ s.assume_init()
+ }
}
}
#[repr(C)]
@@ -1077,7 +1107,6 @@ pub union perf_event_attr__bindgen_ty_4 {
pub kprobe_addr: __u64,
pub probe_offset: __u64,
pub config2: __u64,
- _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_perf_event_attr__bindgen_ty_4() {
@@ -1144,14 +1173,18 @@ fn bindgen_test_layout_perf_event_attr__bindgen_ty_4() {
}
impl Default for perf_event_attr__bindgen_ty_4 {
fn default() -> Self {
- unsafe { ::std::mem::zeroed() }
+ let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
+ unsafe {
+ ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
+ s.assume_init()
+ }
}
}
#[test]
fn bindgen_test_layout_perf_event_attr() {
assert_eq!(
::std::mem::size_of::<perf_event_attr>(),
- 120usize,
+ 128usize,
concat!("Size of: ", stringify!(perf_event_attr))
);
assert_eq!(
@@ -1329,10 +1362,24 @@ fn bindgen_test_layout_perf_event_attr() {
stringify!(__reserved_3)
)
);
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<perf_event_attr>())).sig_data as *const _ as usize },
+ 120usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(perf_event_attr),
+ "::",
+ stringify!(sig_data)
+ )
+ );
}
impl Default for perf_event_attr {
fn default() -> Self {
- unsafe { ::std::mem::zeroed() }
+ let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
+ unsafe {
+ ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
+ s.assume_init()
+ }
}
}
impl perf_event_attr {
@@ -1678,14 +1725,80 @@ 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(32usize, 32u8) as u64) }
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 26u8) as u64) }
}
#[inline]
pub fn set___reserved_1(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
- self._bitfield_1.set(32usize, 32u8, val as u64)
+ self._bitfield_1.set(38usize, 26u8, val as u64)
}
}
#[inline]
@@ -1721,10 +1834,15 @@ 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], 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
@@ -1851,7 +1969,31 @@ impl perf_event_attr {
let aux_output: u64 = unsafe { ::std::mem::transmute(aux_output) };
aux_output as u64
});
- __bindgen_bitfield_unit.set(32usize, 32u8, {
+ __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, {
let __reserved_1: u64 = unsafe { ::std::mem::transmute(__reserved_1) };
__reserved_1 as u64
});
@@ -1908,8 +2050,8 @@ fn bindgen_test_layout_perf_event_query_bpf() {
)
);
}
-pub const perf_event_ioc_flags_PERF_IOC_FLAG_GROUP: perf_event_ioc_flags = 1;
-pub type perf_event_ioc_flags = u32;
+pub const PERF_IOC_FLAG_GROUP: perf_event_ioc_flags = 1;
+pub type perf_event_ioc_flags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct perf_event_mmap_page {
@@ -1927,7 +2069,10 @@ pub struct perf_event_mmap_page {
pub time_offset: __u64,
pub time_zero: __u64,
pub size: __u32,
- pub __reserved: [__u8; 948usize],
+ pub __reserved_1: __u32,
+ pub time_cycles: __u64,
+ pub time_mask: __u64,
+ pub __reserved: [__u8; 928usize],
pub data_head: __u64,
pub data_tail: __u64,
pub data_offset: __u64,
@@ -1942,13 +2087,13 @@ pub struct perf_event_mmap_page {
pub union perf_event_mmap_page__bindgen_ty_1 {
pub capabilities: __u64,
pub __bindgen_anon_1: perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1,
- _bindgen_union_align: u64,
}
#[repr(C)]
#[repr(align(8))]
#[derive(Debug, Default, 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]>,
}
#[test]
fn bindgen_test_layout_perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1() {
@@ -2026,14 +2171,25 @@ 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(5usize, 59u8) as u64) }
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 58u8) as u64) }
}
#[inline]
pub fn set_cap_____res(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
- self._bitfield_1.set(5usize, 59u8, val as u64)
+ self._bitfield_1.set(6usize, 58u8, val as u64)
}
}
#[inline]
@@ -2043,10 +2199,10 @@ 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], 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
@@ -2068,7 +2224,11 @@ 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, 59u8, {
+ __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, {
let cap_____res: u64 = unsafe { ::std::mem::transmute(cap_____res) };
cap_____res as u64
});
@@ -2106,7 +2266,11 @@ fn bindgen_test_layout_perf_event_mmap_page__bindgen_ty_1() {
}
impl Default for perf_event_mmap_page__bindgen_ty_1 {
fn default() -> Self {
- unsafe { ::std::mem::zeroed() }
+ let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
+ unsafe {
+ ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
+ s.assume_init()
+ }
}
}
#[test]
@@ -2260,12 +2424,46 @@ fn bindgen_test_layout_perf_event_mmap_page() {
)
);
assert_eq!(
- unsafe { &(*(::std::ptr::null::<perf_event_mmap_page>())).__reserved as *const _ as usize },
+ unsafe {
+ &(*(::std::ptr::null::<perf_event_mmap_page>())).__reserved_1 as *const _ as usize
+ },
76usize,
concat!(
"Offset of field: ",
stringify!(perf_event_mmap_page),
"::",
+ stringify!(__reserved_1)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<perf_event_mmap_page>())).time_cycles as *const _ as usize
+ },
+ 80usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(perf_event_mmap_page),
+ "::",
+ stringify!(time_cycles)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<perf_event_mmap_page>())).time_mask as *const _ as usize },
+ 88usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(perf_event_mmap_page),
+ "::",
+ stringify!(time_mask)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<perf_event_mmap_page>())).__reserved as *const _ as usize },
+ 96usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(perf_event_mmap_page),
+ "::",
stringify!(__reserved)
)
);
@@ -2354,7 +2552,11 @@ fn bindgen_test_layout_perf_event_mmap_page() {
}
impl Default for perf_event_mmap_page {
fn default() -> Self {
- unsafe { ::std::mem::zeroed() }
+ let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
+ unsafe {
+ ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
+ s.assume_init()
+ }
}
}
#[repr(C)]
@@ -2446,66 +2648,68 @@ fn bindgen_test_layout_perf_ns_link_info() {
)
);
}
-pub const NET_NS_INDEX: _bindgen_ty_3 = 0;
-pub const UTS_NS_INDEX: _bindgen_ty_3 = 1;
-pub const IPC_NS_INDEX: _bindgen_ty_3 = 2;
-pub const PID_NS_INDEX: _bindgen_ty_3 = 3;
-pub const USER_NS_INDEX: _bindgen_ty_3 = 4;
-pub const MNT_NS_INDEX: _bindgen_ty_3 = 5;
-pub const CGROUP_NS_INDEX: _bindgen_ty_3 = 6;
-pub const NR_NAMESPACES: _bindgen_ty_3 = 7;
-pub type _bindgen_ty_3 = u32;
-pub const perf_event_type_PERF_RECORD_MMAP: perf_event_type = 1;
-pub const perf_event_type_PERF_RECORD_LOST: perf_event_type = 2;
-pub const perf_event_type_PERF_RECORD_COMM: perf_event_type = 3;
-pub const perf_event_type_PERF_RECORD_EXIT: perf_event_type = 4;
-pub const perf_event_type_PERF_RECORD_THROTTLE: perf_event_type = 5;
-pub const perf_event_type_PERF_RECORD_UNTHROTTLE: perf_event_type = 6;
-pub const perf_event_type_PERF_RECORD_FORK: perf_event_type = 7;
-pub const perf_event_type_PERF_RECORD_READ: perf_event_type = 8;
-pub const perf_event_type_PERF_RECORD_SAMPLE: perf_event_type = 9;
-pub const perf_event_type_PERF_RECORD_MMAP2: perf_event_type = 10;
-pub const perf_event_type_PERF_RECORD_AUX: perf_event_type = 11;
-pub const perf_event_type_PERF_RECORD_ITRACE_START: perf_event_type = 12;
-pub const perf_event_type_PERF_RECORD_LOST_SAMPLES: perf_event_type = 13;
-pub const perf_event_type_PERF_RECORD_SWITCH: perf_event_type = 14;
-pub const perf_event_type_PERF_RECORD_SWITCH_CPU_WIDE: perf_event_type = 15;
-pub const perf_event_type_PERF_RECORD_NAMESPACES: perf_event_type = 16;
-pub const perf_event_type_PERF_RECORD_KSYMBOL: perf_event_type = 17;
-pub const perf_event_type_PERF_RECORD_BPF_EVENT: perf_event_type = 18;
-pub const perf_event_type_PERF_RECORD_MAX: perf_event_type = 19;
-pub type perf_event_type = u32;
-pub const perf_record_ksymbol_type_PERF_RECORD_KSYMBOL_TYPE_UNKNOWN: perf_record_ksymbol_type = 0;
-pub const perf_record_ksymbol_type_PERF_RECORD_KSYMBOL_TYPE_BPF: perf_record_ksymbol_type = 1;
-pub const perf_record_ksymbol_type_PERF_RECORD_KSYMBOL_TYPE_MAX: perf_record_ksymbol_type = 2;
-pub type perf_record_ksymbol_type = u32;
-pub const perf_bpf_event_type_PERF_BPF_EVENT_UNKNOWN: perf_bpf_event_type = 0;
-pub const perf_bpf_event_type_PERF_BPF_EVENT_PROG_LOAD: perf_bpf_event_type = 1;
-pub const perf_bpf_event_type_PERF_BPF_EVENT_PROG_UNLOAD: perf_bpf_event_type = 2;
-pub const perf_bpf_event_type_PERF_BPF_EVENT_MAX: perf_bpf_event_type = 3;
-pub type perf_bpf_event_type = u32;
-pub const perf_callchain_context_PERF_CONTEXT_HV: perf_callchain_context = 18446744073709551584;
-pub const perf_callchain_context_PERF_CONTEXT_KERNEL: perf_callchain_context = 18446744073709551488;
-pub const perf_callchain_context_PERF_CONTEXT_USER: perf_callchain_context = 18446744073709551104;
-pub const perf_callchain_context_PERF_CONTEXT_GUEST: perf_callchain_context = 18446744073709549568;
-pub const perf_callchain_context_PERF_CONTEXT_GUEST_KERNEL: perf_callchain_context =
- 18446744073709549440;
-pub const perf_callchain_context_PERF_CONTEXT_GUEST_USER: perf_callchain_context =
- 18446744073709549056;
-pub const perf_callchain_context_PERF_CONTEXT_MAX: perf_callchain_context = 18446744073709547521;
-pub type perf_callchain_context = u64;
+pub const NET_NS_INDEX: ::std::os::raw::c_uint = 0;
+pub const UTS_NS_INDEX: ::std::os::raw::c_uint = 1;
+pub const IPC_NS_INDEX: ::std::os::raw::c_uint = 2;
+pub const PID_NS_INDEX: ::std::os::raw::c_uint = 3;
+pub const USER_NS_INDEX: ::std::os::raw::c_uint = 4;
+pub const MNT_NS_INDEX: ::std::os::raw::c_uint = 5;
+pub const CGROUP_NS_INDEX: ::std::os::raw::c_uint = 6;
+pub const NR_NAMESPACES: ::std::os::raw::c_uint = 7;
+pub type _bindgen_ty_3 = ::std::os::raw::c_uint;
+pub const PERF_RECORD_MMAP: perf_event_type = 1;
+pub const PERF_RECORD_LOST: perf_event_type = 2;
+pub const PERF_RECORD_COMM: perf_event_type = 3;
+pub const PERF_RECORD_EXIT: perf_event_type = 4;
+pub const PERF_RECORD_THROTTLE: perf_event_type = 5;
+pub const PERF_RECORD_UNTHROTTLE: perf_event_type = 6;
+pub const PERF_RECORD_FORK: perf_event_type = 7;
+pub const PERF_RECORD_READ: perf_event_type = 8;
+pub const PERF_RECORD_SAMPLE: perf_event_type = 9;
+pub const PERF_RECORD_MMAP2: perf_event_type = 10;
+pub const PERF_RECORD_AUX: perf_event_type = 11;
+pub const PERF_RECORD_ITRACE_START: perf_event_type = 12;
+pub const PERF_RECORD_LOST_SAMPLES: perf_event_type = 13;
+pub const PERF_RECORD_SWITCH: perf_event_type = 14;
+pub const PERF_RECORD_SWITCH_CPU_WIDE: perf_event_type = 15;
+pub const PERF_RECORD_NAMESPACES: perf_event_type = 16;
+pub const PERF_RECORD_KSYMBOL: perf_event_type = 17;
+pub const PERF_RECORD_BPF_EVENT: perf_event_type = 18;
+pub const PERF_RECORD_CGROUP: perf_event_type = 19;
+pub const PERF_RECORD_TEXT_POKE: perf_event_type = 20;
+pub const PERF_RECORD_AUX_OUTPUT_HW_ID: perf_event_type = 21;
+pub const PERF_RECORD_MAX: perf_event_type = 22;
+pub type perf_event_type = ::std::os::raw::c_uint;
+pub const PERF_RECORD_KSYMBOL_TYPE_UNKNOWN: perf_record_ksymbol_type = 0;
+pub const PERF_RECORD_KSYMBOL_TYPE_BPF: perf_record_ksymbol_type = 1;
+pub const PERF_RECORD_KSYMBOL_TYPE_OOL: perf_record_ksymbol_type = 2;
+pub const PERF_RECORD_KSYMBOL_TYPE_MAX: perf_record_ksymbol_type = 3;
+pub type perf_record_ksymbol_type = ::std::os::raw::c_uint;
+pub const PERF_BPF_EVENT_UNKNOWN: perf_bpf_event_type = 0;
+pub const PERF_BPF_EVENT_PROG_LOAD: perf_bpf_event_type = 1;
+pub const PERF_BPF_EVENT_PROG_UNLOAD: perf_bpf_event_type = 2;
+pub const PERF_BPF_EVENT_MAX: perf_bpf_event_type = 3;
+pub type perf_bpf_event_type = ::std::os::raw::c_uint;
+pub const PERF_CONTEXT_HV: perf_callchain_context = 18446744073709551584;
+pub const PERF_CONTEXT_KERNEL: perf_callchain_context = 18446744073709551488;
+pub const PERF_CONTEXT_USER: perf_callchain_context = 18446744073709551104;
+pub const PERF_CONTEXT_GUEST: perf_callchain_context = 18446744073709549568;
+pub const PERF_CONTEXT_GUEST_KERNEL: perf_callchain_context = 18446744073709549440;
+pub const PERF_CONTEXT_GUEST_USER: perf_callchain_context = 18446744073709549056;
+pub const PERF_CONTEXT_MAX: perf_callchain_context = 18446744073709547521;
+pub type perf_callchain_context = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union perf_mem_data_src {
pub val: __u64,
pub __bindgen_anon_1: perf_mem_data_src__bindgen_ty_1,
- _bindgen_union_align: u64,
}
#[repr(C)]
#[repr(align(8))]
#[derive(Debug, Default, Copy, Clone)]
pub struct perf_mem_data_src__bindgen_ty_1 {
- pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize], u32>,
+ pub _bitfield_align_1: [u32; 0],
+ pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
}
#[test]
fn bindgen_test_layout_perf_mem_data_src__bindgen_ty_1() {
@@ -2610,14 +2814,36 @@ impl perf_mem_data_src__bindgen_ty_1 {
}
}
#[inline]
+ pub fn mem_blk(&self) -> __u64 {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 3u8) as u64) }
+ }
+ #[inline]
+ pub fn set_mem_blk(&mut self, val: __u64) {
+ unsafe {
+ let val: u64 = ::std::mem::transmute(val);
+ self._bitfield_1.set(40usize, 3u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mem_hops(&self) -> __u64 {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(43usize, 3u8) as u64) }
+ }
+ #[inline]
+ pub fn set_mem_hops(&mut self, val: __u64) {
+ unsafe {
+ let val: u64 = ::std::mem::transmute(val);
+ self._bitfield_1.set(43usize, 3u8, val as u64)
+ }
+ }
+ #[inline]
pub fn mem_rsvd(&self) -> __u64 {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 24u8) as u64) }
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(46usize, 18u8) as u64) }
}
#[inline]
pub fn set_mem_rsvd(&mut self, val: __u64) {
unsafe {
let val: u64 = ::std::mem::transmute(val);
- self._bitfield_1.set(40usize, 24u8, val as u64)
+ self._bitfield_1.set(46usize, 18u8, val as u64)
}
}
#[inline]
@@ -2630,10 +2856,11 @@ impl perf_mem_data_src__bindgen_ty_1 {
mem_lvl_num: __u64,
mem_remote: __u64,
mem_snoopx: __u64,
+ mem_blk: __u64,
+ mem_hops: __u64,
mem_rsvd: __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, 5u8, {
let mem_op: u64 = unsafe { ::std::mem::transmute(mem_op) };
mem_op as u64
@@ -2666,7 +2893,15 @@ impl perf_mem_data_src__bindgen_ty_1 {
let mem_snoopx: u64 = unsafe { ::std::mem::transmute(mem_snoopx) };
mem_snoopx as u64
});
- __bindgen_bitfield_unit.set(40usize, 24u8, {
+ __bindgen_bitfield_unit.set(40usize, 3u8, {
+ let mem_blk: u64 = unsafe { ::std::mem::transmute(mem_blk) };
+ mem_blk as u64
+ });
+ __bindgen_bitfield_unit.set(43usize, 3u8, {
+ let mem_hops: u64 = unsafe { ::std::mem::transmute(mem_hops) };
+ mem_hops as u64
+ });
+ __bindgen_bitfield_unit.set(46usize, 18u8, {
let mem_rsvd: u64 = unsafe { ::std::mem::transmute(mem_rsvd) };
mem_rsvd as u64
});
@@ -2698,7 +2933,11 @@ fn bindgen_test_layout_perf_mem_data_src() {
}
impl Default for perf_mem_data_src {
fn default() -> Self {
- unsafe { ::std::mem::zeroed() }
+ let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
+ unsafe {
+ ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
+ s.assume_init()
+ }
}
}
#[repr(C)]
@@ -2706,7 +2945,8 @@ impl Default for perf_mem_data_src {
pub struct perf_branch_entry {
pub from: __u64,
pub to: __u64,
- pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize], u64>,
+ pub _bitfield_align_1: [u64; 0],
+ pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
}
#[test]
fn bindgen_test_layout_perf_branch_entry() {
@@ -2828,9 +3068,8 @@ impl perf_branch_entry {
cycles: __u64,
type_: __u64,
reserved: __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 mispred: u64 = unsafe { ::std::mem::transmute(mispred) };
mispred as u64
@@ -2862,36 +3101,134 @@ impl perf_branch_entry {
__bindgen_bitfield_unit
}
}
-pub const HW_BREAKPOINT_LEN_1: _bindgen_ty_4 = 1;
-pub const HW_BREAKPOINT_LEN_2: _bindgen_ty_4 = 2;
-pub const HW_BREAKPOINT_LEN_3: _bindgen_ty_4 = 3;
-pub const HW_BREAKPOINT_LEN_4: _bindgen_ty_4 = 4;
-pub const HW_BREAKPOINT_LEN_5: _bindgen_ty_4 = 5;
-pub const HW_BREAKPOINT_LEN_6: _bindgen_ty_4 = 6;
-pub const HW_BREAKPOINT_LEN_7: _bindgen_ty_4 = 7;
-pub const HW_BREAKPOINT_LEN_8: _bindgen_ty_4 = 8;
-pub type _bindgen_ty_4 = u32;
-pub const HW_BREAKPOINT_EMPTY: _bindgen_ty_5 = 0;
-pub const HW_BREAKPOINT_R: _bindgen_ty_5 = 1;
-pub const HW_BREAKPOINT_W: _bindgen_ty_5 = 2;
-pub const HW_BREAKPOINT_RW: _bindgen_ty_5 = 3;
-pub const HW_BREAKPOINT_X: _bindgen_ty_5 = 4;
-pub const HW_BREAKPOINT_INVALID: _bindgen_ty_5 = 7;
-pub type _bindgen_ty_5 = u32;
-pub const bp_type_idx_TYPE_INST: bp_type_idx = 0;
-pub const bp_type_idx_TYPE_DATA: bp_type_idx = 1;
-pub const bp_type_idx_TYPE_MAX: bp_type_idx = 2;
-pub type bp_type_idx = u32;
-pub const perf_event_ioctls_ENABLE: perf_event_ioctls = 9216;
-pub const perf_event_ioctls_DISABLE: perf_event_ioctls = 9217;
-pub const perf_event_ioctls_REFRESH: perf_event_ioctls = 9218;
-pub const perf_event_ioctls_RESET: perf_event_ioctls = 9219;
-pub const perf_event_ioctls_PERIOD: perf_event_ioctls = 1074275332;
-pub const perf_event_ioctls_SET_OUTPUT: perf_event_ioctls = 9221;
-pub const perf_event_ioctls_SET_FILTER: perf_event_ioctls = 1074275334;
-pub const perf_event_ioctls_ID: perf_event_ioctls = 2148017159;
-pub const perf_event_ioctls_SET_BPF: perf_event_ioctls = 1074013192;
-pub const perf_event_ioctls_PAUSE_OUTPUT: perf_event_ioctls = 1074013193;
-pub const perf_event_ioctls_QUERY_BPF: perf_event_ioctls = 3221758986;
-pub const perf_event_ioctls_MODIFY_ATTRIBUTES: perf_event_ioctls = 1074275339;
-pub type perf_event_ioctls = u32;
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union perf_sample_weight {
+ pub full: __u64,
+ pub __bindgen_anon_1: perf_sample_weight__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Debug, Default, Copy, Clone)]
+pub struct perf_sample_weight__bindgen_ty_1 {
+ pub var1_dw: __u32,
+ pub var2_w: __u16,
+ pub var3_w: __u16,
+}
+#[test]
+fn bindgen_test_layout_perf_sample_weight__bindgen_ty_1() {
+ assert_eq!(
+ ::std::mem::size_of::<perf_sample_weight__bindgen_ty_1>(),
+ 8usize,
+ concat!("Size of: ", stringify!(perf_sample_weight__bindgen_ty_1))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<perf_sample_weight__bindgen_ty_1>(),
+ 4usize,
+ concat!(
+ "Alignment of ",
+ stringify!(perf_sample_weight__bindgen_ty_1)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<perf_sample_weight__bindgen_ty_1>())).var1_dw as *const _
+ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(perf_sample_weight__bindgen_ty_1),
+ "::",
+ stringify!(var1_dw)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<perf_sample_weight__bindgen_ty_1>())).var2_w as *const _ as usize
+ },
+ 4usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(perf_sample_weight__bindgen_ty_1),
+ "::",
+ stringify!(var2_w)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<perf_sample_weight__bindgen_ty_1>())).var3_w as *const _ as usize
+ },
+ 6usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(perf_sample_weight__bindgen_ty_1),
+ "::",
+ stringify!(var3_w)
+ )
+ );
+}
+#[test]
+fn bindgen_test_layout_perf_sample_weight() {
+ assert_eq!(
+ ::std::mem::size_of::<perf_sample_weight>(),
+ 8usize,
+ concat!("Size of: ", stringify!(perf_sample_weight))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<perf_sample_weight>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(perf_sample_weight))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<perf_sample_weight>())).full as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(perf_sample_weight),
+ "::",
+ stringify!(full)
+ )
+ );
+}
+impl Default for perf_sample_weight {
+ fn default() -> Self {
+ let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
+ unsafe {
+ ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
+ s.assume_init()
+ }
+ }
+}
+pub const HW_BREAKPOINT_LEN_1: ::std::os::raw::c_uint = 1;
+pub const HW_BREAKPOINT_LEN_2: ::std::os::raw::c_uint = 2;
+pub const HW_BREAKPOINT_LEN_3: ::std::os::raw::c_uint = 3;
+pub const HW_BREAKPOINT_LEN_4: ::std::os::raw::c_uint = 4;
+pub const HW_BREAKPOINT_LEN_5: ::std::os::raw::c_uint = 5;
+pub const HW_BREAKPOINT_LEN_6: ::std::os::raw::c_uint = 6;
+pub const HW_BREAKPOINT_LEN_7: ::std::os::raw::c_uint = 7;
+pub const HW_BREAKPOINT_LEN_8: ::std::os::raw::c_uint = 8;
+pub type _bindgen_ty_4 = ::std::os::raw::c_uint;
+pub const HW_BREAKPOINT_EMPTY: ::std::os::raw::c_uint = 0;
+pub const HW_BREAKPOINT_R: ::std::os::raw::c_uint = 1;
+pub const HW_BREAKPOINT_W: ::std::os::raw::c_uint = 2;
+pub const HW_BREAKPOINT_RW: ::std::os::raw::c_uint = 3;
+pub const HW_BREAKPOINT_X: ::std::os::raw::c_uint = 4;
+pub const HW_BREAKPOINT_INVALID: ::std::os::raw::c_uint = 7;
+pub type _bindgen_ty_5 = ::std::os::raw::c_uint;
+pub const TYPE_INST: bp_type_idx = 0;
+pub const TYPE_DATA: bp_type_idx = 1;
+pub const TYPE_MAX: bp_type_idx = 2;
+pub type bp_type_idx = ::std::os::raw::c_uint;
+pub const ENABLE: perf_event_ioctls = 9216;
+pub const DISABLE: perf_event_ioctls = 9217;
+pub const REFRESH: perf_event_ioctls = 9218;
+pub const RESET: perf_event_ioctls = 9219;
+pub const PERIOD: perf_event_ioctls = 1074275332;
+pub const SET_OUTPUT: perf_event_ioctls = 9221;
+pub const SET_FILTER: perf_event_ioctls = 1074275334;
+pub const ID: perf_event_ioctls = 2148017159;
+pub const SET_BPF: perf_event_ioctls = 1074013192;
+pub const PAUSE_OUTPUT: perf_event_ioctls = 1074013193;
+pub const QUERY_BPF: perf_event_ioctls = 3221758986;
+pub const MODIFY_ATTRIBUTES: perf_event_ioctls = 1074275339;
+pub type perf_event_ioctls = ::std::os::raw::c_uint;