The OpenD Programming Language

perf_branch_entry

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.

More...
version(linux)
extern (C) @nogc nothrow
struct perf_branch_entry {
enum ulong mispred_min;
enum ulong mispred_max;
enum ulong predicted_min;
enum ulong predicted_max;
enum ulong in_tx_min;
enum ulong in_tx_max;
enum ulong abort_min;
enum ulong abort_max;
enum ulong cycles_min;
enum ulong cycles_max;
enum ulong type_min;
enum ulong type_max;
enum ulong reserved_min;
enum ulong reserved_max;
}

Members

Properties

abort
ulong abort [@property getter]
abort
ulong abort [@property setter]
cycles
ulong cycles [@property getter]
cycles
ulong cycles [@property setter]
in_tx
ulong in_tx [@property getter]
in_tx
ulong in_tx [@property setter]
mispred
ulong mispred [@property getter]
mispred
ulong mispred [@property setter]
predicted
ulong predicted [@property getter]
predicted
ulong predicted [@property setter]
reserved
ulong reserved [@property setter]
reserved
ulong reserved [@property getter]
type
ulong type [@property getter]
type
ulong type [@property setter]

Variables

from
ulong from;
to
ulong to;

Detailed Description

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

Meta