mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-27 09:01:46 +00:00
t/common: Do more tracing during init and fini
This commit is contained in:
parent
8637617833
commit
60099fdd71
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue