util/perf: use ALWAYS_INLINE for tracepoints
authorChia-I Wu <olvaffe@gmail.com>
Fri, 2 Sep 2022 18:26:05 +0000 (11:26 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 19:46:50 +0000 (19:46 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18309>

src/util/perf/u_trace.h
src/util/perf/u_trace.py

index 9d3acfc..a045f4b 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdint.h>
 #include <stdio.h>
 
+#include "util/macros.h"
 #include "util/u_atomic.h"
 #include "util/u_queue.h"
 
@@ -284,7 +285,7 @@ void u_trace_perfetto_stop(void);
  * Return whether instrumentations should be enabled or not.  This is called
  * from tracepoints.
  */
-static inline bool
+static ALWAYS_INLINE bool
 u_trace_instrument(void)
 {
    extern int _u_trace_instrument;
index 9b9fbce..a6a7619 100644 (file)
@@ -243,7 +243,7 @@ void __trace_${trace_name}(
      , ${arg.type} ${arg.var}
 %    endfor
 );
-static inline void trace_${trace_name}(
+static ALWAYS_INLINE void trace_${trace_name}(
      struct u_trace *ut
 %    if need_cs_param:
    , void *cs