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
impl Clone for FileHeader
source§fn clone(&self) -> FileHeader
fn clone(&self) -> FileHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FileHeader
impl Debug for FileHeader
source§impl Default for FileHeader
impl Default for FileHeader
source§fn 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 Freeze for FileHeader
impl RefUnwindSafe for FileHeader
impl Send for FileHeader
impl Sync for FileHeader
impl Unpin for FileHeader
impl UnwindSafe for FileHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)