Trace hw branches

modulename: trace_hw_branches.ko

configname: CONFIG_HW_BRANCH_TRACER

Linux Kernel Configuration
└─>Tracers
└─>Trace hw branches
In linux kernel since version 2.6.29 (release Date: 2009-03-23)  
This tracer records all branches on the system in a circular
buffer, giving access to the last N branches for each cpu.

source code: