mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
u/trace_marker: Add convenience U_TRACE_PERCETTO define
This commit is contained in:
parent
648f91d35c
commit
f4a5e599ef
|
@ -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
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef XRT_FEATURE_TRACING
|
||||
#define U_TRACE_PERCETTO
|
||||
#include <percetto.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue