OSDN Git Service

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)
commitf9c732249b110fae9ebf4ce33db4cb3a12c6eae3
tree0faf447e9152652a83ec8cefb5aee0a49820b8f6
parent4462fbfe6ec1bfe2196b977010f6ce7b43a32f2c
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