[RFT PATCH 0/7] perf tool: Support iostat for multiple platforms

Yushan Wang wangyushan12 at huawei.com
Mon Jan 26 04:35:07 PST 2026


Currently, platform-specific iostat code for PMUs is implemented as a
common iostat callback interface and invoked based on what is being
built. This approach limits support for iostat across different types of
PMUs.

Support of HiSilicon PCIe PMU iostat was raised at [1], which uses the
similar approach.

To extend support of iostat across platforms, change common iostat
interface to framework to allow perf to probe PMU capabilities during
runtime and route iostat request to the correct PMU-specific functions.
Then HiSilicon PCIe PMU iostat is supported with the new framework.

Request For Test:
Refactors has been made to x86 iostat to adapt the iostat framework, the
probe function that checks if there's any PMU's name contains 'x86-iio'
may not work properly, tests of that would be appreciated.

[1] https://lore.kernel.org/all/4688a613-c94a-49b0-9d0f-09173c64082d@arm.com/

Shiju Jose (2):
  perf-iostat: Extend iostat interface to support different iostat PMUs
  perf-iostat: Make x86 iostat compatible with new iostat framework

Yicong Yang (1):
  perf-iostat: Enable iostat mode for HiSilicon PCIe PMU

Yushan Wang (4):
  perf stat: Check color's length instead of the pointer
  perf stat: Save unnecessary print_metric() call
  perf-x86: iostat: Change iostat_prefix() to static
  perf-iostat: Support wilder wildcard-match for pmus

 tools/perf/arch/arm64/util/Build         |   1 +
 tools/perf/arch/arm64/util/hisi-iostat.c | 479 +++++++++++++++++++++++
 tools/perf/arch/x86/util/iostat.c        | 105 +++--
 tools/perf/builtin-script.c              |   2 +-
 tools/perf/util/iostat.c                 |  79 ++--
 tools/perf/util/iostat.h                 |  21 +-
 tools/perf/util/pmus.c                   |  12 +-
 tools/perf/util/pmus.h                   |   3 +
 tools/perf/util/stat-display.c           |   4 +-
 tools/perf/util/stat-shadow.c            |   4 +-
 10 files changed, 638 insertions(+), 72 deletions(-)
 create mode 100644 tools/perf/arch/arm64/util/hisi-iostat.c

-- 
2.33.0




More information about the linux-arm-kernel mailing list