#[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 transaction
  • abort: aborting a hardware transaction
  • cycles: 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§

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