linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Add JSON metrics for Yitian710 DDR
@ 2023-06-20  7:12 Jing Zhang
  2023-06-20  7:12 ` [PATCH v4 1/4] driver/perf: Add identifier sysfs file for Yitian 710 DDR Jing Zhang
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Jing Zhang @ 2023-06-20  7:12 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, Jonathan Corbet, John Garry,
	Shuai Xue, Ian Rogers
  Cc: Robin Murphy, James Clark, Mike Leach, Leo Yan, Ilkka Koskinen,
	Alexander Shishkin, Jiri Olsa, Namhyung Kim, Adrian Hunter,
	linux-kernel, linux-arm-kernel, linux-perf-users, linux-doc,
	Zhuo Song, Jing Zhang

Hi all,

I add an identifier sysfs file for the yitian710 SoC DDR to allow
userspace to identify the specific implementation of the device,
so that the perf tool can match the corresponding uncore events and
metrics through the identifier. Then added yitian710 SoC DDR
metrics and events alias.

Change since v3:
- Split the CMN and ali_drw patches. This patchset only contains
  ali_drw PMU related patches. The CMN metric related patches will
  be in another patchset.
- Link: https://lore.kernel.org/all/1685438374-33287-1-git-send-email-renyu.zj@linux.alibaba.com/

$perf list:
...
ali_drw:
  chi_rxdat
       [A packet at CHI RXDAT interface (write data). Unit: ali_drw]
  chi_rxrsp
       [A packet at CHI RXRSP interface. Unit: ali_drw]
  chi_txdat
       [A packet at CHI TXDAT interface (read data). Unit: ali_drw]
  chi_txreq
       [A packet at CHI TXREQ interface (request). Unit: ali_drw]
  cycle
       [The ddr cycle. Unit: ali_drw]
...
ali_drw:
  ddr_read_bandwidth.all
       [The ddr read bandwidth(MB/s). Unit: ali_drw ]
  ddr_write_bandwidth.all
       [The ddr write bandwidth(MB/s). Unit: ali_drw ]
...

$perf stat -M ddr_read_bandwidth.all ./test

Performance counter stats for 'system wide':

            38,150      hif_rd        #  2.4 MB/s  ddr_read_bandwidth.all
     1,000,957,941 ns   duration_time

       1.000957941 seconds time elapsed

Jing Zhang (4):
  driver/perf: Add identifier sysfs file for Yitian 710 DDR
  perf jevents: Add support for Yitian 710 DDR PMU aliasing
  perf vendor events: Add JSON metrics for Yitian 710 DDR
  docs: perf: Update metric usage for Alibaba's T-Head PMU driver

 Documentation/admin-guide/perf/alibaba_pmu.rst     |   5 +
 drivers/perf/alibaba_uncore_drw_pmu.c              |  27 ++
 .../arm64/freescale/yitian710/sys/ali_drw.json     | 373 +++++++++++++++++++++
 .../arm64/freescale/yitian710/sys/metrics.json     |  20 ++
 tools/perf/pmu-events/jevents.py                   |   1 +
 5 files changed, 426 insertions(+)
 create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/yitian710/sys/ali_drw.json
 create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/yitian710/sys/metrics.json

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-07-27 12:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-20  7:12 [PATCH v4 0/4] Add JSON metrics for Yitian710 DDR Jing Zhang
2023-06-20  7:12 ` [PATCH v4 1/4] driver/perf: Add identifier sysfs file for Yitian 710 DDR Jing Zhang
2023-06-20  7:12 ` [PATCH v4 2/4] perf jevents: Add support for Yitian 710 DDR PMU aliasing Jing Zhang
2023-06-20  7:12 ` [PATCH v4 3/4] perf vendor events: Add JSON metrics for Yitian 710 DDR Jing Zhang
2023-06-20  7:12 ` [PATCH v4 4/4] docs: perf: Update metric usage for Alibaba's T-Head PMU driver Jing Zhang
2023-06-20  7:30   ` John Garry
2023-06-20 19:04 ` [PATCH v4 0/4] Add JSON metrics for Yitian710 DDR Namhyung Kim
2023-06-21  3:08   ` Jing Zhang
2023-06-21  5:00     ` Namhyung Kim
2023-06-25  8:58       ` Jing Zhang
2023-06-26 12:44       ` Will Deacon
2023-06-27  7:19         ` Jing Zhang
2023-07-27 12:22 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).