Re: [Intel-gfx] [RFC 2/5] drm/i915: Expose list of clients in sysfs

2019-10-25 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-10-25 15:21:28) > int i915_gem_open(struct drm_i915_private *i915, struct drm_file *file) > { > + int ret = -ENOMEM; > struct drm_i915_file_private *file_priv; > - int ret; > > DRM_DEBUG("\n"); > > file_priv = kzalloc(sizeof(*fi

[Intel-gfx] [RFC 2/5] drm/i915: Expose list of clients in sysfs

2019-10-25 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Expose a list of clients with open file handles in sysfs. This will be a basis for a top-like utility showing per-client and per- engine GPU load. Currently we only expose each client's pid and name under opaque numbered directories in /sys/class/drm/card0/clients/. For in

Re: [Intel-gfx] [RFC 2/5] drm/i915: Expose list of clients in sysfs

2018-02-15 Thread Tvrtko Ursulin
On 14/02/2018 19:13, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-02-14 18:50:32) From: Tvrtko Ursulin Expose a list of clients with open file handles in sysfs. This will be a basis for a top-like utility showing per-client and per- engine GPU load. Currently we only expose each client'

Re: [Intel-gfx] [RFC 2/5] drm/i915: Expose list of clients in sysfs

2018-02-14 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-02-14 18:50:32) > From: Tvrtko Ursulin > > Expose a list of clients with open file handles in sysfs. > > This will be a basis for a top-like utility showing per-client and per- > engine GPU load. > > Currently we only expose each client's pid and name under opaque n

[Intel-gfx] [RFC 2/5] drm/i915: Expose list of clients in sysfs

2018-02-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Expose a list of clients with open file handles in sysfs. This will be a basis for a top-like utility showing per-client and per- engine GPU load. Currently we only expose each client's pid and name under opaque numbered directories in /sys/class/drm/card0/clients/. For in