perf_event

Struct perf_event 

Source
#[repr(C)]
pub struct perf_event {
Show 84 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_1, 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_1, pub child_total_time_enabled: __anon_1, pub child_total_time_running: __anon_1, 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 c_void, pub id: u64, pub lost_samples: __anon_1, 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 security: *mut c_void, pub sb_list: list_head, pub orig_type: u32, pub __pad_1324: [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_1§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_1§child_total_time_enabled: __anon_1§child_total_time_running: __anon_1§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 c_void§id: u64§lost_samples: __anon_1§clock: *mut c_void§overflow_handler: *mut c_void§overflow_handler_context: *mut c_void§prog: *mut c_void§bpf_cookie: u64§tp_event: *mut c_void§filter: *mut c_void§ftrace_ops: ftrace_ops§cgrp: *mut c_void§security: *mut c_void§sb_list: list_head§orig_type: u32§__pad_1324: [u8; 4]

Trait Implementations§

Source§

impl Clone for perf_event

Source§

fn clone(&self) -> perf_event

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for perf_event

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for perf_event

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for perf_event

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more