Skip to content

Commit c53c6b7

Browse files
calmisiPeter Zijlstra
authored andcommitted
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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Alexander Shishkin <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent e22ce8e commit c53c6b7

File tree

1 file changed

+1
-1
lines changed
  • arch/x86/events/intel

1 file changed

+1
-1
lines changed

arch/x86/events/intel/pt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static struct pt_cap_desc {
6262
PT_CAP(single_range_output, 0, CPUID_ECX, BIT(2)),
6363
PT_CAP(output_subsys, 0, CPUID_ECX, BIT(3)),
6464
PT_CAP(payloads_lip, 0, CPUID_ECX, BIT(31)),
65-
PT_CAP(num_address_ranges, 1, CPUID_EAX, 0x3),
65+
PT_CAP(num_address_ranges, 1, CPUID_EAX, 0x7),
6666
PT_CAP(mtc_periods, 1, CPUID_EAX, 0xffff0000),
6767
PT_CAP(cycle_thresholds, 1, CPUID_EBX, 0xffff),
6868
PT_CAP(psb_periods, 1, CPUID_EBX, 0xffff0000),

0 commit comments

Comments
 (0)