Struct nc::types::perf_branch_entry_t
source · #[repr(C)]pub struct perf_branch_entry_t {
pub from: u64,
pub to: u64,
pub mispred: u8,
pub predicted: u8,
pub in_tx: u8,
pub abort: u8,
pub cycles: u8,
pub type_: u8,
/* private fields */
}
Expand description
single taken branch record layout:
- from: source instruction (may not always be a branch insn)
- to: branch target
- mispred: branch target was mispredicted
- predicted: branch target was predicted
support for mispred, predicted is optional. In case it is not supported mispred = predicted = 0.
in_tx
: running in a hardware transactionabort
: aborting a hardware transactioncycles
: cycles from last branch (or 0 if not supported)type
: branch type
Fields§
§from: u64
§to: u64
§mispred: u8
target mispredicted
predicted: u8
target predicted
in_tx: u8
in transaction
abort: u8
transaction abort
cycles: u8
cycle count to last branch
type_: u8
branch type
Auto Trait Implementations§
impl Freeze for perf_branch_entry_t
impl RefUnwindSafe for perf_branch_entry_t
impl Send for perf_branch_entry_t
impl Sync for perf_branch_entry_t
impl Unpin for perf_branch_entry_t
impl UnwindSafe for perf_branch_entry_t
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