History

drm/msm: Add a way to override processes comm/cmdline

In the cause of using the GPU via virtgpu, the host side process is really a sort of proxy, and not terribly interesting from the PoV of crash/fault logging. Add a way to override these per process so that we can see the guest process's name. v2: Handle kmalloc failure, add comment to explain kstrdup returns NULL if passed NULL [Dan Carpenter]

Rob Clark committed 4 years ago

Commit d4726d71 parent 39ba0c05 files · +60 −5Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/drm/msm_drm.h+2−0
@@ -82,6 +82,8 @@ struct drm_msm_timespec { · 81 unmodified lines
82#define MSM_PARAM_FAULTS 0x09 /* RO */82#define MSM_PARAM_FAULTS 0x09 /* RO */
83#define MSM_PARAM_SUSPENDS 0x0a /* RO */83#define MSM_PARAM_SUSPENDS 0x0a /* RO */
84#define MSM_PARAM_SYSPROF 0x0b /* WO: 1 preserves perfcntrs, 2 also disables suspend */84#define MSM_PARAM_SYSPROF 0x0b /* WO: 1 preserves perfcntrs, 2 also disables suspend */
85#define MSM_PARAM_COMM 0x0c /* WO: override for task->comm */
86#define MSM_PARAM_CMDLINE 0x0d /* WO: override for task cmdline */
85 87
86/* For backwards compat. The original support for preemption was based on88/* For backwards compat. The original support for preemption was based on
87 * a single ring per priority level so # of priority levels equals the #89 * a single ring per priority level so # of priority levels equals the #