Skip to content

shader_runner: use shader's checksum in process name

Marcin Ślusarz requested to merge mslusarz/piglit:procname into main

It allows distinguishing processes in kernel logs when shader hangs the gpu. For example, for i915:

[drm] Resetting rcs0 for preemption time out
[drm] ShdrRnrC5ECA62C[14076] context reset due to GPU hang
[drm] GPU HANG: ecode 9:1:85dffffb, in ShdrRnrC5ECA62C [14076]

SHADER_RUNNER_PROC_NAME_CTL environment variable supports these values:

  • "" (empty) - disable override
  • "filename" - use file name (truncated to 15 characters by Linux)
  • "print" - print process name and exit immediately
Edited by Marcin Ślusarz

Merge request reports

Loading