u/trace_marker: Add convenience U_TRACE_PERCETTO define

This commit is contained in:
Jakob Bornecrantz 2022-11-20 00:25:47 +00:00
parent 648f91d35c
commit f4a5e599ef
2 changed files with 4 additions and 3 deletions

View file

@ -19,7 +19,7 @@
#include <inttypes.h>
#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

View file

@ -26,6 +26,7 @@
#endif
#ifdef XRT_FEATURE_TRACING
#define U_TRACE_PERCETTO
#include <percetto.h>
#endif