WSL2-Linux-Kernel/arch/x86/events
Adrian Hunter 84ba02e905 perf/x86/intel/pt: Fix pt_topa_entry_for_page() address calculation
[ Upstream commit 3520b251dcae2b4a27b95cd6f745c54fd658bda5 ]

Currently, perf allocates an array of page pointers which is limited in
size by MAX_PAGE_ORDER. That in turn limits the maximum Intel PT buffer
size to 2GiB. Should that limitation be lifted, the Intel PT driver can
support larger sizes, except for one calculation in
pt_topa_entry_for_page(), which is limited to 32-bits.

Fix pt_topa_entry_for_page() address calculation by adding a cast.

Fixes: 39152ee51b ("perf/x86/intel/pt: Get rid of reverse lookup table for ToPA")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240624201101.60186-4-adrian.hunter@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-19 05:44:58 +02:00
..
amd perf/ibs: Fix interface via core pmu events 2023-07-23 13:46:47 +02:00
intel perf/x86/intel/pt: Fix pt_topa_entry_for_page() address calculation 2024-08-19 05:44:58 +02:00
zhaoxin x86/perf/zhaoxin: Add stepping check for ZXC 2023-03-10 09:39:05 +01:00
Kconfig perf/amd/uncore: Allow the driver to be built as a module 2021-08-26 09:14:36 +02:00
Makefile perf/x86: Move branch classifier 2023-10-25 11:58:58 +02:00
core.c perf/x86: Fix out of range data 2024-04-17 11:15:16 +02:00
msr.c perf/x86/msr: Add Emerald Rapids 2023-02-01 08:27:17 +01:00
perf_event.h perf/x86: Move branch classifier 2023-10-25 11:58:58 +02:00
probe.c perf/x86/rapl: Add msr mask support 2021-02-10 14:44:54 +01:00
probe.h perf/x86/rapl: Add msr mask support 2021-02-10 14:44:54 +01:00
rapl.c perf/x86/rapl: Treat Tigerlake like Icelake 2023-01-24 07:22:42 +01:00
utils.c perf/x86/lbr: Filter vsyscall addresses 2023-10-25 11:58:58 +02:00