diff options
| author | Umesh Nerlige Ramappa <[email protected]> | 2024-05-17 13:43:07 -0700 |
|---|---|---|
| committer | Lucas De Marchi <[email protected]> | 2024-05-21 06:33:40 -0700 |
| commit | 6109f24f87d75122cf6de50901115cbee4285ce2 (patch) | |
| tree | 18ed178be1530bbac4e48a2b19add8240dda1f28 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
| parent | f2f6b667c67daee6fe2c51b5cec3bb0f1b4c1ce0 (diff) | |
drm/xe: Add helper to accumulate exec queue runtime
Add a helper to accumulate per-client runtime of all its
exec queues. This is called every time a sched job is finished.
v2:
- Use guc_exec_queue_free_job() and execlist_job_free() to accumulate
runtime when job is finished since xe_sched_job_completed() is not a
notification that job finished.
- Stop trying to update runtime from xe_exec_queue_fini() - that is
redundant and may happen after xef is closed, leading to a
use-after-free
- Do not special case the first timestamp read: the default LRC sets
CTX_TIMESTAMP to zero, so even the first sample should be a valid
one.
- Handle the parallel submission case by multiplying the runtime by
width.
v3: Update comments
Signed-off-by: Umesh Nerlige Ramappa <[email protected]>
Reviewed-by: Matt Roper <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions