pub enum PerfEventType {
Tracepoint {
name: Option<OsString>,
cookie: u64,
},
Kprobe {
func_name: Option<OsString>,
is_retprobe: bool,
addr: u64,
offset: u32,
missed: u64,
cookie: u64,
},
Uprobe {
file_name: Option<OsString>,
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
Auto Trait Implementations§
impl Freeze for PerfEventType
impl RefUnwindSafe for PerfEventType
impl Send for PerfEventType
impl Sync for PerfEventType
impl Unpin for PerfEventType
impl UnsafeUnpin 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