Lines Matching +full:panfrost +full:- +full:traces
6 `producers <https://perfetto.dev/docs/concepts/service-model>`__ each with
7 one or more data-sources. Perfetto already provides various producers and
8 data-sources for things like:
10 - CPU scheduling events (``linux.ftrace``)
11 - CPU frequency scaling (``linux.ftrace``)
12 - System calls (``linux.ftrace``)
13 - Process memory utilization (``linux.process_stats``)
21 - pps-producer: A systemwide daemon that can collect global performance
23 - mesa: Per-process producer within mesa to capture render-stage traces
28 .. list-table:: Supported data-sources
29 :header-rows: 1
31 * - Driver
32 - PPS Counters
33 - Render Stages
34 * - Freedreno
35 - ``gpu.counters.msm``
36 - ``gpu.renderstages.msm``
37 * - Turnip
38 - ``gpu.counters.msm``
39 - ``gpu.renderstages.msm``
40 * - Intel
41 - ``gpu.counters.i915``
42 - ``gpu.renderstages.intel``
43 * - Panfrost
44 - ``gpu.counters.panfrost``
45 -
48 ---
53 `this guide <https://perfetto.dev/docs/quickstart/linux-tracing>`__.
61 `convenience script <https://perfetto.dev/docs/quickstart/linux-tracing#capturing-a-trace>`__
64 .. code-block:: sh
67 CONFIG=<path/to/gpu.cfg> OUT=out/linux_clang_release ./tools/tmux -n
69 4. Start other producers you may need, e.g. ``pps-producer``.
81 (which despite the name can be used to view non-android traces).
86 .. code-block:: sh
89 mesa $ meson . build -Dperfetto=true -Dvulkan-drivers=intel,broadcom -Dgallium-drivers=
91 mesa $ meson compile -C build
95 perfetto $ ./tools/install-build-deps
96 perfetto $ ./tools/gn gen --args='is_debug=false' out/linux
97 perfetto $ ./tools/ninja -C out/linux
100 perfetto $ CONFIG=../../src/tool/pps/cfg/gpu.cfg OUT=out/linux/ ./tools/tmux -n
103 mesa $ ./build/src/tool/pps/pps-producer
122 actually collecting traces.
127 .. code-block:: sh
139 The Freedreno PPS driver needs root access to read system-wide
142 .. code-block:: sh
144 sudo ./build/src/tool/pps/pps-producer
149 The Intel PPS driver needs root access to read system-wide
150 …asic <https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2023-0/gpu-metrics-re…
153 .. code-block:: sh
155 sudo ./build/src/tool/pps/pps-producer
159 .. code-block:: sh
168 .. code-block:: sh
170 INTEL_PERFETTO_METRIC_SET=RasterizerAndPixelBackend ./build/src/tool/pps/pps-producer
176 .. code-block:: sh
180 Panfrost subsection
183 The Panfrost PPS driver uses unstable ioctls that behave correctly on
189 1. Enable Panfrost unstable ioctls via kernel parameter:
191 .. code-block:: sh
193 modprobe panfrost unstable_ioctls=1
195 …Alternatively you could add ``panfrost.unstable_ioctls=1`` to your kernel command line, or ``echo …
199 .. code-block:: sh
201 ./build/pps-producer
204 ---------------
213 .. code-block:: sh
227 - Increase the size of the buffer in use:
229 .. code-block:: javascript
236 - Periodically flush the trace buffer into the output file:
238 .. code-block:: javascript
244 - Discard new traces when the buffer fills:
246 .. code-block:: javascript