The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc: hook up IPC_PRINT_SPEW and IPC_PRINT_DEBUG variables

for both server and client

+11 -3
+6 -3
src/xrt/ipc/client/ipc_client_instance.c
··· 13 13 14 14 #include "util/u_misc.h" 15 15 #include "util/u_var.h" 16 + #include "util/u_debug.h" 16 17 17 18 #include "shared/ipc_protocol.h" 18 19 #include "client/ipc_client.h" ··· 32 33 #ifdef XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER 33 34 #include "android/android_ahardwarebuffer_allocator.h" 34 35 #endif 36 + 37 + DEBUG_GET_ONCE_BOOL_OPTION(print_spew, "IPC_PRINT_SPEW", false) 38 + DEBUG_GET_ONCE_BOOL_OPTION(print_debug, "IPC_PRINT_DEBUG", false) 35 39 36 40 /* 37 41 * ··· 68 72 struct sockaddr_un addr; 69 73 int ret; 70 74 71 - ipc_c->print_spew = false; // TODO: hardcoded - fetch from settings 72 - ipc_c->print_debug = false; // TODO: hardcoded - fetch from settings 73 - 75 + ipc_c->print_spew = debug_get_bool_option_print_spew(); 76 + ipc_c->print_debug = debug_get_bool_option_print_debug(); 74 77 75 78 // create our IPC socket 76 79
+5
src/xrt/ipc/server/ipc_server_process.c
··· 49 49 */ 50 50 51 51 DEBUG_GET_ONCE_BOOL_OPTION(exit_on_disconnect, "IPC_EXIT_ON_DISCONNECT", false) 52 + DEBUG_GET_ONCE_BOOL_OPTION(print_spew, "IPC_PRINT_SPEW", false) 53 + DEBUG_GET_ONCE_BOOL_OPTION(print_debug, "IPC_PRINT_DEBUG", false) 52 54 53 55 struct _z_sort_data 54 56 { ··· 468 470 469 471 // Easier to use. 470 472 s->xc = &s->xcn->base; 473 + 474 + s->print_spew = debug_get_bool_option_print_spew(); 475 + s->print_debug = debug_get_bool_option_print_debug(); 471 476 472 477 u_var_add_root(s, "IPC Server", false); 473 478 u_var_add_bool(s, &s->print_debug, "print.debug");