gallium/aux: Add GPU tracepoint mechanism
authorRob Clark <robdclark@chromium.org>
Thu, 26 Nov 2020 19:14:22 +0000 (11:14 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Dec 2020 21:19:57 +0000 (21:19 +0000)
commit3471af9c6cfa1dfa46e9607910bd4febc31095d2
tree5f5a99c561e508b0496d432f497f15c0286306f8
parenta1440ec3daaa4f95b5ce007157ae1371c39da5b6
gallium/aux: Add GPU tracepoint mechanism

This adds a mechanism, loosely inspired by the linux kernel's tracepoint
mechanism, to declare and emit tracepoints.  A driver provided callback
is used to emit cmdstream to capture timestamps on the GPU, which are
used to later "render" the emitted tracepoints.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7818>
src/gallium/auxiliary/meson.build
src/gallium/auxiliary/util/u_trace.c [new file with mode: 0644]
src/gallium/auxiliary/util/u_trace.h [new file with mode: 0644]
src/gallium/auxiliary/util/u_trace.py [new file with mode: 0644]
src/gallium/auxiliary/util/u_trace_priv.h [new file with mode: 0644]
src/gallium/auxiliary/util/u_tracepoints.py [new file with mode: 0644]