virgl: Add perfetto performance calls conditionally
This MR adds the possibility to compile virglrenderer with support for Perfetto
tracing.
Author: Tomeu Vizoso <tomeu.vizoso@collabora.com> (v1)
v2: - Include perfetto_min.h only when perf tracing is enabled.
- Make stubs inline code so they can be optimized away.
- Add compile with tracing info to configuration status.
v3: - use __attribute__((cleanul))
- add tracing to stderr as alternative
Edited by Gert Wollny