mesa/src/intel/perf
Felix DeGrood 610ad8d378 intel/tools: create intel_monitor for sampling eu stalls
Created stand alone tool for sampling gfx data on regular
intervals. Tool has inner loop that performs sampling every N
useconds. Press any key to end sampling. Results will be dumped
when intel_monitor exits.

First application of intel_monitor will be to collect eu stall
data. Perhaps more applications can be added at a later date.

How to use:
 0. Set sysctl dev.xe.observation_paranoid=0
 1. Clean shader cache and launch gfx INTEL_DEBUG=shaders-lineno.
    Redirect stderr to asm.txt.
 2. When gfx app ready to monitor, begin capturing eustall data by
    launching `intel_monitor -e > eustall.csv` in separate console.
 3  When done collected, close intel_monitor by pressing any key.
 4. Correlate eustall data in eustall.csv with shader instructions in
    asm.txt by matching instruction offsets. Use data to determine which
    instructions are stalling and why.

Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30142>
2025-04-08 19:39:53 +00:00
..
i915 intel/perf: Add support for LNL OA sample format size 2024-07-03 17:15:05 +00:00
xe intel/tools: create intel_monitor for sampling eu stalls 2025-04-08 19:39:53 +00:00
gen_perf.py intel/perf: add new perf consts to support more metrics 2025-01-16 00:01:56 +00:00
intel_perf.c intel/perf: add eu stall sampling support 2025-04-08 19:39:53 +00:00
intel_perf.h intel/perf: add eu stall sampling support 2025-04-08 19:39:53 +00:00
intel_perf_common.c intel/perf: Move code that will be shared by both KMDs 2024-05-27 19:34:06 +00:00
intel_perf_common.h intel/perf: Move code that will be shared by both KMDs 2024-05-27 19:34:06 +00:00
intel_perf_mdapi.c intel/perf: Remove i915_drm.h includes from common code 2024-06-29 01:17:37 +00:00
intel_perf_mdapi.h
intel_perf_private.h
intel_perf_query.c intel/perf: Extend intel_perf_stream_set_metrics_id() to syncronize metrics id changes 2024-11-05 19:25:53 +00:00
intel_perf_query.h intel/perf: Add intel_perf_free_context() 2024-05-07 21:44:34 +00:00
intel_perf_query_layout.c intel/perf: Replace i915_perf_version and i915_query_supported by a feature bitmask 2024-06-29 01:17:37 +00:00
intel_perf_regs.h intel/perf: Do not add INTEL_PERF_QUERY_FIELD_TYPE_SRM_OA_PEC 2024-07-03 17:15:05 +00:00
intel_perf_setup.h intel/perf: Add INTEL_PERF_QUERY_FIELD_TYPE_SRM_OA_PEC 2024-06-25 14:16:45 +00:00
meson.build intel/perf: Add OA support to ARL 2024-11-05 14:56:49 +00:00
oa-acmgt1.xml
oa-acmgt2.xml
oa-acmgt3.xml
oa-adl.xml
oa-arlgt1.xml intel/perf: Add OA support to ARL 2024-11-05 14:56:49 +00:00
oa-arlgt2.xml intel/perf: Add OA support to ARL 2024-11-05 14:56:49 +00:00
oa-bdw.xml
oa-bmg.xml intel/perf: Add BMG OA support 2024-10-14 23:54:04 +00:00
oa-bxt.xml
oa-cflgt2.xml
oa-cflgt3.xml
oa-chv.xml
oa-dg1.xml
oa-ehl.xml
oa-glk.xml
oa-hsw.xml
oa-icl.xml
oa-kblgt2.xml
oa-kblgt3.xml
oa-lnl.xml intel/perf: Sync oa-lnl.xml 2024-10-14 23:54:04 +00:00
oa-mtlgt2.xml
oa-mtlgt3.xml
oa-rkl.xml
oa-sklgt2.xml
oa-sklgt3.xml
oa-sklgt4.xml
oa-tglgt1.xml
oa-tglgt2.xml