extern struct perf_event_header [src]
Fields
type: PERF.RECORDEvent type: sample/mmap/fork/etc.
misc: packed struct(u16) {
cpu_mode: PERF.RECORD.MISC.CPU_MODE,
_: u9,
PROC_MAP_PARSE_TIMEOUT: bool,
bit13: packed union {
MMAP_DATA: bool,
COMM_EXEC: bool,
FORK_EXEC: bool,
SWITCH_OUT: bool,
},
bit14: packed union {
EXACT_IP: bool,
SWITCH_OUT_PREEMPT: bool,
MMAP_BUILD_ID: bool,
},
EXT_RESERVED: bool,
}Additional informations on the event: kernel/user/hypervisor/etc.
size: u16Size of the following record
Source
pub const perf_event_header = extern struct {
/// Event type: sample/mmap/fork/etc.
type: PERF.RECORD,
/// Additional informations on the event: kernel/user/hypervisor/etc.
misc: packed struct(u16) {
cpu_mode: PERF.RECORD.MISC.CPU_MODE,
_: u9,
PROC_MAP_PARSE_TIMEOUT: bool,
bit13: packed union {
MMAP_DATA: bool,
COMM_EXEC: bool,
FORK_EXEC: bool,
SWITCH_OUT: bool,
},
bit14: packed union {
EXACT_IP: bool,
SWITCH_OUT_PREEMPT: bool,
MMAP_BUILD_ID: bool,
},
EXT_RESERVED: bool,
},
/// Size of the following record
size: u16,
}