]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/x86: Move branch classifier
authorSandipan Das <sandipan.das@amd.com>
Thu, 11 Aug 2022 12:29:56 +0000 (17:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:58:58 +0000 (11:58 +0200)
commit419ac18d880868efe291215bbb4296c39a3d8169
treeb2eed5678ee9b4cb36e64757c9c47a42a217a9b4
parent030099bc9115ec0db1de33665eb47bc8cade9e62
perf/x86: Move branch classifier

[ Upstream commit 4462fbfe6ec1bfe2196b977010f6ce7b43a32f2c ]

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
Stable-dep-of: e53899771a02 ("perf/x86/lbr: Filter vsyscall addresses")
Signed-off-by: Sasha Levin <sashal@kernel.org>
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]