pub const perf_event_header = extern struct 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
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480pub 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,
}