#[repr(C)]
pub struct FileHeader { pub magic: u32, pub version: u32, pub size: u32, pub e_machine: u32, pub pad1: u32, pub pid: u32, pub timestamp: u64, pub flags: u64, }
Expand description

Fixed-sized header for each jitdump file

Fields

magic: u32

uint32_t magic: a magic number tagging the file type. The value is 4-byte long and represents the string “JiTD” in ASCII form. It is 0x4A695444 or 0x4454694a depending on the endianness. The field can be used to detect the endianness of the file

version: u32

uint32_t version: a 4-byte value representing the format version. It is currently set to 2

size: u32

uint32_t total_size: size in bytes of file header

e_machine: u32

uint32_t elf_mach: ELF architecture encoding (ELF e_machine value as specified in /usr/include/elf.h)

pad1: u32

uint32_t pad1: padding. Reserved for future use

pid: u32

uint32_t pid: JIT runtime process identification (OS specific)

timestamp: u64

uint64_t timestamp: timestamp of when the file was created

flags: u64

uint64_t flags: a bitmask of flags

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.