From 040764c4f1b08325dda7fd36c15eb3eb42432e42 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 4 Dec 2022 23:29:21 +0000 Subject: [PATCH] ipc: Trace around ipc_dispatch --- src/xrt/ipc/server/ipc_server_per_client_thread.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xrt/ipc/server/ipc_server_per_client_thread.c b/src/xrt/ipc/server/ipc_server_per_client_thread.c index 1b93f463d..93179f7f2 100644 --- a/src/xrt/ipc/server/ipc_server_per_client_thread.c +++ b/src/xrt/ipc/server/ipc_server_per_client_thread.c @@ -112,7 +112,11 @@ client_loop(volatile struct ipc_client_state *ics) // Check the first 4 bytes of the message and dispatch. ipc_command_t *ipc_command = (ipc_command_t *)buf; + + IPC_TRACE_BEGIN(ipc_dispatch); xrt_result_t result = ipc_dispatch(ics, ipc_command); + IPC_TRACE_END(ipc_dispatch); + if (result != XRT_SUCCESS) { IPC_ERROR(ics->server, "During packet handling, disconnecting client."); break; @@ -171,7 +175,11 @@ client_loop(volatile struct ipc_client_state *ics) } else { // Check the first 4 bytes of the message and dispatch. ipc_command_t *ipc_command = (ipc_command_t *)buf; + + IPC_TRACE_BEGIN(ipc_dispatch); xrt_result_t result = ipc_dispatch(ics, ipc_command); + IPC_TRACE_END(ipc_dispatch); + if (result != XRT_SUCCESS) { IPC_ERROR(ics->server, "During packet handling, disconnecting client."); break;