From f4a5e599eff9c56d63adf33189e3269f4ba3045c Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 20 Nov 2022 00:25:47 +0000 Subject: [PATCH] u/trace_marker: Add convenience U_TRACE_PERCETTO define --- src/xrt/auxiliary/util/u_trace_marker.c | 6 +++--- src/xrt/auxiliary/util/u_trace_marker.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xrt/auxiliary/util/u_trace_marker.c b/src/xrt/auxiliary/util/u_trace_marker.c index b5679e1e3..74150d923 100644 --- a/src/xrt/auxiliary/util/u_trace_marker.c +++ b/src/xrt/auxiliary/util/u_trace_marker.c @@ -19,7 +19,7 @@ #include -#ifdef XRT_FEATURE_TRACING +#ifdef U_TRACE_PERCETTO DEBUG_GET_ONCE_BOOL_OPTION(tracing, "XRT_TRACING", false) @@ -100,7 +100,7 @@ u_trace_marker_init(void) } } -#else /* XRT_FEATURE_TRACING */ +#else // !U_TRACE_PERCETTO void u_trace_marker_setup(enum u_trace_which which) @@ -116,4 +116,4 @@ u_trace_marker_init(void) // Noop } -#endif /* XRT_FEATURE_TRACING */ +#endif // !U_TRACE_PERCETTO diff --git a/src/xrt/auxiliary/util/u_trace_marker.h b/src/xrt/auxiliary/util/u_trace_marker.h index 9d501e2b5..89716e7bb 100644 --- a/src/xrt/auxiliary/util/u_trace_marker.h +++ b/src/xrt/auxiliary/util/u_trace_marker.h @@ -26,6 +26,7 @@ #endif #ifdef XRT_FEATURE_TRACING +#define U_TRACE_PERCETTO #include #endif