mbox series

[v5,0/4] Improve gpu_scheduler trace events + uAPI

Message ID 20240614081657.408397-1-pierre-eric.pelloux-prayer@amd.com (mailing list archive)
Headers show
Series Improve gpu_scheduler trace events + uAPI | expand

Message

Pierre-Eric Pelloux-Prayer June 14, 2024, 8:16 a.m. UTC
Hi,

The initial goal of this series was to improve the drm and amdgpu
trace events to be able to expose more of the inner workings of
the scheduler and drivers to developers via tools.

Then, the series evolved to become focused only on gpu_scheduler.
The changes around vblank events will be part of a different
series, as well as the amdgpu ones.

Moreover Sima suggested to make some trace events stable uAPI,
so tools can rely on them long term.

So, with this v5, the first 3 patches refactor and improve the
existing gpu_scheduler events.

The last one adds a documentation entry in drm-uapi.rst.


Useful links:
- userspace tool using the updated events:
https://gitlab.freedesktop.org/tomstdenis/umr/-/merge_requests/37
- gpuvis ticket about this series:
https://github.com/mikesart/gpuvis/issues/87
- v4:
https://lists.freedesktop.org/archives/dri-devel/2024-June/457121.html


Pierre-Eric Pelloux-Prayer (4):
  drm/sched: add device name to the drm_sched_process_job event
  drm/sched: cleanup gpu_scheduler trace events
  drm/sched: trace dependencies for gpu jobs
  drm/doc: document some tracepoints as uAPI

 Documentation/gpu/drm-uapi.rst                |  19 +++
 .../gpu/drm/scheduler/gpu_scheduler_trace.h   | 124 ++++++++++++++----
 drivers/gpu/drm/scheduler/sched_entity.c      |   8 +-
 drivers/gpu/drm/scheduler/sched_main.c        |   2 +-
 4 files changed, 126 insertions(+), 27 deletions(-)