mbox series

[V3,0/4] tools: perf: Add JSON metrics for i.MX8M platforms

Message ID 20210127105734.12198-1-qiangqing.zhang@nxp.com (mailing list archive)
Headers show
Series tools: perf: Add JSON metrics for i.MX8M platforms | expand

Message

Joakim Zhang Jan. 27, 2021, 10:57 a.m. UTC
Add JSON metrics for i.MX8M platforms.

ChangeLogs:
V1->V2:
	* remove board level metrics (bandwidth metrics).
V2->V3:
	* Add the missing "ScaleUnit".

Joakim Zhang (4):
  perf vendor events: Fix indentation of brackets in imx8mm metrics
  perf vendor events: Add JSON metrics for imx8mn DDR Perf
  perf vendor events: Add JSON metrics for imx8mq DDR Perf
  perf vendor events: Add JSON metrics for imx8mp DDR Perf

 .../arm64/freescale/imx8mm/sys/metrics.json   |   4 +-
 .../arch/arm64/freescale/imx8mn/sys/ddrc.json |  37 ++
 .../arm64/freescale/imx8mn/sys/metrics.json   |  18 +
 .../arch/arm64/freescale/imx8mp/sys/ddrc.json |  37 ++
 .../arm64/freescale/imx8mp/sys/metrics.json   | 466 ++++++++++++++++++
 .../arch/arm64/freescale/imx8mq/sys/ddrc.json |  37 ++
 .../arm64/freescale/imx8mq/sys/metrics.json   |  18 +
 7 files changed, 615 insertions(+), 2 deletions(-)
 create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/ddrc.json
 create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/metrics.json
 create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/ddrc.json
 create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/metrics.json
 create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/ddrc.json
 create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/metrics.json

Comments

John Garry Jan. 27, 2021, 2:14 p.m. UTC | #1
On 27/01/2021 10:57, Joakim Zhang wrote:
> Add JSON metrics for i.MX8M platforms.
> 
> ChangeLogs:
> V1->V2:
> 	* remove board level metrics (bandwidth metrics).
> V2->V3:
> 	* Add the missing "ScaleUnit".
> 
> Joakim Zhang (4):
>    perf vendor events: Fix indentation of brackets in imx8mm metrics
>    perf vendor events: Add JSON metrics for imx8mn DDR Perf
>    perf vendor events: Add JSON metrics for imx8mq DDR Perf
>    perf vendor events: Add JSON metrics for imx8mp DDR Perf

For the series:
Reviewed-by: John Garry <john.garry@huawei.com>
Joakim Zhang Feb. 18, 2021, 10:14 a.m. UTC | #2
Gentle pinging...

Best Regards,
Joakim Zhang

> -----Original Message-----
> From: John Garry <john.garry@huawei.com>
> Sent: 2021年1月27日 22:14
> To: Joakim Zhang <qiangqing.zhang@nxp.com>; will@kernel.org;
> mathieu.poirier@linaro.org; leo.yan@linaro.org; peterz@infradead.org;
> mingo@redhat.com; acme@kernel.org; mark.rutland@arm.com;
> alexander.shishkin@linux.intel.com; jolsa@redhat.com;
> namhyung@kernel.org; shawnguo@kernel.org; s.hauer@pengutronix.de
> Cc: kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx
> <linux-imx@nxp.com>; kjain@linux.ibm.com;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH V3 0/4] tools: perf: Add JSON metrics for i.MX8M
> platforms
> 
> On 27/01/2021 10:57, Joakim Zhang wrote:
> > Add JSON metrics for i.MX8M platforms.
> >
> > ChangeLogs:
> > V1->V2:
> > 	* remove board level metrics (bandwidth metrics).
> > V2->V3:
> > 	* Add the missing "ScaleUnit".
> >
> > Joakim Zhang (4):
> >    perf vendor events: Fix indentation of brackets in imx8mm metrics
> >    perf vendor events: Add JSON metrics for imx8mn DDR Perf
> >    perf vendor events: Add JSON metrics for imx8mq DDR Perf
> >    perf vendor events: Add JSON metrics for imx8mp DDR Perf
> 
> For the series:
> Reviewed-by: John Garry <john.garry@huawei.com>
Arnaldo Carvalho de Melo Feb. 18, 2021, 1:09 p.m. UTC | #3
Em Thu, Feb 18, 2021 at 10:14:29AM +0000, Joakim Zhang escreveu:
> 
> Gentle pinging...

Thanks, applied.

- Arnaldo

 
> Best Regards,
> Joakim Zhang
> 
> > -----Original Message-----
> > From: John Garry <john.garry@huawei.com>
> > Sent: 2021年1月27日 22:14
> > To: Joakim Zhang <qiangqing.zhang@nxp.com>; will@kernel.org;
> > mathieu.poirier@linaro.org; leo.yan@linaro.org; peterz@infradead.org;
> > mingo@redhat.com; acme@kernel.org; mark.rutland@arm.com;
> > alexander.shishkin@linux.intel.com; jolsa@redhat.com;
> > namhyung@kernel.org; shawnguo@kernel.org; s.hauer@pengutronix.de
> > Cc: kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx
> > <linux-imx@nxp.com>; kjain@linux.ibm.com;
> > linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org
> > Subject: Re: [PATCH V3 0/4] tools: perf: Add JSON metrics for i.MX8M
> > platforms
> > 
> > On 27/01/2021 10:57, Joakim Zhang wrote:
> > > Add JSON metrics for i.MX8M platforms.
> > >
> > > ChangeLogs:
> > > V1->V2:
> > > 	* remove board level metrics (bandwidth metrics).
> > > V2->V3:
> > > 	* Add the missing "ScaleUnit".
> > >
> > > Joakim Zhang (4):
> > >    perf vendor events: Fix indentation of brackets in imx8mm metrics
> > >    perf vendor events: Add JSON metrics for imx8mn DDR Perf
> > >    perf vendor events: Add JSON metrics for imx8mq DDR Perf
> > >    perf vendor events: Add JSON metrics for imx8mp DDR Perf
> > 
> > For the series:
> > Reviewed-by: John Garry <john.garry@huawei.com>
John Garry July 6, 2021, 8:24 a.m. UTC | #4
On 27/01/2021 10:57, Joakim Zhang wrote:
> Add JSON metrics for i.MX8M platforms.
> 

Hi Joakim,

I have done some rework to the metricgroup sys event support.

If you have a chance, it would be appreciated if you could test this 
following series for these imx8 metrics+events:

https://github.com/hisilicon/kernel-dev/commits/private-topic-perf-5.13-sys-rewrite-3

Thanks,
John

> ChangeLogs:
> V1->V2:
> 	* remove board level metrics (bandwidth metrics).
> V2->V3:
> 	* Add the missing "ScaleUnit".
> 
> Joakim Zhang (4):
>    perf vendor events: Fix indentation of brackets in imx8mm metrics
>    perf vendor events: Add JSON metrics for imx8mn DDR Perf
>    perf vendor events: Add JSON metrics for imx8mq DDR Perf
>    perf vendor events: Add JSON metrics for imx8mp DDR Perf
Joakim Zhang July 6, 2021, 9:48 a.m. UTC | #5
> -----Original Message-----
> From: John Garry <john.garry@huawei.com>
> Sent: 2021年7月6日 16:24
> To: Joakim Zhang <qiangqing.zhang@nxp.com>; will@kernel.org;
> mathieu.poirier@linaro.org; leo.yan@linaro.org; peterz@infradead.org;
> mingo@redhat.com; acme@kernel.org; mark.rutland@arm.com;
> alexander.shishkin@linux.intel.com; jolsa@redhat.com;
> namhyung@kernel.org; shawnguo@kernel.org; s.hauer@pengutronix.de
> Cc: kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx
> <linux-imx@nxp.com>; kjain@linux.ibm.com;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH V3 0/4] tools: perf: Add JSON metrics for i.MX8M
> platforms
> 
> On 27/01/2021 10:57, Joakim Zhang wrote:
> > Add JSON metrics for i.MX8M platforms.
> >
> 
> Hi Joakim,
> 
> I have done some rework to the metricgroup sys event support.
> 
> If you have a chance, it would be appreciated if you could test this following
> series for these imx8 metrics+events:
> 
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.c
> om%2Fhisilicon%2Fkernel-dev%2Fcommits%2Fprivate-topic-perf-5.13-sys-rewri
> te-3&amp;data=04%7C01%7Cqiangqing.zhang%40nxp.com%7Cbf35517133c3
> 48ebd58e08d940587875%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0
> %7C637611570992762798%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjA
> wMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;s
> data=RzNaXZubTrhO0MRl2sD45v7Vbs1KgzRWCRymTQIJLZM%3D&amp;reser
> ved=0

Hi John,

I only need build perf tool with above code, no need to update the kernel, right?

Best Regards,
Joakim Zhang
> Thanks,
> John
> 
> > ChangeLogs:
> > V1->V2:
> > 	* remove board level metrics (bandwidth metrics).
> > V2->V3:
> > 	* Add the missing "ScaleUnit".
> >
> > Joakim Zhang (4):
> >    perf vendor events: Fix indentation of brackets in imx8mm metrics
> >    perf vendor events: Add JSON metrics for imx8mn DDR Perf
> >    perf vendor events: Add JSON metrics for imx8mq DDR Perf
> >    perf vendor events: Add JSON metrics for imx8mp DDR Perf
John Garry July 6, 2021, 10:05 a.m. UTC | #6
On 06/07/2021 10:48, Joakim Zhang wrote:
>> Hi Joakim,
>>
>> I have done some rework to the metricgroup sys event support.
>>
>> If you have a chance, it would be appreciated if you could test this following
>> series for these imx8 metrics+events:
>>
>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.c
>> om%2Fhisilicon%2Fkernel-dev%2Fcommits%2Fprivate-topic-perf-5.13-sys-rewri
>> te-3&amp;data=04%7C01%7Cqiangqing.zhang%40nxp.com%7Cbf35517133c3
>> 48ebd58e08d940587875%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0
>> %7C637611570992762798%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjA
>> wMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;s
>> data=RzNaXZubTrhO0MRl2sD45v7Vbs1KgzRWCRymTQIJLZM%3D&amp;reser
>> ved=0
> Hi John,
> 
> I only need build perf tool with above code, no need to update the kernel, right?

Right, just userspace perf tool needs rebuild. Same kernel which you 
used before should be ok.

Thanks!
Joakim Zhang July 6, 2021, 12:28 p.m. UTC | #7
> -----Original Message-----
> From: John Garry <john.garry@huawei.com>
> Sent: 2021年7月6日 18:06
> To: Joakim Zhang <qiangqing.zhang@nxp.com>; will@kernel.org;
> mathieu.poirier@linaro.org; leo.yan@linaro.org; peterz@infradead.org;
> mingo@redhat.com; acme@kernel.org; mark.rutland@arm.com;
> alexander.shishkin@linux.intel.com; jolsa@redhat.com;
> namhyung@kernel.org; shawnguo@kernel.org; s.hauer@pengutronix.de
> Cc: kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx
> <linux-imx@nxp.com>; kjain@linux.ibm.com;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH V3 0/4] tools: perf: Add JSON metrics for i.MX8M
> platforms
> 
> On 06/07/2021 10:48, Joakim Zhang wrote:
> >> Hi Joakim,
> >>
> >> I have done some rework to the metricgroup sys event support.
> >>
> >> If you have a chance, it would be appreciated if you could test this
> >> following series for these imx8 metrics+events:
> >>
> >> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit
> >> hub.c
> >> om%2Fhisilicon%2Fkernel-dev%2Fcommits%2Fprivate-topic-perf-5.13-sys-r
> >> ewri
> >>
> te-3&amp;data=04%7C01%7Cqiangqing.zhang%40nxp.com%7Cbf35517133c3
> >>
> 48ebd58e08d940587875%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0
> >> %7C637611570992762798%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4w
> LjA
> >>
> wMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;s
> >>
> data=RzNaXZubTrhO0MRl2sD45v7Vbs1KgzRWCRymTQIJLZM%3D&amp;reser
> >> ved=0
> > Hi John,
> >
> > I only need build perf tool with above code, no need to update the kernel,
> right?
> 
> Right, just userspace perf tool needs rebuild. Same kernel which you used
> before should be ok.

Hi John,

Test env:
perf version 5.13.rc7.gf9a8701c7091
5.13.0-rc1-next-20210514

I tested on i.MX8MQ, i.MX8MM and i.MX8MP, there is no function breakage, but I have not verified metric includes "duration_time" event.

A nitpick, there is no comma at the end of "Unit".

Best Regards,
Joakim Zhang
> 
> Thanks!
John Garry July 6, 2021, 12:41 p.m. UTC | #8
On 06/07/2021 13:28, Joakim Zhang wrote:
>> right?
>>
>> Right, just userspace perf tool needs rebuild. Same kernel which you used
>> before should be ok.
> Hi John,
> 
> Test env:
> perf version 5.13.rc7.gf9a8701c7091
> 5.13.0-rc1-next-20210514
> 
> I tested on i.MX8MQ, i.MX8MM and i.MX8MP, there is no function breakage, but I have not verified metric includes "duration_time" event.
> 

ok, I appreciate that.

 > but I have not verified metric includes "duration_time" event.

I didn't think that any imx8 metrics included duration_time. Anyway, 
I'll ensure that metrics which contain "duration_time" would not break.

> A nitpick, there is no comma at the end of "Unit".

I'll check it.

Thanks a lot,
John