Bug 7923 - Intel: Backport PEBS format 5 support to devel-5.10 for GNR/SRF Timed PEBS enabling
Summary: Intel: Backport PEBS format 5 support to devel-5.10 for GNR/SRF Timed PEBS en...
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-17 14:51 UTC by yunyings
Modified: 2024-01-17 15:34 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yunyings intel_group 2024-01-17 14:51:25 UTC
To support the new feature "Timed PEBS" which will be supported since next Intel Xeon platforms Granite Rapids(GNR) and Sierra Forest(SRF), PEBS format 5 is a pre-requisite.

PEBS format 5 support has been included in mainline kernel since kernel v5.18-rc1:
ee28855a5449 perf/x86/intel: Increase max number of the fixed counters
0144ba0c5bd3 KVM: x86: use the KVM side max supported fixed counter
2145e77fecfb perf/x86/intel: Enable PEBS format 5

LKML: https://lore.kernel.org/lkml/1643750603-100733-1-git-send-email-kan.liang@linux.intel.com/

Since the Timed PEBS kernel commit:
(v6.3-rc1) c87a31093c70 perf/x86: Support Retire Latency
has been included and merged along with the SRF core PMU PR:
https://gitee.com/anolis/cloud-kernel/pulls/2495

and besides that we won't backport the Timed PEBS needed user space perf tool patches(to avoid introducing too many dependencies):
4e846311a9be perf script: Fix missing Retire Latency fields option documentation
957ed139d760 perf event x86: Add retire_lat when synthesizing PERF_SAMPLE_WEIGHT_STRUCT
e65f91b20c3d perf test x86: Support the retire_lat (Retire Latency) sample_type check
17f248aa8664 perf script: Support Retire Latency
d7d213e04cf8 perf report: Support Retire Latency

so PEBS format 5 patches are all that needed for Timed PEBS support on devel-5.10. 

Note: one dependent commit has been identified:
(v5.14-rc1) 4c58d922c087 perf/x86/intel: Fix PEBS-via-PT reload base value for Extended PEBS
which is needed by (2145e77fecfb perf/x86/intel: Enable PEBS format 5).
Comment 1 小龙 admin 2024-01-17 15:34:09 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2622