Skip to content

Commit

Permalink
add context property tracing for cl_arm_printf (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug authored Jan 15, 2025
1 parent 0760d6d commit 4dca7ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions intercept/src/intercept.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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.
Expand Down

0 comments on commit 4dca7ce

Please sign in to comment.