RE: [PATCH v8 09/11] media: chips-media: wave6: Add performance profiling
From: Nas Chung
Date: Mon Nov 23 2026 - 04:18:40 EST
Hi, Frank.
>-----Original Message-----
>From: Frank Li <Frank.li@xxxxxxxxxxx>
>Sent: Friday, November 20, 2026 5:56 AM
>To: Nas Chung <nas.chung@xxxxxxxxxxxxxxx>
>Cc: mchehab@xxxxxxxxxx; hverkuil@xxxxxxxxxx; robh@xxxxxxxxxx;
>krzk+dt@xxxxxxxxxx; conor+dt@xxxxxxxxxx; Frank.Li@xxxxxxx;
>s.hauer@xxxxxxxxxxxxxx; linux-media@xxxxxxxxxxxxxxx;
>devicetree@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx;
>imx@xxxxxxxxxxxxxxx; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx;
>festevam@xxxxxxxxx; kernel@xxxxxxxxxxxxxx; nicolas.dufresne@xxxxxxxxxxxxx;
>ming.qian@xxxxxxxxxxx; marek.vasut@xxxxxxxxxxx; jackson.lee
><jackson.lee@xxxxxxxxxxxxxxx>; lafley.kim <lafley.kim@xxxxxxxxxxxxxxx>
>Subject: Re: [PATCH v8 09/11] media: chips-media: wave6: Add performance
>profiling
>
>On Thu, Nov 19, 2026 at 06:00:03PM +0900, Nas Chung wrote:
>> Add per-instance performance profiling to help identify whether a
>> throughput problem comes from the firmware or from the host side.
>
>why not register as perf interface?
The numbers are kept per instance (per open file). Each instance has
its own fps, latency and min/max frame time, and they are updated each
time one of its frames is done.
As far as I know, perf can only count per CPU or per task, and a device
PMU usually counts for the whole system. So perf would only show the
total of all instances, and we could not get the min/max frame time
from it.
Thanks.
Nas.
>
>Frank
>