https://github.com/torvalds/linux
Revision fc17db8aa4c53cbd2d5469bb0521ea0f0a6dbb27 authored by Stephane Eranian on 26 November 2020, 11:09:22 UTC, committed by Peter Zijlstra on 03 December 2020, 09:00:26 UTC
The kernel cannot disambiguate when 2+ PEBS counters overflow at the
same time. This is what the comment for this code suggests.  However,
I see the comparison is done with the unfiltered p->status which is a
copy of IA32_PERF_GLOBAL_STATUS at the time of the sample. This
register contains more than the PEBS counter overflow bits. It also
includes many other bits which could also be set.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20201126110922.317681-2-namhyung@kernel.org
1 parent 5debf02
History
Tip revision: fc17db8aa4c53cbd2d5469bb0521ea0f0a6dbb27 authored by Stephane Eranian on 26 November 2020, 11:09:22 UTC
perf/x86/intel: Check PEBS status correctly
Tip revision: fc17db8
File Mode Size
Kconfig -rw-r--r-- 75.3 KB
Makefile -rw-r--r-- 1.2 KB
calibrate.c -rw-r--r-- 8.6 KB
do_mounts.c -rw-r--r-- 14.8 KB
do_mounts.h -rw-r--r-- 908 bytes
do_mounts_initrd.c -rw-r--r-- 3.4 KB
do_mounts_rd.c -rw-r--r-- 7.7 KB
init_task.c -rw-r--r-- 6.1 KB
initramfs.c -rw-r--r-- 13.9 KB
main.c -rw-r--r-- 37.0 KB
noinitramfs.c -rw-r--r-- 813 bytes
version.c -rw-r--r-- 1.3 KB

back to top