From 386aa510bd7054179fcc22194510b1b89f0e3f6f Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 20 Nov 2022 11:36:56 +0000 Subject: [PATCH] ipc: Use U_TRACE_SET_THREAD_NAME --- src/xrt/ipc/server/ipc_server_per_client_thread.c | 5 +++++ 1 file changed, 5 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 c239fc7d6..de2c1c974 100644 --- a/src/xrt/ipc/server/ipc_server_per_client_thread.c +++ b/src/xrt/ipc/server/ipc_server_per_client_thread.c @@ -9,6 +9,7 @@ */ #include "util/u_misc.h" +#include "util/u_trace_marker.h" #include "server/ipc_server.h" #include "ipc_server_generated.h" @@ -67,6 +68,8 @@ setup_epoll(volatile struct ipc_client_state *ics) static void client_loop(volatile struct ipc_client_state *ics) { + U_TRACE_SET_THREAD_NAME("IPC Client"); + IPC_INFO(ics->server, "Client connected"); // Claim the client fd. @@ -145,6 +148,8 @@ client_loop(volatile struct ipc_client_state *ics) static void client_loop(volatile struct ipc_client_state *ics) { + U_TRACE_SET_THREAD_NAME("IPC Client"); + IPC_INFO(ics->server, "Client connected"); uint8_t buf[IPC_BUF_SIZE];