#[repr(C)]pub struct branch_recorder_handler_interface {Show 15 fields
pub attach_branch_recorder: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, brec: *mut conf_object_t) -> c_int>,
pub detach_branch_recorder: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, brec: *mut conf_object_t) -> c_int>,
pub create_cpu_branch_recorder: Option<unsafe extern "C" fn(br: *mut branch_recorder_t)>,
pub destroy_cpu_branch_recorder: Option<unsafe extern "C" fn(br: *mut branch_recorder_t)>,
pub delete_arcs: Option<unsafe extern "C" fn(br: *mut branch_recorder_t)>,
pub num_branches: Option<unsafe extern "C" fn(br: *mut branch_recorder_t) -> c_int>,
pub get_branches: Option<unsafe extern "C" fn(br: *mut branch_recorder_t) -> attr_value_t>,
pub iter: *mut iter_func_t,
pub iter_branch_arc: Option<unsafe extern "C" fn(br: *mut branch_recorder_t, start: generic_address_t, stop: generic_address_t, dir: branch_recorder_direction_t) -> *mut branch_arc_iter_t>,
pub eec_interrupt_instruction: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, extype: c_int) -> c_int>,
pub granularity_log2: c_uint,
pub view_descriptions: *mut *const c_char,
pub num_views: c_int,
pub pa_bits: c_int,
pub va_bits: c_int,
}
Fields§
§attach_branch_recorder: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, brec: *mut conf_object_t) -> c_int>
Attach/detach returns zero on error.
detach_branch_recorder: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, brec: *mut conf_object_t) -> c_int>
§create_cpu_branch_recorder: Option<unsafe extern "C" fn(br: *mut branch_recorder_t)>
§destroy_cpu_branch_recorder: Option<unsafe extern "C" fn(br: *mut branch_recorder_t)>
§delete_arcs: Option<unsafe extern "C" fn(br: *mut branch_recorder_t)>
§num_branches: Option<unsafe extern "C" fn(br: *mut branch_recorder_t) -> c_int>
§get_branches: Option<unsafe extern "C" fn(br: *mut branch_recorder_t) -> attr_value_t>
§iter: *mut iter_func_t
§iter_branch_arc: Option<unsafe extern "C" fn(br: *mut branch_recorder_t, start: generic_address_t, stop: generic_address_t, dir: branch_recorder_direction_t) -> *mut branch_arc_iter_t>
§eec_interrupt_instruction: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, extype: c_int) -> c_int>
§granularity_log2: c_uint
§view_descriptions: *mut *const c_char
§num_views: c_int
§pa_bits: c_int
§va_bits: c_int
Trait Implementations§
source§impl Clone for branch_recorder_handler_interface
impl Clone for branch_recorder_handler_interface
source§fn clone(&self) -> branch_recorder_handler_interface
fn clone(&self) -> branch_recorder_handler_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 Ord for branch_recorder_handler_interface
impl Ord for branch_recorder_handler_interface
source§fn cmp(&self, other: &branch_recorder_handler_interface) -> Ordering
fn cmp(&self, other: &branch_recorder_handler_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 branch_recorder_handler_interface
impl PartialEq for branch_recorder_handler_interface
source§fn eq(&self, other: &branch_recorder_handler_interface) -> bool
fn eq(&self, other: &branch_recorder_handler_interface) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl PartialOrd for branch_recorder_handler_interface
impl PartialOrd for branch_recorder_handler_interface
impl Copy for branch_recorder_handler_interface
impl Eq for branch_recorder_handler_interface
impl StructuralPartialEq for branch_recorder_handler_interface
Auto Trait Implementations§
impl Freeze for branch_recorder_handler_interface
impl RefUnwindSafe for branch_recorder_handler_interface
impl !Send for branch_recorder_handler_interface
impl !Sync for branch_recorder_handler_interface
impl Unpin for branch_recorder_handler_interface
impl UnwindSafe for branch_recorder_handler_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
)