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).
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2622