• Gert Wollny's avatar
    virgl: Add perfetto performance calls conditionally · 19d65e83
    Gert Wollny authored
    
    
    Author: Tomeu Vizoso <tomeu.vizoso@collabora.com> (v1)
    v2: - Include perfetto_min.h only when perf tracing is enabled
        - Make stubs inline code so it can be optimized away.
        - Add compile with tracing info to configuration status
        - Use static for stubs (Chia-I Wu)
        - pass trace option as a string and add defines so that
          other tracing tools cold be accomodated
          (inspired by Chia-I Wu & Tomeu)
        - Use macros to wrap the trace calls
    
    v3: - Use __attribute__((cleanup)) to handle trace_begin/trace_end
          instead of using macros to wrap the calls (Chia-I Wu)
        - remove cpp from language support
    
    v4: - Fix __attribute__ check in meson.build
        - replace TRACE_FUNC macro to not take a paramter
        - move trace initialization to a seperate function
          (all suggestions by Chia-I Wu)
    
    v5: use vsnprintf to avoid buffer overflow (John Bates)
    Signed-off-by: Gert Wollny's avatarGert Wollny <gert.wollny@collabora.com>
    Reviewed-by: Chia-I Wu <olvaffe@gmail.com> (v4)
    19d65e83
vrend_decode.c 57 KB