Take a look at /proc/self/fdinfo/$fd.
The Intel guys made that vendor agnostic and are using it within their
IGT gpu top tool.
Christian.
Am 02.01.23 um 18:57 schrieb Marek Olšák:
What are you talking about? Is fdinfo in sysfs? Userspace drivers
can't access sysfs.
Marek
On Mon, Jan 2, 2023, 10:56 Christian König
<ckoenig.leichtzumer...@gmail.com> wrote:
Well first of all don't mess with the VM internals outside of the
VM code.
Then why would we want to expose this through the IOCTL interface?
We already have this in the fdinfo.
Christian.
Am 30.12.22 um 23:07 schrieb Marek Olšák:
To give userspace a detailed view about its GPU memory usage and
evictions.
This will help performance investigations.
Signed-off-by: Marek Olšák <marek.ol...@amd.com>
The patch is attached.
Marek