]> Git Repo - linux.git/commit
perf/core: Add speculation info to branch entries
authorSandipan Das <[email protected]>
Thu, 11 Aug 2022 12:30:00 +0000 (18:00 +0530)
committerPeter Zijlstra <[email protected]>
Fri, 26 Aug 2022 22:05:45 +0000 (00:05 +0200)
commit93315e46b000fc80fff5d53c3f444417fb3df6de
treee0f87db286a0c398c45aac05387b06407942ca94
parent245268c19f701c7222dedcb6a383bc73d63925d4
perf/core: Add speculation info to branch entries

Add a new "spec" bitfield to branch entries for providing speculation
information. This will be populated using hints provided by branch sampling
features on supported hardware. The following cases are covered:

  * No branch speculation information is available
  * Branch is speculative but taken on the wrong path
  * Branch is non-speculative but taken on the correct path
  * Branch is speculative and taken on the correct path

Suggested-by: Stephane Eranian <[email protected]>
Signed-off-by: Sandipan Das <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/834088c302faf21c7b665031dd111f424e509a64.1660211399.git.sandipan.das@amd.com
include/linux/perf_event.h
include/uapi/linux/perf_event.h
This page took 0.057647 seconds and 4 git commands to generate.