]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/amd/core: Add generic branch record interfaces
authorSandipan Das <sandipan.das@amd.com>
Thu, 11 Aug 2022 12:29:51 +0000 (17:59 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 26 Aug 2022 22:05:42 +0000 (00:05 +0200)
commit21a5043ff2b02186416f21f8ea8a4b3c573087de
tree8627cb45a62c0ffcf0706bae8fe26c891e94d99e
parent371a887b33efe7711b748db46ab0b3c6e7500be1
perf/x86/amd/core: Add generic branch record interfaces

AMD processors that are capable of recording branches support either Branch
Sampling (BRS) or Last Branch Record (LBR). In preparation for adding Last
Branch Record Extension Version 2 (LbrExtV2) support, introduce new static
calls which act as gateways to call into the feature-dependent functions
based on what is available on the processor.

Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/b75dbc32663cb395f0d701167e952c6a6b0445a3.1660211399.git.sandipan.das@amd.com
arch/x86/events/amd/core.c