aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <[email protected]>2024-10-03 14:43:09 +0200
committerChristian König <[email protected]>2024-10-08 10:00:30 +0200
commit56c594d8df64e726e803652ee9f4ab08659d4574 (patch)
tree23a653bd9dbff74cb140c8977429dcb4c1cbee65 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent82fe69e63d2b5a5e86ea94c7361c833d3848ab69 (diff)
drm: add DRM_SET_CLIENT_NAME ioctl
Giving the opportunity to userspace to associate a free-form name with a drm_file struct is helpful for tracking and debugging. This is similar to the existing DMA_BUF_SET_NAME ioctl. Access to client_name is protected by a mutex, and the 'clients' debugfs file has been updated to print it. Userspace MR to use this ioctl: https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1428 If the string passed by userspace contains chars that would mess up output when it's going to be printed (in dmesg, fdinfo, etc), -EINVAL is returned. A 0-length string is a valid use, and clears the existing name. Reviewed-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Dmitry Osipenko <[email protected]> Signed-off-by: Pierre-Eric Pelloux-Prayer <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Christian König <[email protected]> Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions