From 7524239b1f7d1d3af920a74ae4b2a1005793dad9 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Mon, 22 Feb 2021 20:39:09 +0000 Subject: [PATCH] t/oxr: Enable tracing --- src/xrt/targets/openxr/target.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xrt/targets/openxr/target.c b/src/xrt/targets/openxr/target.c index 703c0cfb8..0ac5f2366 100644 --- a/src/xrt/targets/openxr/target.c +++ b/src/xrt/targets/openxr/target.c @@ -8,6 +8,12 @@ #include "xrt/xrt_config_build.h" +#include "util/u_trace_marker.h" + +// Insert the on load constructor to init trace marker. +U_TRACE_TARGET_INIT() + + #ifdef XRT_FEATURE_SERVICE #include "xrt/xrt_instance.h" @@ -19,6 +25,8 @@ ipc_instance_create(struct xrt_instance_info *i_info, struct xrt_instance **out_ int xrt_instance_create(struct xrt_instance_info *i_info, struct xrt_instance **out_xinst) { + XRT_TRACE_MARKER(); + return ipc_instance_create(i_info, out_xinst); }