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
sourceimpl Clone for FileHeader
impl Clone for FileHeader
sourcefn clone(&self) -> FileHeader
fn clone(&self) -> FileHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FileHeader
impl Debug for FileHeader
sourceimpl Default for FileHeader
impl Default for FileHeader
sourcefn default() -> FileHeader
fn default() -> FileHeader
Returns the “default value” for a type. Read more
impl Copy for FileHeader
impl Pod for FileHeader
Auto Trait Implementations
impl RefUnwindSafe for FileHeader
impl Send for FileHeader
impl Sync for FileHeader
impl Unpin for FileHeader
impl UnwindSafe for FileHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more