Skip to content

perf tool: Skip invalid hybrid PMU

Jin Yao lkml 2 versions – Applied

Status from this message: Thanks, applied to perf/urgent.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesApplied
  2. v11 patch 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4perf pmu: Skip invalid hybrid pmutools/perf/util/pmu.c+8 -10 replies
2/4perf tests: Fix 'Parse event definition strings' on core-only systemtools/perf/tests/parse-events.c+10 -60 replies
3/4perf tests: Fix 'Roundtrip evsel->name' on core-only systemtools/perf/tests/evsel-roundtrip-name.c+2 -10 replies
4/4perf tests: Fix 'Convert perf time to TSC' on core-only systemtools/perf/tests/perf-time-to-tsc.c+2 -10 replies

Reviews trailers per patch

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

PatchJiri Olsa
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] perf tool: Skip invalid hybrid PMU

On hybrid platform, such as Alderlake, if atom CPUs are offlined, the kernel still exports the sysfs path '/sys/devices/cpu_atom/' for 'cpu_atom' pmu but the file '/sys/devices/cpu_atom/cpus' is empty, which indicates this is an invalid pmu. So we need to check and skip the invalid hybrid pmu.

Also we need to update some perf test cases for core-only system.

Jin Yao (4):
perf pmu: Skip invalid hybrid pmu
perf tests: Fix 'Parse event definition strings' on core-only system perf tests: Fix 'Roundtrip evsel->name' on core-only system perf tests: Fix 'Convert perf time to TSC' on core-only system

 tools/perf/tests/evsel-roundtrip-name.c |  3 ++-
 tools/perf/tests/parse-events.c         | 16 ++++++++++------
 tools/perf/tests/perf-time-to-tsc.c     |  3 ++-
 tools/perf/util/pmu.c                   |  9 ++++++++-
 4 files changed, 22 insertions(+), 9 deletions(-)
Signature · 1 line
2.17.1