perf/x86/amd/lbr: Add LbrExtV2 branch speculation info support
authorSandipan Das <sandipan.das@amd.com>
Thu, 11 Aug 2022 12:30:01 +0000 (18:00 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 26 Aug 2022 22:05:45 +0000 (00:05 +0200)
commit0bc3be5b4bfd5b75086c26d63584a6f7aaea87d5
tree15e21d71b36fe1df41c584419274433d842192b0
parent93315e46b000fc80fff5d53c3f444417fb3df6de
perf/x86/amd/lbr: Add LbrExtV2 branch speculation info support

Provide branch speculation information captured via AMD Last Branch Record
Extension Version 2 (LbrExtV2) by setting the speculation info in branch
records. The info is based on the "valid" and "spec" bits in the Branch To
registers.

Suggested-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/ddc02f6320464cad0e3ff5bdb2314531568a91bc.1660211399.git.sandipan.das@amd.com
arch/x86/events/amd/lbr.c