Skip to content

Commit b8c3a25

Browse files
Kan LiangPeter Zijlstra
authored andcommitted
perf/x86/intel/ds: Add PEBS format 6
The only difference between 5 and 6 is the new counters snapshotting group, without the following counters snapshotting enabling patches, it's impossible to utilize the feature in a PEBS record. It's safe to share the same code path with format 5. Add format 6, so the end user can at least utilize the legacy PEBS features. Fixes: a932aa0 ("perf/x86: Add Lunar Lake and Arrow Lake support") Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20241216204505.748363-1-kan.liang@linux.intel.com
1 parent b6ccddd commit b8c3a25

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

arch/x86/events/intel/ds.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2517,6 +2517,7 @@ void __init intel_ds_init(void)
25172517
x86_pmu.large_pebs_flags |= PERF_SAMPLE_TIME;
25182518
break;
25192519

2520+
case 6:
25202521
case 5:
25212522
x86_pmu.pebs_ept = 1;
25222523
fallthrough;

0 commit comments

Comments
 (0)