Struct wasmtime_jit_debug::perf_jitdump::FileHeader

source ·
#[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§

source§

impl Clone for FileHeader

source§

fn clone(&self) -> FileHeader

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FileHeader

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FileHeader

source§

fn default() -> FileHeader

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

impl Copy for FileHeader

source§

impl Pod for FileHeader

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.