mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +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>
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef XRT_FEATURE_TRACING
|
#ifdef U_TRACE_PERCETTO
|
||||||
|
|
||||||
DEBUG_GET_ONCE_BOOL_OPTION(tracing, "XRT_TRACING", false)
|
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
|
void
|
||||||
u_trace_marker_setup(enum u_trace_which which)
|
u_trace_marker_setup(enum u_trace_which which)
|
||||||
|
@ -116,4 +116,4 @@ u_trace_marker_init(void)
|
||||||
// Noop
|
// Noop
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* XRT_FEATURE_TRACING */
|
#endif // !U_TRACE_PERCETTO
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XRT_FEATURE_TRACING
|
#ifdef XRT_FEATURE_TRACING
|
||||||
|
#define U_TRACE_PERCETTO
|
||||||
#include <percetto.h>
|
#include <percetto.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue