#[repr(C)]pub struct EventHeader {
pub timestamp_ns: u64,
pub pid: u32,
pub tgid: u32,
pub stack_id: i32,
pub kernel_stack_id: i32,
pub stack_kind: u8,
pub event_type: u8,
pub cpu: u8,
pub _padding: [u8; 5],
}Expand description
Common header for all events
Fields§
§timestamp_ns: u64§pid: u32§tgid: u32§stack_id: i32User-space stack id from bpf_get_stackid(BPF_F_USER_STACK), or -1.
kernel_stack_id: i32Kernel-space stack id from bpf_get_stackid(0), or -1.
stack_kind: u8§event_type: u8§cpu: u8§_padding: [u8; 5]Trait Implementations§
Source§impl Clone for EventHeader
impl Clone for EventHeader
Source§fn clone(&self) -> EventHeader
fn clone(&self) -> EventHeader
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 moreSource§impl Debug for EventHeader
impl Debug for EventHeader
impl Copy for EventHeader
Auto Trait Implementations§
impl Freeze for EventHeader
impl RefUnwindSafe for EventHeader
impl Send for EventHeader
impl Sync for EventHeader
impl Unpin for EventHeader
impl UnwindSafe for EventHeader
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