[][src]Struct libipt_sys::pt_event

#[repr(C)]
pub struct pt_event {
    pub type_: pt_event_type,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub tsc: u64,
    pub lost_mtc: u32,
    pub lost_cyc: u32,
    pub reserved: [u64; 2],
    pub variant: pt_event__bindgen_ty_1,
}

An event.

Fields

type_: pt_event_type

The type of the event.

_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>tsc: u64

The time stamp count of the event.

This field is only valid if @has_tsc is set.

lost_mtc: u32

The 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: u32reserved: [u64; 2]variant: pt_event__bindgen_ty_1

Methods

impl pt_event[src]

pub fn ip_suppressed(&self) -> u32[src]

pub fn set_ip_suppressed(&mut self, val: u32)[src]

pub fn status_update(&self) -> u32[src]

pub fn set_status_update(&mut self, val: u32)[src]

pub fn has_tsc(&self) -> u32[src]

pub fn set_has_tsc(&mut self, val: u32)[src]

pub fn new_bitfield_1(
    ip_suppressed: u32,
    status_update: u32,
    has_tsc: u32
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for pt_event[src]

impl Copy for pt_event[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]