#[repr(C)]
pub struct _iJIT_Method_Update { pub load_address: *mut c_void, pub size: c_uint, pub type_: iJIT_SegmentType, pub data_format: *const c_char, }
Expand description

@brief Description of a dynamic update of the content within JIT-compiled method @details The JIT engine may generate the methods that are updated at runtime partially by mixed (data + executable code) content. When you use the iJIT_Method_Update structure to describe the update of the content within a JIT-compiled method, use iJVM_EVENT_TYPE_METHOD_UPDATE_V2 as an event type to report it.

On the first Update event, VTune Amplifier copies the original code range reported by the iJVM_EVENT_TYPE_METHOD_LOAD event, then modifies it with the supplied bytes and adds the modified range to the original method. For next update events, VTune Amplifier does the same but it uses the latest modified version of a code region for update. Eventually, VTune Amplifier GUI displays multiple code ranges for the method reported by the iJVM_EVENT_TYPE_METHOD_LOAD event. Notes:

  • Multiple update events with different types for the same trace are allowed but they must be reported for the same code ranges. Example, @code [– data—] Allowed [– code –] Allowed [code] Ignored [– data—] Allowed [– code –] Allowed [———— trace ———] @endcode
  • The types of previously reported events can be changed but they must be reported for the same code ranges. Example, @code [– data—] Allowed [– code –] Allowed [– data—] Allowed [– code –] Allowed [———— trace ———] @endcode

Fields§

§load_address: *mut c_void

<\brief Start address of the update within a method

§size: c_uint

<\brief The update size

§type_: iJIT_SegmentType

<\brief Type of the update

§data_format: *const c_char

<\brief C string that contains a format string that follows the same specifications as format in printf. The format string is used for iJIT_CT_CODE only and cannot be NULL. Format can be changed on the fly.

Trait Implementations§

source§

impl Clone for _iJIT_Method_Update

source§

fn clone(&self) -> _iJIT_Method_Update

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 _iJIT_Method_Update

source§

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

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

impl Copy for _iJIT_Method_Update

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> 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.