From 469a79493c9fb1aa54ef4a2dc294d7b31995fdc4 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 20 Nov 2022 11:21:03 +0000 Subject: [PATCH] u/trace_marker: Add U_TRACE_SET_THREAD_NAME --- src/xrt/auxiliary/util/u_trace_marker.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/xrt/auxiliary/util/u_trace_marker.h b/src/xrt/auxiliary/util/u_trace_marker.h index 062077fd2..3d2d38c56 100644 --- a/src/xrt/auxiliary/util/u_trace_marker.h +++ b/src/xrt/auxiliary/util/u_trace_marker.h @@ -115,6 +115,11 @@ u_trace_marker_init(void); #define U_TRACE_CATEGORY_IS_ENABLED(_) (false) +#define U_TRACE_SET_THREAD_NAME(STRING) \ + do { \ + (void)STRING; \ + } while (false) + /*! * Add to target c file to enable tracing, see @ref tracing. * @@ -172,6 +177,11 @@ PERCETTO_TRACK_DECLARE(pa_wait); TRACE_ANY_WITH_ARGS(PERCETTO_EVENT_INSTANT, CATEGORY, &g_percetto_track_##TRACK, TIME, NAME, 0) #define U_TRACE_DATA(fd, type, data) u_trace_data(fd, type, (void *)&(data), sizeof(data)) +#define U_TRACE_SET_THREAD_NAME(STRING) \ + do { \ + (void)STRING; \ + } while (false) + #define U_TRACE_TARGET_SETUP(WHICH) \ void __attribute__((constructor(101))) u_trace_marker_constructor(void); \ \