#[repr(C)]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§
§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: __u64
Implementations§
Source§impl perf_event_attr
impl perf_event_attr
pub fn disabled(&self) -> __u64
pub fn set_disabled(&mut self, val: __u64)
pub unsafe fn disabled_raw(this: *const Self) -> __u64
pub unsafe fn set_disabled_raw(this: *mut Self, val: __u64)
pub fn inherit(&self) -> __u64
pub fn set_inherit(&mut self, val: __u64)
pub unsafe fn inherit_raw(this: *const Self) -> __u64
pub unsafe fn set_inherit_raw(this: *mut Self, val: __u64)
pub fn pinned(&self) -> __u64
pub fn set_pinned(&mut self, val: __u64)
pub unsafe fn pinned_raw(this: *const Self) -> __u64
pub unsafe fn set_pinned_raw(this: *mut Self, val: __u64)
pub fn exclusive(&self) -> __u64
pub fn set_exclusive(&mut self, val: __u64)
pub unsafe fn exclusive_raw(this: *const Self) -> __u64
pub unsafe fn set_exclusive_raw(this: *mut Self, val: __u64)
pub fn exclude_user(&self) -> __u64
pub fn set_exclude_user(&mut self, val: __u64)
pub unsafe fn exclude_user_raw(this: *const Self) -> __u64
pub unsafe fn set_exclude_user_raw(this: *mut Self, val: __u64)
pub fn exclude_kernel(&self) -> __u64
pub fn set_exclude_kernel(&mut self, val: __u64)
pub unsafe fn exclude_kernel_raw(this: *const Self) -> __u64
pub unsafe fn set_exclude_kernel_raw(this: *mut Self, val: __u64)
pub fn exclude_hv(&self) -> __u64
pub fn set_exclude_hv(&mut self, val: __u64)
pub unsafe fn exclude_hv_raw(this: *const Self) -> __u64
pub unsafe fn set_exclude_hv_raw(this: *mut Self, val: __u64)
pub fn exclude_idle(&self) -> __u64
pub fn set_exclude_idle(&mut self, val: __u64)
pub unsafe fn exclude_idle_raw(this: *const Self) -> __u64
pub unsafe fn set_exclude_idle_raw(this: *mut Self, val: __u64)
pub fn mmap(&self) -> __u64
pub fn set_mmap(&mut self, val: __u64)
pub unsafe fn mmap_raw(this: *const Self) -> __u64
pub unsafe fn set_mmap_raw(this: *mut Self, val: __u64)
pub fn comm(&self) -> __u64
pub fn set_comm(&mut self, val: __u64)
pub unsafe fn comm_raw(this: *const Self) -> __u64
pub unsafe fn set_comm_raw(this: *mut Self, val: __u64)
pub fn freq(&self) -> __u64
pub fn set_freq(&mut self, val: __u64)
pub unsafe fn freq_raw(this: *const Self) -> __u64
pub unsafe fn set_freq_raw(this: *mut Self, val: __u64)
pub fn inherit_stat(&self) -> __u64
pub fn set_inherit_stat(&mut self, val: __u64)
pub unsafe fn inherit_stat_raw(this: *const Self) -> __u64
pub unsafe fn set_inherit_stat_raw(this: *mut Self, val: __u64)
pub fn enable_on_exec(&self) -> __u64
pub fn set_enable_on_exec(&mut self, val: __u64)
pub unsafe fn enable_on_exec_raw(this: *const Self) -> __u64
pub unsafe fn set_enable_on_exec_raw(this: *mut Self, val: __u64)
pub fn task(&self) -> __u64
pub fn set_task(&mut self, val: __u64)
pub unsafe fn task_raw(this: *const Self) -> __u64
pub unsafe fn set_task_raw(this: *mut Self, val: __u64)
pub fn watermark(&self) -> __u64
pub fn set_watermark(&mut self, val: __u64)
pub unsafe fn watermark_raw(this: *const Self) -> __u64
pub unsafe fn set_watermark_raw(this: *mut Self, val: __u64)
pub fn precise_ip(&self) -> __u64
pub fn set_precise_ip(&mut self, val: __u64)
pub unsafe fn precise_ip_raw(this: *const Self) -> __u64
pub unsafe fn set_precise_ip_raw(this: *mut Self, val: __u64)
pub fn mmap_data(&self) -> __u64
pub fn set_mmap_data(&mut self, val: __u64)
pub unsafe fn mmap_data_raw(this: *const Self) -> __u64
pub unsafe fn set_mmap_data_raw(this: *mut Self, val: __u64)
pub fn sample_id_all(&self) -> __u64
pub fn set_sample_id_all(&mut self, val: __u64)
pub unsafe fn sample_id_all_raw(this: *const Self) -> __u64
pub unsafe fn set_sample_id_all_raw(this: *mut Self, val: __u64)
pub fn exclude_host(&self) -> __u64
pub fn set_exclude_host(&mut self, val: __u64)
pub unsafe fn exclude_host_raw(this: *const Self) -> __u64
pub unsafe fn set_exclude_host_raw(this: *mut Self, val: __u64)
pub fn exclude_guest(&self) -> __u64
pub fn set_exclude_guest(&mut self, val: __u64)
pub unsafe fn exclude_guest_raw(this: *const Self) -> __u64
pub unsafe fn set_exclude_guest_raw(this: *mut Self, val: __u64)
pub fn exclude_callchain_kernel(&self) -> __u64
pub fn set_exclude_callchain_kernel(&mut self, val: __u64)
pub unsafe fn exclude_callchain_kernel_raw(this: *const Self) -> __u64
pub unsafe fn set_exclude_callchain_kernel_raw(this: *mut Self, val: __u64)
pub fn exclude_callchain_user(&self) -> __u64
pub fn set_exclude_callchain_user(&mut self, val: __u64)
pub unsafe fn exclude_callchain_user_raw(this: *const Self) -> __u64
pub unsafe fn set_exclude_callchain_user_raw(this: *mut Self, val: __u64)
pub fn mmap2(&self) -> __u64
pub fn set_mmap2(&mut self, val: __u64)
pub unsafe fn mmap2_raw(this: *const Self) -> __u64
pub unsafe fn set_mmap2_raw(this: *mut Self, val: __u64)
pub fn comm_exec(&self) -> __u64
pub fn set_comm_exec(&mut self, val: __u64)
pub unsafe fn comm_exec_raw(this: *const Self) -> __u64
pub unsafe fn set_comm_exec_raw(this: *mut Self, val: __u64)
pub fn use_clockid(&self) -> __u64
pub fn set_use_clockid(&mut self, val: __u64)
pub unsafe fn use_clockid_raw(this: *const Self) -> __u64
pub unsafe fn set_use_clockid_raw(this: *mut Self, val: __u64)
pub fn context_switch(&self) -> __u64
pub fn set_context_switch(&mut self, val: __u64)
pub unsafe fn context_switch_raw(this: *const Self) -> __u64
pub unsafe fn set_context_switch_raw(this: *mut Self, val: __u64)
pub fn write_backward(&self) -> __u64
pub fn set_write_backward(&mut self, val: __u64)
pub unsafe fn write_backward_raw(this: *const Self) -> __u64
pub unsafe fn set_write_backward_raw(this: *mut Self, val: __u64)
pub fn namespaces(&self) -> __u64
pub fn set_namespaces(&mut self, val: __u64)
pub unsafe fn namespaces_raw(this: *const Self) -> __u64
pub unsafe fn set_namespaces_raw(this: *mut Self, val: __u64)
pub fn ksymbol(&self) -> __u64
pub fn set_ksymbol(&mut self, val: __u64)
pub unsafe fn ksymbol_raw(this: *const Self) -> __u64
pub unsafe fn set_ksymbol_raw(this: *mut Self, val: __u64)
pub fn bpf_event(&self) -> __u64
pub fn set_bpf_event(&mut self, val: __u64)
pub unsafe fn bpf_event_raw(this: *const Self) -> __u64
pub unsafe fn set_bpf_event_raw(this: *mut Self, val: __u64)
pub fn aux_output(&self) -> __u64
pub fn set_aux_output(&mut self, val: __u64)
pub unsafe fn aux_output_raw(this: *const Self) -> __u64
pub unsafe fn set_aux_output_raw(this: *mut Self, val: __u64)
pub fn cgroup(&self) -> __u64
pub fn set_cgroup(&mut self, val: __u64)
pub unsafe fn cgroup_raw(this: *const Self) -> __u64
pub unsafe fn set_cgroup_raw(this: *mut Self, val: __u64)
pub fn text_poke(&self) -> __u64
pub fn set_text_poke(&mut self, val: __u64)
pub unsafe fn text_poke_raw(this: *const Self) -> __u64
pub unsafe fn set_text_poke_raw(this: *mut Self, val: __u64)
pub fn build_id(&self) -> __u64
pub fn set_build_id(&mut self, val: __u64)
pub unsafe fn build_id_raw(this: *const Self) -> __u64
pub unsafe fn set_build_id_raw(this: *mut Self, val: __u64)
pub fn inherit_thread(&self) -> __u64
pub fn set_inherit_thread(&mut self, val: __u64)
pub unsafe fn inherit_thread_raw(this: *const Self) -> __u64
pub unsafe fn set_inherit_thread_raw(this: *mut Self, val: __u64)
pub fn remove_on_exec(&self) -> __u64
pub fn set_remove_on_exec(&mut self, val: __u64)
pub unsafe fn remove_on_exec_raw(this: *const Self) -> __u64
pub unsafe fn set_remove_on_exec_raw(this: *mut Self, val: __u64)
pub fn sigtrap(&self) -> __u64
pub fn set_sigtrap(&mut self, val: __u64)
pub unsafe fn sigtrap_raw(this: *const Self) -> __u64
pub unsafe fn set_sigtrap_raw(this: *mut Self, val: __u64)
pub fn __reserved_1(&self) -> __u64
pub fn set___reserved_1(&mut self, val: __u64)
pub unsafe fn __reserved_1_raw(this: *const Self) -> __u64
pub unsafe fn set___reserved_1_raw(this: *mut Self, val: __u64)
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, ksymbol: __u64, bpf_event: __u64, aux_output: __u64, cgroup: __u64, text_poke: __u64, build_id: __u64, inherit_thread: __u64, remove_on_exec: __u64, sigtrap: __u64, __reserved_1: __u64, ) -> __BindgenBitfieldUnit<[u8; 8]>
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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for perf_event_attr
impl Default for perf_event_attr
impl Copy for perf_event_attr
Auto Trait Implementations§
impl Freeze for perf_event_attr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.