Struct pfm_sys::perf_event_attr[][src]

#[repr(C)]
pub struct perf_event_attr {
Show 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: [u64; 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: i32, pub sample_regs_intr: u64, pub aux_watermark: u32, pub __reserved_2: u32,
}

Fields

type_: u32size: u32config: u64__bindgen_anon_1: perf_event_attr__bindgen_ty_1sample_type: u64read_format: u64_bitfield_align_1: [u64; 0]_bitfield_1: __BindgenBitfieldUnit<[u8; 8]>__bindgen_anon_2: perf_event_attr__bindgen_ty_2bp_type: u32__bindgen_anon_3: perf_event_attr__bindgen_ty_3__bindgen_anon_4: perf_event_attr__bindgen_ty_4branch_sample_type: u64sample_regs_user: u64sample_stack_user: u32clockid: i32sample_regs_intr: u64aux_watermark: u32__reserved_2: u32

Implementations

impl perf_event_attr[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn new_bitfield_1(
    disabled: u64,
    inherit: u64,
    pinned: u64,
    exclusive: u64,
    exclude_user: u64,
    exclude_kernel: u64,
    exclude_hv: u64,
    exclude_idle: u64,
    mmap: u64,
    comm: u64,
    freq: u64,
    inherit_stat: u64,
    enable_on_exec: u64,
    task: u64,
    watermark: u64,
    precise_ip: u64,
    mmap_data: u64,
    sample_id_all: u64,
    exclude_host: u64,
    exclude_guest: u64,
    exclude_callchain_kernel: u64,
    exclude_callchain_user: u64,
    mmap2: u64,
    comm_exec: u64,
    use_clockid: u64,
    context_switch: u64,
    write_backward: u64,
    namespaces: u64,
    __reserved_1: u64
) -> __BindgenBitfieldUnit<[u8; 8]>
[src]

Trait Implementations

impl Clone for perf_event_attr[src]

fn clone(&self) -> perf_event_attr[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for perf_event_attr[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.