mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-16 03:45:24 +00:00
u/trace_marker: Add U_TRACE_SET_THREAD_NAME
This commit is contained in:
parent
d1e116cb58
commit
469a79493c
|
@ -115,6 +115,11 @@ u_trace_marker_init(void);
|
||||||
|
|
||||||
#define U_TRACE_CATEGORY_IS_ENABLED(_) (false)
|
#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.
|
* 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)
|
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_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) \
|
#define U_TRACE_TARGET_SETUP(WHICH) \
|
||||||
void __attribute__((constructor(101))) u_trace_marker_constructor(void); \
|
void __attribute__((constructor(101))) u_trace_marker_constructor(void); \
|
||||||
\
|
\
|
||||||
|
|
Loading…
Reference in a new issue