From a841300384cab760bcc3a53ae563764e4049946b Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Tue, 31 May 2022 14:04:27 +0300 Subject: [PATCH] docs/u_trace: Add documentation for *_GPU_TRACEPOINT envvars Signed-off-by: Danylo Piliaiev Reviewed-by: Emma Anholt Part-of: --- docs/u_trace.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/u_trace.rst b/docs/u_trace.rst index 088bd10b654..0b66ca3bf30 100644 --- a/docs/u_trace.rst +++ b/docs/u_trace.rst @@ -41,3 +41,22 @@ u_trace is controlled by environment variables: :envvar:`GPU_TRACE_INSTRUMENT` Meaningful only for Perfetto tracing. If set to ``1`` enables instrumentation of GPU commands before the tracing is enabled. + +:envvar:`*_GPU_TRACEPOINT` + tracepoints can be enabled or disabled using driver specific environment + variable. Most tracepoints are enabled by default. For instance + ``TU_GPU_TRACEPOINT=-blit,+render_pass`` will disable the + ``blit`` tracepoints and enable the ``render_pass`` tracepoints. + +.. list-table:: + :header-rows: 1 + + * - Driver + - Environment Variable + - Tracepoint Definitions + * - Freedreno + - :envvar:`FD_GPU_TRACEPOINT` + - ``src/gallium/drivers/freedreno/freedreno_tracepoints.py`` + * - Turnip + - :envvar:`TU_GPU_TRACEPOINT` + - ``src/freedreno/vulkan/tu_tracepoints.py``