[][src]Struct nc::types::perf_branch_entry_t

#[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,
    // some fields omitted
}

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 transaction
  • abort: aborting a hardware transaction
  • cycles: cycles from last branch (or 0 if not supported)
  • type: branch type

Fields

from: u64to: u64mispred: 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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]