Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Does LBR_SELECT apply to BTF?

tarmeneldur
Beginner
127 Views
Hi all,

Very simple question: does the new LBR_SELECT branch filtering capability (introduced in Nehalem) also apply to the BTF branch single-stepping or just LBR (Last Branch Record tracing)? The naming of the feature suggests the later, but I just wanted to make sure.

Being able to single-step in selected classes of branches (as opposed to all of them) would help me a lot with the work that I am doing.

Thanks in advance.

0 Kudos
2 Replies
SHIH_K_Intel
Employee
127 Views
I don't believe so.
Typical usage of LBR is profiling, when the instruction stream is progressing normally, and a stack of LBR can capture branch addresses over a larger window of ip addresses. If you are already single-stepping, historical branch addressescould be captured bythe tool already withoutusing additional facility in the cpu hardware.
tarmeneldur
Beginner
127 Views
I see. Do you know if this is also the case with BTS (Branch Trace Store), meaning, can we use LBR_SELECT to filter out which branch record are saved to the BTS buffer in memory?

Thanks again,

Reply