]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/amd/lbr: Add LbrExtV2 software branch filter support
authorSandipan Das <sandipan.das@amd.com>
Thu, 11 Aug 2022 12:29:57 +0000 (17:59 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 26 Aug 2022 22:05:44 +0000 (00:05 +0200)
commit9d20e4a2b64567d51d283a415c343964efc8db8e
tree0faf447e9152652a83ec8cefb5aee0a49820b8f6
parentab4e1d50d7606310e48ebd8f435c15c0b9b34eee
perf/x86/amd/lbr: Add LbrExtV2 software branch filter support

With AMD Last Branch Record Extension Version 2 (LbrExtV2), it is necessary
to process the branch records further as hardware filtering is not granular
enough for identifying certain types of branches. E.g. to record system
calls, one should record far branches. The filter captures both far calls
and far returns but the irrelevant records are filtered out based on the
branch type as seen by the branch classifier.

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