mesa/src/intel
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
..
blorp anv,blorp,isl: handle compressed CPS surfaces through the depth stencil hw 2025-03-28 04:38:09 +00:00
ci Uprev ANGLE to 3818d37d5e94317f01810053b8f28c1f1e8b98e6 2025-04-07 18:16:00 +00:00
common intel: Use devinfo->urb.min_entries[GS and TCS] for setting URB configs 2025-03-10 17:23:07 -07:00
compiler intel/brw: support for dumping shader line numbers 2025-04-08 19:39:53 +00:00
decoder intel/brw: support for dumping shader line numbers 2025-04-08 19:39:53 +00:00
dev anv: add INTEL_DEBUG=shaders-lineno 2025-04-08 19:39:53 +00:00
ds perfetto/android: align datasource names with tooling expectations 2025-04-08 18:29:10 +00:00
executor intel/executor: Fix check for open() failure 2025-04-06 19:43:51 -07:00
genxml anv/genxml: use special genX video pack files 2025-04-01 00:03:56 +03:00
isl isl: enable CPB compression 2025-03-28 04:38:09 +00:00
nullhw-layer build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
perf intel/tools: create intel_monitor for sampling eu stalls 2025-04-08 19:39:53 +00:00
shaders intel: use common CL args 2025-03-06 00:43:59 +00:00
tools intel/tools: create intel_monitor for sampling eu stalls 2025-04-08 19:39:53 +00:00
vulkan anv: add INTEL_DEBUG=shaders-lineno 2025-04-08 19:39:53 +00:00
vulkan_hasvk anv/hasvk: sort out debug options 2025-04-04 15:18:28 +00:00
meson.build intel: Add meson option -Dintel-elk 2025-01-30 00:45:59 +00:00