]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/pt: Fix mask of num_address_ranges
authorXiaoyao Li <xiaoyao.li@intel.com>
Tue, 24 Aug 2021 04:06:22 +0000 (12:06 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 25 Aug 2021 13:42:31 +0000 (15:42 +0200)
commit90d6e099063df309edcf99ab5372f69a668f1989
tree790987a75c7b3989f8d0f1c3cbf885055503db0f
parentce1c8ff730a9d52cea6c427c4d2fbd6de7a3061a
perf/x86/intel/pt: Fix mask of num_address_ranges

Per SDM, bit 2:0 of CPUID(0x14,1).EAX[2:0] reports the number of
configurable address ranges for filtering, not bit 1:0.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Link: https://lkml.kernel.org/r/20210824040622.4081502-1-xiaoyao.li@intel.com
arch/x86/events/intel/pt.c