diff --git a/src/xrt/targets/common/target_instance.c b/src/xrt/targets/common/target_instance.c index a1f08fe1f..35648e9dd 100644 --- a/src/xrt/targets/common/target_instance.c +++ b/src/xrt/targets/common/target_instance.c @@ -48,6 +48,8 @@ t_instance_create_system(struct xrt_instance *xinst, struct xrt_system_devices **out_xsysd, struct xrt_system_compositor **out_xsysc) { + XRT_TRACE_MARKER(); + assert(out_xsysd != NULL); assert(*out_xsysd == NULL); assert(out_xsysc == NULL || *out_xsysc == NULL); @@ -118,6 +120,8 @@ xrt_instance_create(struct xrt_instance_info *ii, struct xrt_instance **out_xins u_trace_marker_init(); + XRT_TRACE_MARKER(); + int ret = xrt_prober_create_with_lists(&xp, &target_lists); if (ret < 0) { return XRT_ERROR_PROBER_CREATION_FAILED; diff --git a/src/xrt/targets/common/target_instance_no_comp.c b/src/xrt/targets/common/target_instance_no_comp.c index 5a9462245..9195d99b7 100644 --- a/src/xrt/targets/common/target_instance_no_comp.c +++ b/src/xrt/targets/common/target_instance_no_comp.c @@ -8,6 +8,7 @@ */ #include "xrt/xrt_system.h" +#include "util/u_trace_marker.h" #include "util/u_system_helpers.h" #include "target_instance_parts.h" @@ -19,6 +20,8 @@ t_instance_create_system(struct xrt_instance *xinst, struct xrt_system_devices **out_xsysd, struct xrt_system_compositor **out_xsysc) { + XRT_TRACE_MARKER(); + struct xrt_system_devices *xsysd = NULL; xrt_result_t xret = XRT_SUCCESS; @@ -51,6 +54,8 @@ t_instance_create_system(struct xrt_instance *xinst, int xrt_instance_create(struct xrt_instance_info *ii, struct xrt_instance **out_xinst) { + XRT_TRACE_MARKER(); + struct xrt_prober *xp = NULL; int ret = xrt_prober_create_with_lists(&xp, &target_lists); diff --git a/src/xrt/targets/common/target_instance_parts.h b/src/xrt/targets/common/target_instance_parts.h index e015f70bd..8b454cae2 100644 --- a/src/xrt/targets/common/target_instance_parts.h +++ b/src/xrt/targets/common/target_instance_parts.h @@ -14,6 +14,7 @@ #include "xrt/xrt_instance.h" #include "util/u_misc.h" +#include "util/u_trace_marker.h" /* @@ -51,6 +52,8 @@ t_instance(struct xrt_instance *xinst) static xrt_result_t t_instance_get_prober(struct xrt_instance *xinst, struct xrt_prober **out_xp) { + XRT_TRACE_MARKER(); + struct t_instance *tinst = t_instance(xinst); if (tinst->xp == NULL) { @@ -65,6 +68,8 @@ t_instance_get_prober(struct xrt_instance *xinst, struct xrt_prober **out_xp) static void t_instance_destroy(struct xrt_instance *xinst) { + XRT_TRACE_MARKER(); + struct t_instance *tinst = t_instance(xinst); xrt_prober_destroy(&tinst->xp);