[PATCH v9 0/2] perf test & PMU metric resolution improvements

Ian Rogers posted 2 patches 3 days, 14 hours ago
tools/perf/tests/builtin-test.c | 70 +++++++++++++++++++++++++++++----
tools/perf/util/metricgroup.c   |  3 +-
tools/perf/util/pmu.c           | 19 ++++++++-
3 files changed, 83 insertions(+), 9 deletions(-)
[PATCH v9 0/2] perf test & PMU metric resolution improvements
Posted by Ian Rogers 3 days, 14 hours ago
This series contains the final remaining unmerged patch for the perf test
improvements sent as v8 in:
https://lore.kernel.org/lkml/20260602174129.3192312-1-irogers@google.com/

v9 Changes
----------
- Patch 1: Resubmitted the "perf pmu: Recognize 'default_core' as a core PMU..."
  patch, but this time with a squashed fix for a metric resolution bug due to
  its use of is_pmu_core.
- Patch 2: Added explicit clamping for max_desc_width and width based on the
  buffer size in format_test_description() to satisfy GCC 16 and prevent the
  -Wformat-truncation warning reported by the maintainer.

Ian Rogers (2):
  perf pmu: Recognize 'default_core' as a core PMU and document matching
  perf test: Truncate printed test descriptions dynamically to avoid
    terminal wrapping

 tools/perf/tests/builtin-test.c | 70 +++++++++++++++++++++++++++++----
 tools/perf/util/metricgroup.c   |  3 +-
 tools/perf/util/pmu.c           | 19 ++++++++-
 3 files changed, 83 insertions(+), 9 deletions(-)

-- 
2.54.0.1032.g2f8565e1d1-goog
Re: [PATCH v9 0/2] perf test & PMU metric resolution improvements
Posted by Arnaldo Carvalho de Melo 3 days, 11 hours ago
On Thu, Jun 04, 2026 at 09:36:25AM -0700, Ian Rogers wrote:
> This series contains the final remaining unmerged patch for the perf test
> improvements sent as v8 in:
> https://lore.kernel.org/lkml/20260602174129.3192312-1-irogers@google.com/
> 
> v9 Changes
> ----------
> - Patch 1: Resubmitted the "perf pmu: Recognize 'default_core' as a core PMU..."
>   patch, but this time with a squashed fix for a metric resolution bug due to
>   its use of is_pmu_core.
> - Patch 2: Added explicit clamping for max_desc_width and width based on the
>   buffer size in format_test_description() to satisfy GCC 16 and prevent the
>   -Wformat-truncation warning reported by the maintainer.
> 
> Ian Rogers (2):
>   perf pmu: Recognize 'default_core' as a core PMU and document matching
>   perf test: Truncate printed test descriptions dynamically to avoid
>     terminal wrapping

Applying, will ask local sashiko to give another look,

- Arnaldo