Hi, Le lundi 23 novembre 2026 à 09:18 +0000, Nas Chung a écrit : > Hi, Frank. > > > -----Original Message----- > > From: Frank Li > > Sent: Friday, November 20, 2026 5:56 AM > > To: Nas Chung > > Cc: mchehab@kernel.org; hverkuil@kernel.org; robh@kernel.org; > > krzk+dt@kernel.org; conor+dt@kernel.org; Frank.Li@nxp.com; > > s.hauer@pengutronix.de; linux-media@vger.kernel.org; > > devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; > > imx@lists.linux.dev; linux-arm-kernel@lists.infradead.org; > > festevam@gmail.com; kernel@pengutronix.de; nicolas.dufresne@collabora.com; > > ming.qian@oss.nxp.com; marek.vasut@mailbox.org; jackson.lee > > ; lafley.kim > > 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. My preference would then go toward .fdinfo() then instead of custom debug fs. It gives the FD owner the right to see the statistics and not just root. Here's an example of in progress attempt. The idea is that some key would be generalized and documented and some other key would be driver specific (e.g. wave6- prefix). https://lore.kernel.org/all/20260706-v4l2-add-fdinfo-v3-0-d556568cf38e@collabora.com/ Then once we've upstream v4l2top, one can track the performance live, and you can even add driver specific metrics. Nicolas > > Thanks. > Nas. > > > > > Frank > >