|Home > Plug-ins for Fast Models > BranchPrediction > Other ways to report branch mispredictions|
These are some alternative ways to report branch mispredictions:
The GenericTrace plug-in can generate MTI trace events that report branch mispredictions.
Specify the following parameter to the
--plugin $PVLIB_HOME/plugins/Linux64_GCC-6.4/GenericTrace.so / -C TRACE.GenericTrace.trace-sources=BRANCH_MISPREDICT
BranchPredictionplug-in must also be loaded to generate these events.
BranchPrediction plugin is integrated with the PMU event counters. On a Linux boot simulation, you can track the number of simulated branch mispredictions in an application by loading the
BranchPrediction plugin and running the
perf tool. For example, the following command displays the number of branch mispredictions that are made in an application called
perf stat –e branch-misses testapp