gallium/aux: Add perfetto support to u_trace
authorRob Clark <robdclark@chromium.org>
Mon, 22 Mar 2021 20:25:49 +0000 (13:25 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 10 May 2021 15:34:07 +0000 (15:34 +0000)
commit3e4f1798d4ffddbafc99213f204456f41300f3aa
tree2636d72e9eb1a333de800922b45666620b60d59c
parent3e13e4546775a857157a8d2f2fd50f157b38fbff
gallium/aux: Add perfetto support to u_trace

Not really direct perfetto support, but add a way that tracepoints can
be associated with a driver provided callback which can generate
perfetto events using the timestamps collected on the GPU.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9901>
src/gallium/auxiliary/util/u_trace.c
src/gallium/auxiliary/util/u_trace.h
src/gallium/auxiliary/util/u_trace.py
src/gallium/auxiliary/util/u_trace_priv.h