pub enum PerfEventType {
Tracepoint {
name: Option<CString>,
cookie: u64,
},
Kprobe {
func_name: Option<CString>,
is_retprobe: bool,
addr: u64,
offset: u32,
missed: u64,
cookie: u64,
},
Uprobe {
file_name: Option<CString>,
is_retprobe: bool,
offset: u32,
cookie: u64,
ref_ctr_offset: u64,
},
Event {
config: u64,
event_type: u32,
cookie: u64,
},
Unknown(u32),
}Expand description
Specific types of perf events with decoded information.
Variants§
Tracepoint
A tracepoint event.
Kprobe
A kprobe event (includes both kprobe and kretprobe).
Fields
Cookie value for the kprobe.
Uprobe
A uprobe event (includes both uprobe and uretprobe).
Fields
Cookie value for the uprobe.
Event
A perf event.
Fields
Cookie value for the perf event program.
Unknown(u32)
An unknown or unsupported perf event type.
Trait Implementations§
Source§impl Clone for PerfEventType
impl Clone for PerfEventType
Source§fn clone(&self) -> PerfEventType
fn clone(&self) -> PerfEventType
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PerfEventType
impl RefUnwindSafe for PerfEventType
impl Send for PerfEventType
impl Sync for PerfEventType
impl Unpin for PerfEventType
impl UnwindSafe for PerfEventType
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