[][src]Struct linux::kty::perf_event_attr

#[repr(C)]
pub struct perf_event_attr { pub ty: __u32, pub size: __u32, pub config: __u64, pub sample_type: __u64, pub read_format: __u64, pub perf_flags: __u64, pub bp_type: __u32, pub branch_sample_type: __u64, pub sample_regs_user: __u64, pub sample_stack_user: __u32, pub __reserved_2: __u32, pub sample_regs_intr: __u64, // some fields omitted }

Fields

ty: __u32size: __u32config: __u64sample_type: __u64read_format: __u64perf_flags: __u64bp_type: __u32branch_sample_type: __u64sample_regs_user: __u64sample_stack_user: __u32__reserved_2: __u32sample_regs_intr: __u64

Methods

impl perf_event_attr[src]

pub fn sample_period(&self) -> __u64[src]

pub fn set_sample_period(&mut self, val: __u64)[src]

pub fn sample_freq(&self) -> __u64[src]

pub fn set_sample_freq(&mut self, val: __u64)[src]

pub fn disabled(&self) -> bool[src]

pub fn inherit(&self) -> bool[src]

pub fn pinned(&self) -> bool[src]

pub fn exclusive(&self) -> bool[src]

pub fn exclude_user(&self) -> bool[src]

pub fn exclude_kernel(&self) -> bool[src]

pub fn exclude_hv(&self) -> bool[src]

pub fn exclude_idle(&self) -> bool[src]

pub fn mmap(&self) -> bool[src]

pub fn comm(&self) -> bool[src]

pub fn freq(&self) -> bool[src]

pub fn inherit_stat(&self) -> bool[src]

pub fn enable_on_exec(&self) -> bool[src]

pub fn task(&self) -> bool[src]

pub fn watermark(&self) -> bool[src]

pub fn precise_ip(&self) -> u64[src]

pub fn mmap_data(&self) -> bool[src]

pub fn sample_id_all(&self) -> bool[src]

pub fn exclude_host(&self) -> bool[src]

pub fn exclude_guest(&self) -> bool[src]

pub fn exclude_callchain_kernel(&self) -> bool[src]

pub fn exclude_callchain_user(&self) -> bool[src]

pub fn mmap2(&self) -> bool[src]

pub fn comm_exec(&self) -> bool[src]

pub fn set_disabled(&mut self, val: bool)[src]

pub fn set_inherit(&mut self, val: bool)[src]

pub fn set_pinned(&mut self, val: bool)[src]

pub fn set_exclusive(&mut self, val: bool)[src]

pub fn set_exclude_user(&mut self, val: bool)[src]

pub fn set_exclude_kernel(&mut self, val: bool)[src]

pub fn set_exclude_hv(&mut self, val: bool)[src]

pub fn set_exclude_idle(&mut self, val: bool)[src]

pub fn set_mmap(&mut self, val: bool)[src]

pub fn set_comm(&mut self, val: bool)[src]

pub fn set_freq(&mut self, val: bool)[src]

pub fn set_inherit_stat(&mut self, val: bool)[src]

pub fn set_enable_on_exec(&mut self, val: bool)[src]

pub fn set_task(&mut self, val: bool)[src]

pub fn set_watermark(&mut self, val: bool)[src]

pub fn set_precise_ip(&mut self, val: u64)[src]

pub fn set_mmap_data(&mut self, val: bool)[src]

pub fn set_sample_id_all(&mut self, val: bool)[src]

pub fn set_exclude_host(&mut self, val: bool)[src]

pub fn set_exclude_guest(&mut self, val: bool)[src]

pub fn set_exclude_callchain_kernel(&mut self, val: bool)[src]

pub fn set_exclude_callchain_user(&mut self, val: bool)[src]

pub fn set_mmap2(&mut self, val: bool)[src]

pub fn set_comm_exec(&mut self, val: bool)[src]

pub fn wakeup_events(&self) -> __u32[src]

pub fn set_wakeup_events(&mut self, val: __u32)[src]

pub fn wakeup_watermark(&self) -> __u32[src]

pub fn set_wakeup_watermark(&mut self, val: __u32)[src]

pub fn bp_addr(&self) -> __u64[src]

pub fn set_bp_addr(&mut self, val: __u64)[src]

pub fn config1(&self) -> __u64[src]

pub fn set_config1(&mut self, val: __u64)[src]

pub fn bp_len(&self) -> __u64[src]

pub fn set_bp_len(&mut self, val: __u64)[src]

pub fn config2(&self) -> __u64[src]

pub fn set_config2(&mut self, val: __u64)[src]

Trait Implementations

impl Pod for perf_event_attr[src]

impl Eq for perf_event_attr[src]

impl PartialEq<perf_event_attr> for perf_event_attr[src]

impl Copy for perf_event_attr[src]

impl Clone for perf_event_attr[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]