public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V7 1/3] perf/x86/intel/ds: Add PEBS format 6
@ 2024-12-20 14:38 kan.liang
  2024-12-20 14:38 ` [PATCH V7 2/3] perf: Avoid the read if the count is already updated kan.liang
  2024-12-20 14:38 ` [PATCH V7 3/3] perf/x86/intel: Support PEBS counters snapshotting kan.liang
  0 siblings, 2 replies; 3+ messages in thread
From: kan.liang @ 2024-12-20 14:38 UTC (permalink / raw)
  To: peterz, mingo, acme, namhyung, irogers, adrian.hunter,
	linux-kernel, linux-perf-users
  Cc: ak, eranian, dapeng1.mi, Kan Liang, stable

From: Kan Liang <kan.liang@linux.intel.com>

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: a932aa0e868f ("perf/x86: Add Lunar Lake and Arrow Lake support")
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Cc: stable@vger.kernel.org
---

No changes since V6

 arch/x86/events/intel/ds.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/events/intel/ds.c b/arch/x86/events/intel/ds.c
index 8dcf90f6fb59..ba74e1198328 100644
--- a/arch/x86/events/intel/ds.c
+++ b/arch/x86/events/intel/ds.c
@@ -2551,6 +2551,7 @@ void __init intel_ds_init(void)
 			x86_pmu.large_pebs_flags |= PERF_SAMPLE_TIME;
 			break;
 
+		case 6:
 		case 5:
 			x86_pmu.pebs_ept = 1;
 			fallthrough;
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-20 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-20 14:38 [PATCH V7 1/3] perf/x86/intel/ds: Add PEBS format 6 kan.liang
2024-12-20 14:38 ` [PATCH V7 2/3] perf: Avoid the read if the count is already updated kan.liang
2024-12-20 14:38 ` [PATCH V7 3/3] perf/x86/intel: Support PEBS counters snapshotting kan.liang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox