Commit 2c34a546 authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer Committed by Christian König
Browse files
parent 56c594d8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -73,6 +73,11 @@ scope of each device, in which case `drm-pdev` shall be present as well.
Userspace should make sure to not double account any usage statistics by using
the above described criteria in order to associate data to individual clients.

- drm-client-name: <valstr>

String optionally set by userspace using DRM_IOCTL_SET_CLIENT_NAME.


Utilization
^^^^^^^^^^^

+5 −0
Original line number Diff line number Diff line
@@ -955,6 +955,11 @@ void drm_show_fdinfo(struct seq_file *m, struct file *f)
			   PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));
	}

	mutex_lock(&file->client_name_lock);
	if (file->client_name)
		drm_printf(&p, "drm-client-name:\t%s\n", file->client_name);
	mutex_unlock(&file->client_name_lock);

	if (dev->driver->show_fdinfo)
		dev->driver->show_fdinfo(&p, file);
}