#[repr(C)]pub struct perf_event {Show 83 fields
pub event_entry: list_head,
pub sibling_list: list_head,
pub active_list: list_head,
pub group_node: rb_node,
pub group_index: u64,
pub migrate_entry: list_head,
pub hlist_entry: hlist_node,
pub active_entry: list_head,
pub nr_siblings: i32,
pub event_caps: i32,
pub group_caps: i32,
pub group_generation: u32,
pub group_leader: *mut perf_event,
pub pmu: *mut c_void,
pub pmu_private: *mut c_void,
pub state: perf_event_state,
pub attach_state: u32,
pub count: __anon_25,
pub child_count: __anon_12,
pub total_time_enabled: u64,
pub total_time_running: u64,
pub tstamp: u64,
pub attr: perf_event_attr,
pub header_size: u16,
pub id_header_size: u16,
pub read_size: u16,
pub hw: hw_perf_event,
pub ctx: *mut c_void,
pub pmu_ctx: *mut c_void,
pub refcount: __anon_12,
pub child_total_time_enabled: __anon_12,
pub child_total_time_running: __anon_12,
pub child_mutex: mutex,
pub child_list: list_head,
pub parent: *mut perf_event,
pub oncpu: i32,
pub cpu: i32,
pub owner_entry: list_head,
pub owner: *mut task_struct,
pub mmap_mutex: mutex,
pub mmap_count: __anon_4,
pub __pad_716: [u8; 4],
pub rb: *mut c_void,
pub rb_entry: list_head,
pub rcu_batches: u64,
pub rcu_pending: i32,
pub __pad_756: [u8; 4],
pub waitq: wait_queue_head,
pub fasync: *mut c_void,
pub pending_wakeup: u32,
pub pending_kill: u32,
pub pending_disable: u32,
pub __pad_804: [u8; 4],
pub pending_addr: u64,
pub pending_irq: irq_work,
pub pending_disable_irq: irq_work,
pub pending_task: callback_head,
pub pending_work: u32,
pub __pad_900: [u8; 4],
pub pending_work_wait: rcuwait,
pub event_limit: __anon_4,
pub __pad_916: [u8; 4],
pub addr_filters: perf_addr_filters_head,
pub addr_filter_ranges: *mut c_void,
pub addr_filters_gen: u64,
pub aux_event: *mut perf_event,
pub destroy: *mut c_void,
pub callback_head: callback_head,
pub ns: *mut pid_namespace,
pub id: u64,
pub lost_samples: __anon_12,
pub clock: *mut c_void,
pub overflow_handler: *mut c_void,
pub overflow_handler_context: *mut c_void,
pub prog: *mut c_void,
pub bpf_cookie: u64,
pub tp_event: *mut c_void,
pub filter: *mut c_void,
pub ftrace_ops: ftrace_ops,
pub cgrp: *mut c_void,
pub sb_list: list_head,
pub orig_type: u32,
pub __pad_1316: [u8; 4],
}
Fields§
§event_entry: list_head
§sibling_list: list_head
§active_list: list_head
§group_node: rb_node
§group_index: u64
§migrate_entry: list_head
§hlist_entry: hlist_node
§active_entry: list_head
§nr_siblings: i32
§event_caps: i32
§group_caps: i32
§group_generation: u32
§group_leader: *mut perf_event
§pmu: *mut c_void
§pmu_private: *mut c_void
§state: perf_event_state
§attach_state: u32
§count: __anon_25
§child_count: __anon_12
§total_time_enabled: u64
§total_time_running: u64
§tstamp: u64
§attr: perf_event_attr
§header_size: u16
§id_header_size: u16
§read_size: u16
§hw: hw_perf_event
§ctx: *mut c_void
§pmu_ctx: *mut c_void
§refcount: __anon_12
§child_total_time_enabled: __anon_12
§child_total_time_running: __anon_12
§child_mutex: mutex
§child_list: list_head
§parent: *mut perf_event
§oncpu: i32
§cpu: i32
§owner_entry: list_head
§owner: *mut task_struct
§mmap_mutex: mutex
§mmap_count: __anon_4
§__pad_716: [u8; 4]
§rb: *mut c_void
§rb_entry: list_head
§rcu_batches: u64
§rcu_pending: i32
§__pad_756: [u8; 4]
§waitq: wait_queue_head
§fasync: *mut c_void
§pending_wakeup: u32
§pending_kill: u32
§pending_disable: u32
§__pad_804: [u8; 4]
§pending_addr: u64
§pending_irq: irq_work
§pending_disable_irq: irq_work
§pending_task: callback_head
§pending_work: u32
§__pad_900: [u8; 4]
§pending_work_wait: rcuwait
§event_limit: __anon_4
§__pad_916: [u8; 4]
§addr_filters: perf_addr_filters_head
§addr_filter_ranges: *mut c_void
§addr_filters_gen: u64
§aux_event: *mut perf_event
§destroy: *mut c_void
§callback_head: callback_head
§ns: *mut pid_namespace
§id: u64
§lost_samples: __anon_12
§clock: *mut c_void
§overflow_handler: *mut c_void
§overflow_handler_context: *mut c_void
§prog: *mut c_void
§tp_event: *mut c_void
§filter: *mut c_void
§ftrace_ops: ftrace_ops
§cgrp: *mut c_void
§sb_list: list_head
§orig_type: u32
§__pad_1316: [u8; 4]
Trait Implementations§
Source§impl Clone for perf_event
impl Clone for perf_event
Source§fn clone(&self) -> perf_event
fn clone(&self) -> perf_event
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for perf_event
impl Debug for perf_event
Source§impl Default for perf_event
impl Default for perf_event
impl Copy for perf_event
Auto Trait Implementations§
impl Freeze for perf_event
impl RefUnwindSafe for perf_event
impl !Send for perf_event
impl !Sync for perf_event
impl Unpin for perf_event
impl UnwindSafe for perf_event
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.