Commit bdb35096 authored by Sandipan Das's avatar Sandipan Das Committed by Junhao He
Browse files

perf/core: Add speculation info to branch entries

mainline inclusion
from mainline-v6.1-rc1
commit 93315e46
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8EC9K
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=93315e46b000fc80fff5d53c3f444417fb3df6de



--------------------------------

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: default avatarStephane Eranian <eranian@google.com>
Signed-off-by: default avatarSandipan Das <sandipan.das@amd.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/834088c302faf21c7b665031dd111f424e509a64.1660211399.git.sandipan.das@amd.com


Signed-off-by: default avatarJunhao He <hejunhao3@huawei.com>
parent 35b50e82
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment