diff --git a/src/util/perf/u_trace.h b/src/util/perf/u_trace.h index 9d3acfc8745..a045f4b2355 100644 --- a/src/util/perf/u_trace.h +++ b/src/util/perf/u_trace.h @@ -28,6 +28,7 @@ #include #include +#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; diff --git a/src/util/perf/u_trace.py b/src/util/perf/u_trace.py index 9b9fbceff74..a6a7619cb6b 100644 --- a/src/util/perf/u_trace.py +++ b/src/util/perf/u_trace.py @@ -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