#[repr(C)]pub struct cpu_cached_instruction_interface {
pub register_instruction_before_cb: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_instruction_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>,
pub register_instruction_after_cb: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_instruction_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>,
pub register_read_before_cb: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_memory_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>,
pub register_read_after_cb: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_memory_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>,
pub register_write_before_cb: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_memory_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>,
pub register_write_after_cb: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_memory_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>,
pub add_counter: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, counter: *mut uint64, use_atomic_increment: bool)>,
}
Fields§
§register_instruction_before_cb: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_instruction_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>
§register_instruction_after_cb: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_instruction_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>
§register_read_before_cb: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_memory_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>
§register_read_after_cb: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_memory_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>
§register_write_before_cb: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_memory_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>
§register_write_after_cb: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, cb: cpu_memory_cb_t, user_data: *mut lang_void, free_cb: cpu_callback_free_user_data_cb_t)>
§add_counter: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ci_handle: *mut cached_instruction_handle_t, counter: *mut uint64, use_atomic_increment: bool)>
Trait Implementations§
source§impl Clone for cpu_cached_instruction_interface
impl Clone for cpu_cached_instruction_interface
source§fn clone(&self) -> cpu_cached_instruction_interface
fn clone(&self) -> cpu_cached_instruction_interface
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 Default for cpu_cached_instruction_interface
impl Default for cpu_cached_instruction_interface
source§fn default() -> cpu_cached_instruction_interface
fn default() -> cpu_cached_instruction_interface
Returns the “default value” for a type. Read more
source§impl Ord for cpu_cached_instruction_interface
impl Ord for cpu_cached_instruction_interface
source§fn cmp(&self, other: &cpu_cached_instruction_interface) -> Ordering
fn cmp(&self, other: &cpu_cached_instruction_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for cpu_cached_instruction_interface
impl PartialEq for cpu_cached_instruction_interface
source§fn eq(&self, other: &cpu_cached_instruction_interface) -> bool
fn eq(&self, other: &cpu_cached_instruction_interface) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl PartialOrd for cpu_cached_instruction_interface
impl PartialOrd for cpu_cached_instruction_interface
impl Copy for cpu_cached_instruction_interface
impl Eq for cpu_cached_instruction_interface
impl StructuralPartialEq for cpu_cached_instruction_interface
Auto Trait Implementations§
impl Freeze for cpu_cached_instruction_interface
impl RefUnwindSafe for cpu_cached_instruction_interface
impl Send for cpu_cached_instruction_interface
impl Sync for cpu_cached_instruction_interface
impl Unpin for cpu_cached_instruction_interface
impl UnwindSafe for cpu_cached_instruction_interface
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)