#[repr(C)]pub struct pt_event {
pub type_: pt_event_type,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub tsc: u64,
pub lost_mtc: u32,
pub lost_cyc: u32,
pub reserved: [u64; 2],
pub variant: pt_event__bindgen_ty_1,
}Expand description
An event.
Fields§
§type_: pt_event_typeThe type of the event.
_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§tsc: u64The time stamp count of the event.
This field is only valid if @has_tsc is set.
lost_mtc: u32The number of lost mtc and cyc packets.
This gives an idea about the quality of the @tsc. The more packets were dropped, the less precise timing is.
lost_cyc: u32§reserved: [u64; 2]§variant: pt_event__bindgen_ty_1Implementations§
Source§impl pt_event
impl pt_event
pub fn ip_suppressed(&self) -> u32
pub fn set_ip_suppressed(&mut self, val: u32)
pub fn status_update(&self) -> u32
pub fn set_status_update(&mut self, val: u32)
pub fn has_tsc(&self) -> u32
pub fn set_has_tsc(&mut self, val: u32)
pub fn new_bitfield_1( ip_suppressed: u32, status_update: u32, has_tsc: u32, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for pt_event
impl RefUnwindSafe for pt_event
impl Send for pt_event
impl Sync for pt_event
impl Unpin for pt_event
impl UnwindSafe for pt_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