perf/x86: Move branch classifier
authorSandipan Das <sandipan.das@amd.com>
Thu, 11 Aug 2022 12:29:56 +0000 (17:59 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 26 Aug 2022 22:05:44 +0000 (00:05 +0200)
commit4462fbfe6ec1bfe2196b977010f6ce7b43a32f2c
tree487d28283283023c3a57ba570318d32467aeb878
parentf4f925dae7419fc7a10af539c073871927ce3a24
perf/x86: Move branch classifier

Commit 3e702ff6d1ea ("perf/x86: Add LBR software filter support for Intel
CPUs") introduces a software branch filter which complements the hardware
branch filter and adds an x86 branch classifier.

Move the branch classifier to arch/x86/events/ so that it can be utilized
by other vendors for branch record filtering.

Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/bae5b95470d6bd49f40954bd379f414f5afcb965.1660211399.git.sandipan.das@amd.com
arch/x86/events/Makefile
arch/x86/events/intel/lbr.c
arch/x86/events/perf_event.h
arch/x86/events/utils.c [new file with mode: 0644]