Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

perf_event_header

Public Struct
std.os.linux.perf_event_header
pub const perf_event_header = extern struct

Fields

type: PERF.RECORD

Event 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: u16

Size of the following record

File

os/linux.zig:10457
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
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,
}