[−][src]Struct nc::types::perf_event_attr_t
Hardware event_id to monitor via a performance monitoring event:
@sample_max_stack: Max number of frame pointers in a callchain should be < /proc/sys/kernel/perf_event_max_stack
Fields
type_: u32
Major type: hardware/software/tracepoint/etc.
size: u32
Size of the attr structure, for fwd/bwd compat.
config: u64
Type specific configuration information.
sample: perf_event_attr_sample_t
sample_type: u64
read_format: u64
disabled: u8
off by default
inherit: u8
children inherit it
pinned: u8
must always be on PMU
exclusive: u8
only group on PMU
exclude_user: u8
don't count user
exclude_kernel: u8
ditto kernel
exclude_hv: u8
ditto hypervisor
exclude_idle: u8
don't count when idle
mmap: u8
include mmap data
comm: u8
include comm data
freq: u8
use freq, not period
inherit_stat: u8
per task counts
enable_on_exec: u8
next exec enables
task: u8
trace fork/exit
watermark: u8
wakeup_watermark
precise_ip: u8
precise_ip: 0 - SAMPLE_IP can have arbitrary skid 1 - SAMPLE_IP must have constant skid 2 - SAMPLE_IP requested to have 0 skid 3 - SAMPLE_IP must have 0 skid
See also PERF_RECORD_MISC_EXACT_IP skid constraint
mmap_data: u8
non-exec mmap data
sample_id_all: u8
sample_type all events
exclude_host: u8
don't count in host
exclude_guest: u8
don't count in guest
exclude_callchain_kernel: u8
exclude kernel callchains
exclude_callchain_user: u8
exclude user callchains
mmap2: u8
include mmap with inode data
comm_exec: u8
flag comm events that are due to an exec
use_clockid: u8
use @clockid for time fields
context_switch: u8
context switch data
write_backward: u8
Write ring buffer from end to beginning
namespaces: u8
include namespaces data
wakeup: perf_event_attr_wakeup_t
bp_type: u32
config1: perf_event_attr_config1_t
config2: perf_event_attr_config2_t
branch_sample_type: u64
enum perf_branch_sample_type
sample_regs_user: u64
Defines set of user regs to dump on samples. See asm/perf_regs.h for details.
sample_stack_user: u32
Defines size of the user stack to dump on samples.
clockid: i32
sample_regs_intr: u64
Defines set of regs to dump for each sample state captured on:
- precise = 0: PMU interrupt
- precise > 0: sampled instruction
See asm/perf_regs.h for details.
aux_watermark: u32
Wakeup watermark for AUX area
sample_max_stack: u16
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,