util/perf: add u_trace_instrument
authorChia-I Wu <olvaffe@gmail.com>
Mon, 29 Aug 2022 23:38:30 +0000 (16:38 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 19:46:50 +0000 (19:46 +0000)
commit18d7cb4abbd65b6eb1091d902245271dc49cd8ed
tree44ae4d019b6b795a69105d29d3ab42be58d07996
parentaeb2c5a8dafb00461fa42a4562612c26c9052dc0
util/perf: add u_trace_instrument

It is called from tracepoints.  When it returns false, instrumentation
is disabled.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18309>
src/gallium/auxiliary/util/u_trace_gallium.c
src/util/perf/u_trace.c
src/util/perf/u_trace.h
src/util/perf/u_trace.py