Struct perf_event_open_sys::bindings::perf_event_attr
source · #[repr(C)]#[non_exhaustive]pub struct perf_event_attr {Show 24 fields
pub type_: __u32,
pub size: __u32,
pub config: __u64,
pub __bindgen_anon_1: perf_event_attr__bindgen_ty_1,
pub sample_type: __u64,
pub read_format: __u64,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8]>,
pub __bindgen_anon_2: perf_event_attr__bindgen_ty_2,
pub bp_type: __u32,
pub __bindgen_anon_3: perf_event_attr__bindgen_ty_3,
pub __bindgen_anon_4: perf_event_attr__bindgen_ty_4,
pub branch_sample_type: __u64,
pub sample_regs_user: __u64,
pub sample_stack_user: __u32,
pub clockid: __s32,
pub sample_regs_intr: __u64,
pub aux_watermark: __u32,
pub sample_max_stack: __u16,
pub __reserved_2: __u16,
pub aux_sample_size: __u32,
pub __reserved_3: __u32,
pub sig_data: __u64,
pub config3: __u64,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_: __u32§size: __u32§config: __u64§__bindgen_anon_1: perf_event_attr__bindgen_ty_1§sample_type: __u64§read_format: __u64§_bitfield_align_1: [u32; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 8]>§__bindgen_anon_2: perf_event_attr__bindgen_ty_2§bp_type: __u32§__bindgen_anon_3: perf_event_attr__bindgen_ty_3§__bindgen_anon_4: perf_event_attr__bindgen_ty_4§branch_sample_type: __u64§sample_regs_user: __u64§sample_stack_user: __u32§clockid: __s32§sample_regs_intr: __u64§aux_watermark: __u32§sample_max_stack: __u16§__reserved_2: __u16§aux_sample_size: __u32§__reserved_3: __u32§sig_data: __u64§config3: __u64Implementations§
source§impl perf_event_attr
impl perf_event_attr
pub fn disabled(&self) -> __u64
pub fn set_disabled(&mut self, val: __u64)
pub fn inherit(&self) -> __u64
pub fn set_inherit(&mut self, val: __u64)
pub fn pinned(&self) -> __u64
pub fn set_pinned(&mut self, val: __u64)
pub fn exclusive(&self) -> __u64
pub fn set_exclusive(&mut self, val: __u64)
pub fn exclude_user(&self) -> __u64
pub fn set_exclude_user(&mut self, val: __u64)
pub fn exclude_kernel(&self) -> __u64
pub fn set_exclude_kernel(&mut self, val: __u64)
pub fn exclude_hv(&self) -> __u64
pub fn set_exclude_hv(&mut self, val: __u64)
pub fn exclude_idle(&self) -> __u64
pub fn set_exclude_idle(&mut self, val: __u64)
pub fn mmap(&self) -> __u64
pub fn set_mmap(&mut self, val: __u64)
pub fn comm(&self) -> __u64
pub fn set_comm(&mut self, val: __u64)
pub fn freq(&self) -> __u64
pub fn set_freq(&mut self, val: __u64)
pub fn inherit_stat(&self) -> __u64
pub fn set_inherit_stat(&mut self, val: __u64)
pub fn enable_on_exec(&self) -> __u64
pub fn set_enable_on_exec(&mut self, val: __u64)
pub fn task(&self) -> __u64
pub fn set_task(&mut self, val: __u64)
pub fn watermark(&self) -> __u64
pub fn set_watermark(&mut self, val: __u64)
pub fn precise_ip(&self) -> __u64
pub fn set_precise_ip(&mut self, val: __u64)
pub fn mmap_data(&self) -> __u64
pub fn set_mmap_data(&mut self, val: __u64)
pub fn sample_id_all(&self) -> __u64
pub fn set_sample_id_all(&mut self, val: __u64)
pub fn exclude_host(&self) -> __u64
pub fn set_exclude_host(&mut self, val: __u64)
pub fn exclude_guest(&self) -> __u64
pub fn set_exclude_guest(&mut self, val: __u64)
pub fn exclude_callchain_kernel(&self) -> __u64
pub fn set_exclude_callchain_kernel(&mut self, val: __u64)
pub fn exclude_callchain_user(&self) -> __u64
pub fn set_exclude_callchain_user(&mut self, val: __u64)
pub fn mmap2(&self) -> __u64
pub fn set_mmap2(&mut self, val: __u64)
pub fn comm_exec(&self) -> __u64
pub fn set_comm_exec(&mut self, val: __u64)
pub fn use_clockid(&self) -> __u64
pub fn set_use_clockid(&mut self, val: __u64)
pub fn context_switch(&self) -> __u64
pub fn set_context_switch(&mut self, val: __u64)
pub fn write_backward(&self) -> __u64
pub fn set_write_backward(&mut self, val: __u64)
pub fn namespaces(&self) -> __u64
pub fn set_namespaces(&mut self, val: __u64)
pub fn ksymbol(&self) -> __u64
pub fn set_ksymbol(&mut self, val: __u64)
pub fn bpf_event(&self) -> __u64
pub fn set_bpf_event(&mut self, val: __u64)
pub fn aux_output(&self) -> __u64
pub fn set_aux_output(&mut self, val: __u64)
pub fn cgroup(&self) -> __u64
pub fn set_cgroup(&mut self, val: __u64)
pub fn text_poke(&self) -> __u64
pub fn set_text_poke(&mut self, val: __u64)
pub fn build_id(&self) -> __u64
pub fn set_build_id(&mut self, val: __u64)
pub fn inherit_thread(&self) -> __u64
pub fn set_inherit_thread(&mut self, val: __u64)
pub fn remove_on_exec(&self) -> __u64
pub fn set_remove_on_exec(&mut self, val: __u64)
pub fn sigtrap(&self) -> __u64
pub fn set_sigtrap(&mut self, val: __u64)
pub fn __reserved_1(&self) -> __u64
pub fn set___reserved_1(&mut self, val: __u64)
Trait Implementations§
source§impl Clone for perf_event_attr
impl Clone for perf_event_attr
source§fn clone(&self) -> perf_event_attr
fn clone(&self) -> perf_event_attr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for perf_event_attr
impl Debug for perf_event_attr
source§impl Default for perf_event_attr
impl Default for perf_event_attr
impl Copy for perf_event_attr
Auto Trait Implementations§
impl RefUnwindSafe for perf_event_attr
impl Send for perf_event_attr
impl Sync for perf_event_attr
impl Unpin for perf_event_attr
impl UnwindSafe for perf_event_attr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more