Skip to content

x86 perf bug fixes and optimization

Dapeng Mi linux-perf-users lkml 3 versions – Applied

Status from this message: The following commit has been merged into the perf/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 12 repliesApplied
  2. v26 patches 9 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Changes in v3 from the cover letter

* Rebase to latest tip perf/core tree.
* Rewrite commit message to explain why NULL access happens and refine code (Patch 3/7)
* Refine commit message of patch 6/7
* Dump counters bitmap instead of absolute counter in boot message

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7perf/x86/intel: Use early_initcall() to hook bts_init()arch/x86/events/intel/bts.c+1 -10 replies
2/7perf/x86/intel: Fix IA32_PMC_x_CFG_B MSRs access errorarch/x86/events/intel/core.c+2 -10 replies
3/7perf/x86: Check if cpuc->events[*] pointer exists before accessing itarch/x86/events/intel/ds.c+10 -08 replies
4/7perf/x86: Add PERF_CAP_PEBS_TIMING_INFO flagarch/x86/include/asm/msr-index.h tools/arch/x86/include/asm/msr-index.h+16 -120 replies
5/7perf/x86/intel: Change macro GLOBAL_CTRL_EN_PERF_METRICS to BIT_ULL(48)arch/x86/events/intel/core.c arch/x86/include/asm/perf_event.h+5 -51 reply
6/7perf/x86/intel: Add ICL_FIXED_0_ADAPTIVE bit into INTEL_FIXED_BITS_MASKarch/x86/events/intel/core.c arch/x86/include/asm/perf_event.h arch/x86/kvm/pmu.h+9 -90 replies
7/7perf/x86: Print PMU counters bitmap in x86_pmu_show_pmu_cap()arch/x86/events/core.c+9 -70 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKan Liangkernel test robotYi Lai
SeriesR-b
1/7
2/7R-b
3/7T-b
4/7T-b
5/7T-b
6/7T-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [Patch v3 0/7] x86 perf bug fixes and optimization

Changes:
v2 -> v3:
* Rebase to latest tip perf/core tree.
* Rewrite commit message to explain why NULL access happens and refine code (Patch 3/7)
* Refine commit message of patch 6/7
* Dump counters bitmap instead of absolute counter in boot message

    (patch 7/7)

v1 -> v2:
* Rebase to 6.17-rc1.
* No code changes.

Tests:
* Run perf stats/record commands on Intel Sapphire Rapids platform, no issue is found.

History:
v2: https://lore.kernel.org/all/[email protected]/
v1:
* Patch 1/6: https://lore.kernel.org/all/[email protected]/
* Patch 2/6: https://lore.kernel.org/all/[email protected]/
* Patch 3/6: https://lore.kernel.org/all/[email protected]/
* Patches 4-6/6: https://lore.kernel.org/all/[email protected]/

Dapeng Mi (7):
perf/x86/intel: Use early_initcall() to hook bts_init() perf/x86/intel: Fix IA32_PMC_x_CFG_B MSRs access error perf/x86: Check if cpuc->events[*] pointer exists before accessing it perf/x86: Add PERF_CAP_PEBS_TIMING_INFO flag perf/x86/intel: Change macro GLOBAL_CTRL_EN_PERF_METRICS to

    BIT_ULL(48)

perf/x86/intel: Add ICL_FIXED_0_ADAPTIVE bit into
INTEL_FIXED_BITS_MASK
perf/x86: Print PMU counters bitmap in x86_pmu_show_pmu_cap()

 arch/x86/events/core.c                 | 16 +++++++++-------
 arch/x86/events/intel/bts.c            |  2 +-
 arch/x86/events/intel/core.c           | 21 +++++++++------------
 arch/x86/events/intel/ds.c             | 10 ++++++++++
 arch/x86/include/asm/msr-index.h       | 14 ++++++++------
 arch/x86/include/asm/perf_event.h      |  8 ++++++--
 arch/x86/kvm/pmu.h                     |  2 +-
 tools/arch/x86/include/asm/msr-index.h | 14 ++++++++------
 8 files changed, 52 insertions(+), 35 deletions(-)

base-commit: 448f97fba9013ffa13f5dd82febd18836b189499

Signature · 1 line
2.34.1