|
|
@ -131,6 +131,8 @@ pub const BPF_F_ANY_ALIGNMENT: u32 = 2;
|
|
|
|
pub const BPF_F_TEST_RND_HI32: u32 = 4;
|
|
|
|
pub const BPF_F_TEST_RND_HI32: u32 = 4;
|
|
|
|
pub const BPF_F_TEST_STATE_FREQ: u32 = 8;
|
|
|
|
pub const BPF_F_TEST_STATE_FREQ: u32 = 8;
|
|
|
|
pub const BPF_F_SLEEPABLE: u32 = 16;
|
|
|
|
pub const BPF_F_SLEEPABLE: u32 = 16;
|
|
|
|
|
|
|
|
pub const BPF_F_XDP_HAS_FRAGS: u32 = 32;
|
|
|
|
|
|
|
|
pub const BPF_F_KPROBE_MULTI_RETURN: u32 = 1;
|
|
|
|
pub const BPF_PSEUDO_MAP_FD: u32 = 1;
|
|
|
|
pub const BPF_PSEUDO_MAP_FD: u32 = 1;
|
|
|
|
pub const BPF_PSEUDO_MAP_IDX: u32 = 5;
|
|
|
|
pub const BPF_PSEUDO_MAP_IDX: u32 = 5;
|
|
|
|
pub const BPF_PSEUDO_MAP_VALUE: u32 = 2;
|
|
|
|
pub const BPF_PSEUDO_MAP_VALUE: u32 = 2;
|
|
|
@ -141,6 +143,7 @@ pub const BPF_PSEUDO_CALL: u32 = 1;
|
|
|
|
pub const BPF_PSEUDO_KFUNC_CALL: u32 = 2;
|
|
|
|
pub const BPF_PSEUDO_KFUNC_CALL: u32 = 2;
|
|
|
|
pub const BPF_F_QUERY_EFFECTIVE: u32 = 1;
|
|
|
|
pub const BPF_F_QUERY_EFFECTIVE: u32 = 1;
|
|
|
|
pub const BPF_F_TEST_RUN_ON_CPU: u32 = 1;
|
|
|
|
pub const BPF_F_TEST_RUN_ON_CPU: u32 = 1;
|
|
|
|
|
|
|
|
pub const BPF_F_TEST_XDP_LIVE_FRAMES: u32 = 2;
|
|
|
|
pub const BTF_INT_SIGNED: u32 = 1;
|
|
|
|
pub const BTF_INT_SIGNED: u32 = 1;
|
|
|
|
pub const BTF_INT_CHAR: u32 = 2;
|
|
|
|
pub const BTF_INT_CHAR: u32 = 2;
|
|
|
|
pub const BTF_INT_BOOL: u32 = 4;
|
|
|
|
pub const BTF_INT_BOOL: u32 = 4;
|
|
|
@ -388,7 +391,8 @@ pub enum bpf_attach_type {
|
|
|
|
BPF_SK_REUSEPORT_SELECT = 39,
|
|
|
|
BPF_SK_REUSEPORT_SELECT = 39,
|
|
|
|
BPF_SK_REUSEPORT_SELECT_OR_MIGRATE = 40,
|
|
|
|
BPF_SK_REUSEPORT_SELECT_OR_MIGRATE = 40,
|
|
|
|
BPF_PERF_EVENT = 41,
|
|
|
|
BPF_PERF_EVENT = 41,
|
|
|
|
__MAX_BPF_ATTACH_TYPE = 42,
|
|
|
|
BPF_TRACE_KPROBE_MULTI = 42,
|
|
|
|
|
|
|
|
__MAX_BPF_ATTACH_TYPE = 43,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pub const BPF_ANY: ::std::os::raw::c_uint = 0;
|
|
|
|
pub const BPF_ANY: ::std::os::raw::c_uint = 0;
|
|
|
|
pub const BPF_NOEXIST: ::std::os::raw::c_uint = 1;
|
|
|
|
pub const BPF_NOEXIST: ::std::os::raw::c_uint = 1;
|
|
|
@ -544,6 +548,7 @@ pub struct bpf_attr__bindgen_ty_7 {
|
|
|
|
pub ctx_out: __u64,
|
|
|
|
pub ctx_out: __u64,
|
|
|
|
pub flags: __u32,
|
|
|
|
pub flags: __u32,
|
|
|
|
pub cpu: __u32,
|
|
|
|
pub cpu: __u32,
|
|
|
|
|
|
|
|
pub batch_size: __u32,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Copy, Clone)]
|
|
|
|
#[derive(Copy, Clone)]
|
|
|
@ -627,6 +632,7 @@ pub union bpf_attr__bindgen_ty_14__bindgen_ty_2 {
|
|
|
|
pub target_btf_id: __u32,
|
|
|
|
pub target_btf_id: __u32,
|
|
|
|
pub __bindgen_anon_1: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_1,
|
|
|
|
pub __bindgen_anon_1: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_1,
|
|
|
|
pub perf_event: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_2,
|
|
|
|
pub perf_event: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_2,
|
|
|
|
|
|
|
|
pub kprobe_multi: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_3,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
@ -641,6 +647,15 @@ pub struct bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_2 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
|
|
|
pub struct bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_3 {
|
|
|
|
|
|
|
|
pub flags: __u32,
|
|
|
|
|
|
|
|
pub cnt: __u32,
|
|
|
|
|
|
|
|
pub syms: __u64,
|
|
|
|
|
|
|
|
pub addrs: __u64,
|
|
|
|
|
|
|
|
pub cookies: __u64,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
pub struct bpf_attr__bindgen_ty_15 {
|
|
|
|
pub struct bpf_attr__bindgen_ty_15 {
|
|
|
|
pub link_fd: __u32,
|
|
|
|
pub link_fd: __u32,
|
|
|
|
pub new_prog_fd: __u32,
|
|
|
|
pub new_prog_fd: __u32,
|
|
|
@ -849,7 +864,7 @@ pub const BTF_KIND_DECL_TAG: ::std::os::raw::c_uint = 17;
|
|
|
|
pub const BTF_KIND_TYPE_TAG: ::std::os::raw::c_uint = 18;
|
|
|
|
pub const BTF_KIND_TYPE_TAG: ::std::os::raw::c_uint = 18;
|
|
|
|
pub const NR_BTF_KINDS: ::std::os::raw::c_uint = 19;
|
|
|
|
pub const NR_BTF_KINDS: ::std::os::raw::c_uint = 19;
|
|
|
|
pub const BTF_KIND_MAX: ::std::os::raw::c_uint = 18;
|
|
|
|
pub const BTF_KIND_MAX: ::std::os::raw::c_uint = 18;
|
|
|
|
pub type _bindgen_ty_37 = ::std::os::raw::c_uint;
|
|
|
|
pub type _bindgen_ty_38 = ::std::os::raw::c_uint;
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
pub struct btf_enum {
|
|
|
|
pub struct btf_enum {
|
|
|
@ -879,7 +894,7 @@ pub struct btf_param {
|
|
|
|
pub const BTF_VAR_STATIC: ::std::os::raw::c_uint = 0;
|
|
|
|
pub const BTF_VAR_STATIC: ::std::os::raw::c_uint = 0;
|
|
|
|
pub const BTF_VAR_GLOBAL_ALLOCATED: ::std::os::raw::c_uint = 1;
|
|
|
|
pub const BTF_VAR_GLOBAL_ALLOCATED: ::std::os::raw::c_uint = 1;
|
|
|
|
pub const BTF_VAR_GLOBAL_EXTERN: ::std::os::raw::c_uint = 2;
|
|
|
|
pub const BTF_VAR_GLOBAL_EXTERN: ::std::os::raw::c_uint = 2;
|
|
|
|
pub type _bindgen_ty_38 = ::std::os::raw::c_uint;
|
|
|
|
pub type _bindgen_ty_39 = ::std::os::raw::c_uint;
|
|
|
|
#[repr(u32)]
|
|
|
|
#[repr(u32)]
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
pub enum btf_func_linkage {
|
|
|
|
pub enum btf_func_linkage {
|
|
|
@ -971,7 +986,8 @@ pub enum perf_sw_ids {
|
|
|
|
PERF_COUNT_SW_EMULATION_FAULTS = 8,
|
|
|
|
PERF_COUNT_SW_EMULATION_FAULTS = 8,
|
|
|
|
PERF_COUNT_SW_DUMMY = 9,
|
|
|
|
PERF_COUNT_SW_DUMMY = 9,
|
|
|
|
PERF_COUNT_SW_BPF_OUTPUT = 10,
|
|
|
|
PERF_COUNT_SW_BPF_OUTPUT = 10,
|
|
|
|
PERF_COUNT_SW_MAX = 11,
|
|
|
|
PERF_COUNT_SW_CGROUP_SWITCHES = 11,
|
|
|
|
|
|
|
|
PERF_COUNT_SW_MAX = 12,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[repr(u64)]
|
|
|
|
#[repr(u64)]
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
@ -996,7 +1012,12 @@ pub enum perf_event_sample_format {
|
|
|
|
PERF_SAMPLE_TRANSACTION = 131072,
|
|
|
|
PERF_SAMPLE_TRANSACTION = 131072,
|
|
|
|
PERF_SAMPLE_REGS_INTR = 262144,
|
|
|
|
PERF_SAMPLE_REGS_INTR = 262144,
|
|
|
|
PERF_SAMPLE_PHYS_ADDR = 524288,
|
|
|
|
PERF_SAMPLE_PHYS_ADDR = 524288,
|
|
|
|
PERF_SAMPLE_MAX = 1048576,
|
|
|
|
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_CALLCHAIN_EARLY = 9223372036854775808,
|
|
|
|
__PERF_SAMPLE_CALLCHAIN_EARLY = 9223372036854775808,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
@ -1022,6 +1043,9 @@ pub struct perf_event_attr {
|
|
|
|
pub aux_watermark: __u32,
|
|
|
|
pub aux_watermark: __u32,
|
|
|
|
pub sample_max_stack: __u16,
|
|
|
|
pub sample_max_stack: __u16,
|
|
|
|
pub __reserved_2: __u16,
|
|
|
|
pub __reserved_2: __u16,
|
|
|
|
|
|
|
|
pub aux_sample_size: __u32,
|
|
|
|
|
|
|
|
pub __reserved_3: __u32,
|
|
|
|
|
|
|
|
pub sig_data: __u64,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Copy, Clone)]
|
|
|
|
#[derive(Copy, Clone)]
|
|
|
@ -1394,14 +1418,80 @@ impl perf_event_attr {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[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 {
|
|
|
|
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]
|
|
|
|
#[inline]
|
|
|
|
pub fn set___reserved_1(&mut self, val: __u64) {
|
|
|
|
pub fn set___reserved_1(&mut self, val: __u64) {
|
|
|
|
unsafe {
|
|
|
|
unsafe {
|
|
|
|
let val: u64 = ::std::mem::transmute(val);
|
|
|
|
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]
|
|
|
|
#[inline]
|
|
|
@ -1437,6 +1527,12 @@ impl perf_event_attr {
|
|
|
|
ksymbol: __u64,
|
|
|
|
ksymbol: __u64,
|
|
|
|
bpf_event: __u64,
|
|
|
|
bpf_event: __u64,
|
|
|
|
aux_output: __u64,
|
|
|
|
aux_output: __u64,
|
|
|
|
|
|
|
|
cgroup: __u64,
|
|
|
|
|
|
|
|
text_poke: __u64,
|
|
|
|
|
|
|
|
build_id: __u64,
|
|
|
|
|
|
|
|
inherit_thread: __u64,
|
|
|
|
|
|
|
|
remove_on_exec: __u64,
|
|
|
|
|
|
|
|
sigtrap: __u64,
|
|
|
|
__reserved_1: __u64,
|
|
|
|
__reserved_1: __u64,
|
|
|
|
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
|
|
|
|
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
|
|
|
|
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
|
|
|
|
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
|
|
|
@ -1566,7 +1662,31 @@ impl perf_event_attr {
|
|
|
|
let aux_output: u64 = unsafe { ::std::mem::transmute(aux_output) };
|
|
|
|
let aux_output: u64 = unsafe { ::std::mem::transmute(aux_output) };
|
|
|
|
aux_output as u64
|
|
|
|
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) };
|
|
|
|
let __reserved_1: u64 = unsafe { ::std::mem::transmute(__reserved_1) };
|
|
|
|
__reserved_1 as u64
|
|
|
|
__reserved_1 as u64
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -1590,7 +1710,10 @@ pub struct perf_event_mmap_page {
|
|
|
|
pub time_offset: __u64,
|
|
|
|
pub time_offset: __u64,
|
|
|
|
pub time_zero: __u64,
|
|
|
|
pub time_zero: __u64,
|
|
|
|
pub size: __u32,
|
|
|
|
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_head: __u64,
|
|
|
|
pub data_tail: __u64,
|
|
|
|
pub data_tail: __u64,
|
|
|
|
pub data_offset: __u64,
|
|
|
|
pub data_offset: __u64,
|
|
|
@ -1670,14 +1793,25 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[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 {
|
|
|
|
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]
|
|
|
|
#[inline]
|
|
|
|
pub fn set_cap_____res(&mut self, val: __u64) {
|
|
|
|
pub fn set_cap_____res(&mut self, val: __u64) {
|
|
|
|
unsafe {
|
|
|
|
unsafe {
|
|
|
|
let val: u64 = ::std::mem::transmute(val);
|
|
|
|
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]
|
|
|
|
#[inline]
|
|
|
@ -1687,6 +1821,7 @@ impl perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
|
|
|
|
cap_user_rdpmc: __u64,
|
|
|
|
cap_user_rdpmc: __u64,
|
|
|
|
cap_user_time: __u64,
|
|
|
|
cap_user_time: __u64,
|
|
|
|
cap_user_time_zero: __u64,
|
|
|
|
cap_user_time_zero: __u64,
|
|
|
|
|
|
|
|
cap_user_time_short: __u64,
|
|
|
|
cap_____res: __u64,
|
|
|
|
cap_____res: __u64,
|
|
|
|
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
|
|
|
|
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
|
|
|
|
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
|
|
|
|
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
|
|
|
@ -1711,7 +1846,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) };
|
|
|
|
let cap_user_time_zero: u64 = unsafe { ::std::mem::transmute(cap_user_time_zero) };
|
|
|
|
cap_user_time_zero as u64
|
|
|
|
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) };
|
|
|
|
let cap_____res: u64 = unsafe { ::std::mem::transmute(cap_____res) };
|
|
|
|
cap_____res as u64
|
|
|
|
cap_____res as u64
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -1746,21 +1885,24 @@ pub enum perf_event_type {
|
|
|
|
PERF_RECORD_NAMESPACES = 16,
|
|
|
|
PERF_RECORD_NAMESPACES = 16,
|
|
|
|
PERF_RECORD_KSYMBOL = 17,
|
|
|
|
PERF_RECORD_KSYMBOL = 17,
|
|
|
|
PERF_RECORD_BPF_EVENT = 18,
|
|
|
|
PERF_RECORD_BPF_EVENT = 18,
|
|
|
|
PERF_RECORD_MAX = 19,
|
|
|
|
PERF_RECORD_CGROUP = 19,
|
|
|
|
}
|
|
|
|
PERF_RECORD_TEXT_POKE = 20,
|
|
|
|
pub const IFLA_XDP_UNSPEC: _bindgen_ty_84 = _bindgen_ty_84::IFLA_XDP_UNSPEC;
|
|
|
|
PERF_RECORD_AUX_OUTPUT_HW_ID = 21,
|
|
|
|
pub const IFLA_XDP_FD: _bindgen_ty_84 = _bindgen_ty_84::IFLA_XDP_FD;
|
|
|
|
PERF_RECORD_MAX = 22,
|
|
|
|
pub const IFLA_XDP_ATTACHED: _bindgen_ty_84 = _bindgen_ty_84::IFLA_XDP_ATTACHED;
|
|
|
|
}
|
|
|
|
pub const IFLA_XDP_FLAGS: _bindgen_ty_84 = _bindgen_ty_84::IFLA_XDP_FLAGS;
|
|
|
|
pub const IFLA_XDP_UNSPEC: _bindgen_ty_85 = _bindgen_ty_85::IFLA_XDP_UNSPEC;
|
|
|
|
pub const IFLA_XDP_PROG_ID: _bindgen_ty_84 = _bindgen_ty_84::IFLA_XDP_PROG_ID;
|
|
|
|
pub const IFLA_XDP_FD: _bindgen_ty_85 = _bindgen_ty_85::IFLA_XDP_FD;
|
|
|
|
pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_84 = _bindgen_ty_84::IFLA_XDP_DRV_PROG_ID;
|
|
|
|
pub const IFLA_XDP_ATTACHED: _bindgen_ty_85 = _bindgen_ty_85::IFLA_XDP_ATTACHED;
|
|
|
|
pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_84 = _bindgen_ty_84::IFLA_XDP_SKB_PROG_ID;
|
|
|
|
pub const IFLA_XDP_FLAGS: _bindgen_ty_85 = _bindgen_ty_85::IFLA_XDP_FLAGS;
|
|
|
|
pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_84 = _bindgen_ty_84::IFLA_XDP_HW_PROG_ID;
|
|
|
|
pub const IFLA_XDP_PROG_ID: _bindgen_ty_85 = _bindgen_ty_85::IFLA_XDP_PROG_ID;
|
|
|
|
pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_84 = _bindgen_ty_84::IFLA_XDP_EXPECTED_FD;
|
|
|
|
pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_85 = _bindgen_ty_85::IFLA_XDP_DRV_PROG_ID;
|
|
|
|
pub const __IFLA_XDP_MAX: _bindgen_ty_84 = _bindgen_ty_84::__IFLA_XDP_MAX;
|
|
|
|
pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_85 = _bindgen_ty_85::IFLA_XDP_SKB_PROG_ID;
|
|
|
|
|
|
|
|
pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_85 = _bindgen_ty_85::IFLA_XDP_HW_PROG_ID;
|
|
|
|
|
|
|
|
pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_85 = _bindgen_ty_85::IFLA_XDP_EXPECTED_FD;
|
|
|
|
|
|
|
|
pub const __IFLA_XDP_MAX: _bindgen_ty_85 = _bindgen_ty_85::__IFLA_XDP_MAX;
|
|
|
|
#[repr(u32)]
|
|
|
|
#[repr(u32)]
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
pub enum _bindgen_ty_84 {
|
|
|
|
pub enum _bindgen_ty_85 {
|
|
|
|
IFLA_XDP_UNSPEC = 0,
|
|
|
|
IFLA_XDP_UNSPEC = 0,
|
|
|
|
IFLA_XDP_FD = 1,
|
|
|
|
IFLA_XDP_FD = 1,
|
|
|
|
IFLA_XDP_ATTACHED = 2,
|
|
|
|
IFLA_XDP_ATTACHED = 2,
|
|
|
@ -1793,25 +1935,25 @@ pub struct tcmsg {
|
|
|
|
pub tcm_parent: __u32,
|
|
|
|
pub tcm_parent: __u32,
|
|
|
|
pub tcm_info: __u32,
|
|
|
|
pub tcm_info: __u32,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pub const TCA_UNSPEC: _bindgen_ty_97 = _bindgen_ty_97::TCA_UNSPEC;
|
|
|
|
pub const TCA_UNSPEC: _bindgen_ty_98 = _bindgen_ty_98::TCA_UNSPEC;
|
|
|
|
pub const TCA_KIND: _bindgen_ty_97 = _bindgen_ty_97::TCA_KIND;
|
|
|
|
pub const TCA_KIND: _bindgen_ty_98 = _bindgen_ty_98::TCA_KIND;
|
|
|
|
pub const TCA_OPTIONS: _bindgen_ty_97 = _bindgen_ty_97::TCA_OPTIONS;
|
|
|
|
pub const TCA_OPTIONS: _bindgen_ty_98 = _bindgen_ty_98::TCA_OPTIONS;
|
|
|
|
pub const TCA_STATS: _bindgen_ty_97 = _bindgen_ty_97::TCA_STATS;
|
|
|
|
pub const TCA_STATS: _bindgen_ty_98 = _bindgen_ty_98::TCA_STATS;
|
|
|
|
pub const TCA_XSTATS: _bindgen_ty_97 = _bindgen_ty_97::TCA_XSTATS;
|
|
|
|
pub const TCA_XSTATS: _bindgen_ty_98 = _bindgen_ty_98::TCA_XSTATS;
|
|
|
|
pub const TCA_RATE: _bindgen_ty_97 = _bindgen_ty_97::TCA_RATE;
|
|
|
|
pub const TCA_RATE: _bindgen_ty_98 = _bindgen_ty_98::TCA_RATE;
|
|
|
|
pub const TCA_FCNT: _bindgen_ty_97 = _bindgen_ty_97::TCA_FCNT;
|
|
|
|
pub const TCA_FCNT: _bindgen_ty_98 = _bindgen_ty_98::TCA_FCNT;
|
|
|
|
pub const TCA_STATS2: _bindgen_ty_97 = _bindgen_ty_97::TCA_STATS2;
|
|
|
|
pub const TCA_STATS2: _bindgen_ty_98 = _bindgen_ty_98::TCA_STATS2;
|
|
|
|
pub const TCA_STAB: _bindgen_ty_97 = _bindgen_ty_97::TCA_STAB;
|
|
|
|
pub const TCA_STAB: _bindgen_ty_98 = _bindgen_ty_98::TCA_STAB;
|
|
|
|
pub const TCA_PAD: _bindgen_ty_97 = _bindgen_ty_97::TCA_PAD;
|
|
|
|
pub const TCA_PAD: _bindgen_ty_98 = _bindgen_ty_98::TCA_PAD;
|
|
|
|
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_97 = _bindgen_ty_97::TCA_DUMP_INVISIBLE;
|
|
|
|
pub const TCA_DUMP_INVISIBLE: _bindgen_ty_98 = _bindgen_ty_98::TCA_DUMP_INVISIBLE;
|
|
|
|
pub const TCA_CHAIN: _bindgen_ty_97 = _bindgen_ty_97::TCA_CHAIN;
|
|
|
|
pub const TCA_CHAIN: _bindgen_ty_98 = _bindgen_ty_98::TCA_CHAIN;
|
|
|
|
pub const TCA_HW_OFFLOAD: _bindgen_ty_97 = _bindgen_ty_97::TCA_HW_OFFLOAD;
|
|
|
|
pub const TCA_HW_OFFLOAD: _bindgen_ty_98 = _bindgen_ty_98::TCA_HW_OFFLOAD;
|
|
|
|
pub const TCA_INGRESS_BLOCK: _bindgen_ty_97 = _bindgen_ty_97::TCA_INGRESS_BLOCK;
|
|
|
|
pub const TCA_INGRESS_BLOCK: _bindgen_ty_98 = _bindgen_ty_98::TCA_INGRESS_BLOCK;
|
|
|
|
pub const TCA_EGRESS_BLOCK: _bindgen_ty_97 = _bindgen_ty_97::TCA_EGRESS_BLOCK;
|
|
|
|
pub const TCA_EGRESS_BLOCK: _bindgen_ty_98 = _bindgen_ty_98::TCA_EGRESS_BLOCK;
|
|
|
|
pub const __TCA_MAX: _bindgen_ty_97 = _bindgen_ty_97::__TCA_MAX;
|
|
|
|
pub const __TCA_MAX: _bindgen_ty_98 = _bindgen_ty_98::__TCA_MAX;
|
|
|
|
#[repr(u32)]
|
|
|
|
#[repr(u32)]
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
pub enum _bindgen_ty_97 {
|
|
|
|
pub enum _bindgen_ty_98 {
|
|
|
|
TCA_UNSPEC = 0,
|
|
|
|
TCA_UNSPEC = 0,
|
|
|
|
TCA_KIND = 1,
|
|
|
|
TCA_KIND = 1,
|
|
|
|
TCA_OPTIONS = 2,
|
|
|
|
TCA_OPTIONS = 2,
|
|
|
@ -1829,22 +1971,22 @@ pub enum _bindgen_ty_97 {
|
|
|
|
TCA_EGRESS_BLOCK = 14,
|
|
|
|
TCA_EGRESS_BLOCK = 14,
|
|
|
|
__TCA_MAX = 15,
|
|
|
|
__TCA_MAX = 15,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pub const TCA_BPF_UNSPEC: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_UNSPEC;
|
|
|
|
pub const TCA_BPF_UNSPEC: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_UNSPEC;
|
|
|
|
pub const TCA_BPF_ACT: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_ACT;
|
|
|
|
pub const TCA_BPF_ACT: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_ACT;
|
|
|
|
pub const TCA_BPF_POLICE: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_POLICE;
|
|
|
|
pub const TCA_BPF_POLICE: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_POLICE;
|
|
|
|
pub const TCA_BPF_CLASSID: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_CLASSID;
|
|
|
|
pub const TCA_BPF_CLASSID: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_CLASSID;
|
|
|
|
pub const TCA_BPF_OPS_LEN: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_OPS_LEN;
|
|
|
|
pub const TCA_BPF_OPS_LEN: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_OPS_LEN;
|
|
|
|
pub const TCA_BPF_OPS: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_OPS;
|
|
|
|
pub const TCA_BPF_OPS: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_OPS;
|
|
|
|
pub const TCA_BPF_FD: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_FD;
|
|
|
|
pub const TCA_BPF_FD: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_FD;
|
|
|
|
pub const TCA_BPF_NAME: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_NAME;
|
|
|
|
pub const TCA_BPF_NAME: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_NAME;
|
|
|
|
pub const TCA_BPF_FLAGS: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_FLAGS;
|
|
|
|
pub const TCA_BPF_FLAGS: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_FLAGS;
|
|
|
|
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_FLAGS_GEN;
|
|
|
|
pub const TCA_BPF_FLAGS_GEN: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_FLAGS_GEN;
|
|
|
|
pub const TCA_BPF_TAG: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_TAG;
|
|
|
|
pub const TCA_BPF_TAG: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_TAG;
|
|
|
|
pub const TCA_BPF_ID: _bindgen_ty_153 = _bindgen_ty_153::TCA_BPF_ID;
|
|
|
|
pub const TCA_BPF_ID: _bindgen_ty_154 = _bindgen_ty_154::TCA_BPF_ID;
|
|
|
|
pub const __TCA_BPF_MAX: _bindgen_ty_153 = _bindgen_ty_153::__TCA_BPF_MAX;
|
|
|
|
pub const __TCA_BPF_MAX: _bindgen_ty_154 = _bindgen_ty_154::__TCA_BPF_MAX;
|
|
|
|
#[repr(u32)]
|
|
|
|
#[repr(u32)]
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
pub enum _bindgen_ty_153 {
|
|
|
|
pub enum _bindgen_ty_154 {
|
|
|
|
TCA_BPF_UNSPEC = 0,
|
|
|
|
TCA_BPF_UNSPEC = 0,
|
|
|
|
TCA_BPF_ACT = 1,
|
|
|
|
TCA_BPF_ACT = 1,
|
|
|
|
TCA_BPF_POLICE = 2,
|
|
|
|
TCA_BPF_POLICE = 2,
|
|
|
|