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_: u32
size: u32
config: u64
__bindgen_anon_1: perf_event_attr__bindgen_ty_1
sample_type: u64
read_format: u64
_bitfield_align_1: [u64; 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: i32
sample_regs_intr: u64
aux_watermark: u32
__reserved_2: u32
Implementations
impl perf_event_attr
[src]
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]
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]>
Trait Implementations
impl Clone for perf_event_attr
[src]
impl Clone for perf_event_attr
[src]fn clone(&self) -> 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]
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
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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