From 4dca7ce3cff7b5740fbcc68ea0aed42f76e5c16f Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Wed, 15 Jan 2025 07:12:26 -0800 Subject: [PATCH] add context property tracing for cl_arm_printf (#402) --- intercept/src/intercept.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/intercept/src/intercept.cpp b/intercept/src/intercept.cpp index d2b88a8f..3b32a35c 100644 --- a/intercept/src/intercept.cpp +++ b/intercept/src/intercept.cpp @@ -2176,6 +2176,7 @@ void CLIntercept::getContextPropertiesString( case CL_CONTEXT_ADAPTER_D3D9EX_KHR: case CL_CONTEXT_ADAPTER_DXVA_KHR: #endif + case CL_PRINTF_CALLBACK_ARM: { const void** pp = (const void**)( properties + 1 ); const void* value = pp[0]; @@ -2191,6 +2192,14 @@ void CLIntercept::getContextPropertiesString( str += enumName().name_bool( value ); } break; + case CL_PRINTF_BUFFERSIZE_ARM: + { + const size_t* psz = (const size_t*)( properties + 1); + size_t value = psz[0]; + CLI_SPRINTF( s, 256, "%zu", value ); + str += s; + } + break; case CL_CONTEXT_MEMORY_INITIALIZE_KHR: // TODO: this is a cl_context_memory_initialize_khr bitfield. // Fall through for now.