Re: [PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-05-01 Thread Lucas De Marchi
On Wed, May 01, 2024 at 09:25:01AM GMT, Rob Clark wrote: On Wed, May 1, 2024 at 9:19 AM Lucas De Marchi wrote: On Wed, May 01, 2024 at 04:58:05PM GMT, Tvrtko Ursulin wrote: > >Hi, > >On 24/04/2024 15:48, Adrián Larumbe wrote: >>Hi Tvrtko, >> >>On 15.04.2024 13:50, Tvrtko Ursulin wrote: >>> >>>

Re: [PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-05-01 Thread Daniel Vetter
On Wed, Apr 03, 2024 at 07:29:39PM +0100, Adrián Larumbe wrote: > Up to this day, all fdinfo-based GPU profilers must traverse the entire > /proc directory structure to find open DRM clients with fdinfo file > descriptors. This is inefficient and time-consuming. > > This patch adds a new device cl

Re: [PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-05-01 Thread Rob Clark
On Wed, May 1, 2024 at 9:19 AM Lucas De Marchi wrote: > > On Wed, May 01, 2024 at 04:58:05PM GMT, Tvrtko Ursulin wrote: > > > >Hi, > > > >On 24/04/2024 15:48, Adrián Larumbe wrote: > >>Hi Tvrtko, > >> > >>On 15.04.2024 13:50, Tvrtko Ursulin wrote: > >>> > >>>On 05/04/2024 18:59, Rob Clark wrote: >

Re: [PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-05-01 Thread Lucas De Marchi
On Wed, May 01, 2024 at 04:58:05PM GMT, Tvrtko Ursulin wrote: Hi, On 24/04/2024 15:48, Adrián Larumbe wrote: Hi Tvrtko, On 15.04.2024 13:50, Tvrtko Ursulin wrote: On 05/04/2024 18:59, Rob Clark wrote: On Wed, Apr 3, 2024 at 11:37 AM Adrián Larumbe wrote: Up to this day, all fdinfo-based

Re: [PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-05-01 Thread Tvrtko Ursulin
Hi, On 24/04/2024 15:48, Adrián Larumbe wrote: Hi Tvrtko, On 15.04.2024 13:50, Tvrtko Ursulin wrote: On 05/04/2024 18:59, Rob Clark wrote: On Wed, Apr 3, 2024 at 11:37 AM Adrián Larumbe wrote: Up to this day, all fdinfo-based GPU profilers must traverse the entire /proc directory struct

Re: [PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-04-24 Thread Adrián Larumbe
Hi Tvrtko, On 15.04.2024 13:50, Tvrtko Ursulin wrote: > > On 05/04/2024 18:59, Rob Clark wrote: > > On Wed, Apr 3, 2024 at 11:37 AM Adrián Larumbe > > wrote: > > > > > > Up to this day, all fdinfo-based GPU profilers must traverse the entire > > > /proc directory structure to find open DRM clie

Re: [PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-04-15 Thread Tvrtko Ursulin
On 05/04/2024 18:59, Rob Clark wrote: On Wed, Apr 3, 2024 at 11:37 AM Adrián Larumbe wrote: Up to this day, all fdinfo-based GPU profilers must traverse the entire /proc directory structure to find open DRM clients with fdinfo file descriptors. This is inefficient and time-consuming. This p

Re: [PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-04-05 Thread Rob Clark
On Wed, Apr 3, 2024 at 11:37 AM Adrián Larumbe wrote: > > Up to this day, all fdinfo-based GPU profilers must traverse the entire > /proc directory structure to find open DRM clients with fdinfo file > descriptors. This is inefficient and time-consuming. > > This patch adds a new device class attr

[PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-04-03 Thread Adrián Larumbe
Up to this day, all fdinfo-based GPU profilers must traverse the entire /proc directory structure to find open DRM clients with fdinfo file descriptors. This is inefficient and time-consuming. This patch adds a new device class attribute that will install a sysfs file per DRM device, which can be