Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Level zero loader changelog
## v1.27.0
* feature: Update to support L0 Spec v1.15.26
* fix: fix Driver Search Paths for all Linux Distros
* Fix minor performance issues with variable copy
* feature: Add zelGetTracingLayerState to query if tracing is enabled
* Checker: System Resource Monitor
* Fix minor performance issue with leak checker destroy
## v1.26.3
* fix handling of optional DDI tables missing or incorrect
## v1.26.2
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if(MSVC AND (MSVC_VERSION LESS 1900))
endif()

# This project follows semantic versioning (https://semver.org/)
project(level-zero VERSION 1.26.3)
project(level-zero VERSION 1.27.0)
include(GNUInstallDirs)

find_package(Git)
Expand Down
4 changes: 2 additions & 2 deletions PRODUCT_GUID.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.26.3
d1ed32f4-2b7d-4718-9f86-69cbae2c1836
1.27.0
ed00a7db-f557-48c2-9f90-c1f97b56ad91
278 changes: 278 additions & 0 deletions include/layers/zel_tracing_register_cb.h
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,32 @@ typedef void (ZE_APICALL *ze_pfnDeviceSynchronizeCb_t)(
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeDeviceGetAggregatedCopyOffloadIncrementValue
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value

typedef struct _ze_device_get_aggregated_copy_offload_increment_value_params_t
{
ze_device_handle_t* phDevice;
uint32_t** pincrementValue;
} ze_device_get_aggregated_copy_offload_increment_value_params_t;


///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function-pointer for zeDeviceGetAggregatedCopyOffloadIncrementValue
/// @param[in] params Parameters passed to this instance
/// @param[in] result Return value
/// @param[in] pTracerUserData Per-Tracer user data
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data

typedef void (ZE_APICALL *ze_pfnDeviceGetAggregatedCopyOffloadIncrementValueCb_t)(
ze_device_get_aggregated_copy_offload_increment_value_params_t* params,
ze_result_t result,
void* pTracerUserData,
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeDeviceReserveCacheExt
/// @details Each entry is a pointer to the parameter passed to the function;
Expand Down Expand Up @@ -1565,6 +1591,139 @@ typedef void (ZE_APICALL *ze_pfnCommandListUpdateMutableCommandWaitEventsExpCb_t
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeEventCounterBasedCreate
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value

typedef struct _ze_event_counter_based_create_params_t
{
ze_context_handle_t* phContext;
ze_device_handle_t* phDevice;
const ze_event_counter_based_desc_t** pdesc;
ze_event_handle_t** pphEvent;
} ze_event_counter_based_create_params_t;


///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function-pointer for zeEventCounterBasedCreate
/// @param[in] params Parameters passed to this instance
/// @param[in] result Return value
/// @param[in] pTracerUserData Per-Tracer user data
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data

typedef void (ZE_APICALL *ze_pfnEventCounterBasedCreateCb_t)(
ze_event_counter_based_create_params_t* params,
ze_result_t result,
void* pTracerUserData,
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeEventCounterBasedGetIpcHandle
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value

typedef struct _ze_event_counter_based_get_ipc_handle_params_t
{
ze_event_handle_t* phEvent;
ze_ipc_event_counter_based_handle_t** pphIpc;
} ze_event_counter_based_get_ipc_handle_params_t;


///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function-pointer for zeEventCounterBasedGetIpcHandle
/// @param[in] params Parameters passed to this instance
/// @param[in] result Return value
/// @param[in] pTracerUserData Per-Tracer user data
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data

typedef void (ZE_APICALL *ze_pfnEventCounterBasedGetIpcHandleCb_t)(
ze_event_counter_based_get_ipc_handle_params_t* params,
ze_result_t result,
void* pTracerUserData,
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeEventCounterBasedOpenIpcHandle
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value

typedef struct _ze_event_counter_based_open_ipc_handle_params_t
{
ze_context_handle_t* phContext;
ze_ipc_event_counter_based_handle_t* phIpc;
ze_event_handle_t** pphEvent;
} ze_event_counter_based_open_ipc_handle_params_t;


///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function-pointer for zeEventCounterBasedOpenIpcHandle
/// @param[in] params Parameters passed to this instance
/// @param[in] result Return value
/// @param[in] pTracerUserData Per-Tracer user data
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data

typedef void (ZE_APICALL *ze_pfnEventCounterBasedOpenIpcHandleCb_t)(
ze_event_counter_based_open_ipc_handle_params_t* params,
ze_result_t result,
void* pTracerUserData,
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeEventCounterBasedCloseIpcHandle
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value

typedef struct _ze_event_counter_based_close_ipc_handle_params_t
{
ze_event_handle_t* phEvent;
} ze_event_counter_based_close_ipc_handle_params_t;


///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function-pointer for zeEventCounterBasedCloseIpcHandle
/// @param[in] params Parameters passed to this instance
/// @param[in] result Return value
/// @param[in] pTracerUserData Per-Tracer user data
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data

typedef void (ZE_APICALL *ze_pfnEventCounterBasedCloseIpcHandleCb_t)(
ze_event_counter_based_close_ipc_handle_params_t* params,
ze_result_t result,
void* pTracerUserData,
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeEventCounterBasedGetDeviceAddress
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value

typedef struct _ze_event_counter_based_get_device_address_params_t
{
ze_event_handle_t* phEvent;
uint64_t** pcompletionValue;
uint64_t** pdeviceAddress;
} ze_event_counter_based_get_device_address_params_t;


///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function-pointer for zeEventCounterBasedGetDeviceAddress
/// @param[in] params Parameters passed to this instance
/// @param[in] result Return value
/// @param[in] pTracerUserData Per-Tracer user data
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data

typedef void (ZE_APICALL *ze_pfnEventCounterBasedGetDeviceAddressCb_t)(
ze_event_counter_based_get_device_address_params_t* params,
ze_result_t result,
void* pTracerUserData,
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeEventQueryTimestampsExp
/// @details Each entry is a pointer to the parameter passed to the function;
Expand Down Expand Up @@ -2022,6 +2181,34 @@ typedef void (ZE_APICALL *ze_pfnKernelSchedulingHintExpCb_t)(
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeMemGetIpcHandleWithProperties
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value

typedef struct _ze_mem_get_ipc_handle_with_properties_params_t
{
ze_context_handle_t* phContext;
const void** pptr;
void** ppNext;
ze_ipc_mem_handle_t** ppIpcHandle;
} ze_mem_get_ipc_handle_with_properties_params_t;


///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function-pointer for zeMemGetIpcHandleWithProperties
/// @param[in] params Parameters passed to this instance
/// @param[in] result Return value
/// @param[in] pTracerUserData Per-Tracer user data
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data

typedef void (ZE_APICALL *ze_pfnMemGetIpcHandleWithPropertiesCb_t)(
ze_mem_get_ipc_handle_with_properties_params_t* params,
ze_result_t result,
void* pTracerUserData,
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeMemFreeExt
/// @details Each entry is a pointer to the parameter passed to the function;
Expand Down Expand Up @@ -2245,6 +2432,33 @@ typedef void (ZE_APICALL *ze_pfnModuleInspectLinkageExtCb_t)(
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zePhysicalMemGetProperties
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value

typedef struct _ze_physical_mem_get_properties_params_t
{
ze_context_handle_t* phContext;
ze_physical_mem_handle_t* phPhysicalMem;
ze_physical_mem_properties_t** ppMemProperties;
} ze_physical_mem_get_properties_params_t;


///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function-pointer for zePhysicalMemGetProperties
/// @param[in] params Parameters passed to this instance
/// @param[in] result Return value
/// @param[in] pTracerUserData Per-Tracer user data
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data

typedef void (ZE_APICALL *ze_pfnPhysicalMemGetPropertiesCb_t)(
ze_physical_mem_get_properties_params_t* params,
ze_result_t result,
void* pTracerUserData,
void** ppTracerInstanceUserData
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for zeFabricEdgeGetExp
/// @details Each entry is a pointer to the parameter passed to the function;
Expand Down Expand Up @@ -2763,6 +2977,14 @@ zelTracerDeviceSynchronizeRegisterCallback(
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerDeviceGetAggregatedCopyOffloadIncrementValueRegisterCallback(
zel_tracer_handle_t hTracer,
zel_tracer_reg_t callback_type,
ze_pfnDeviceGetAggregatedCopyOffloadIncrementValueCb_t pfnGetAggregatedCopyOffloadIncrementValueCb
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerContextCreateRegisterCallback(
zel_tracer_handle_t hTracer,
Expand Down Expand Up @@ -3067,6 +3289,14 @@ zelTracerEventCreateRegisterCallback(
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerEventCounterBasedCreateRegisterCallback(
zel_tracer_handle_t hTracer,
zel_tracer_reg_t callback_type,
ze_pfnEventCounterBasedCreateCb_t pfnCounterBasedCreateCb
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerEventDestroyRegisterCallback(
zel_tracer_handle_t hTracer,
Expand Down Expand Up @@ -3107,6 +3337,38 @@ zelTracerEventPoolCloseIpcHandleRegisterCallback(
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerEventCounterBasedGetIpcHandleRegisterCallback(
zel_tracer_handle_t hTracer,
zel_tracer_reg_t callback_type,
ze_pfnEventCounterBasedGetIpcHandleCb_t pfnCounterBasedGetIpcHandleCb
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerEventCounterBasedOpenIpcHandleRegisterCallback(
zel_tracer_handle_t hTracer,
zel_tracer_reg_t callback_type,
ze_pfnEventCounterBasedOpenIpcHandleCb_t pfnCounterBasedOpenIpcHandleCb
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerEventCounterBasedCloseIpcHandleRegisterCallback(
zel_tracer_handle_t hTracer,
zel_tracer_reg_t callback_type,
ze_pfnEventCounterBasedCloseIpcHandleCb_t pfnCounterBasedCloseIpcHandleCb
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerEventCounterBasedGetDeviceAddressRegisterCallback(
zel_tracer_handle_t hTracer,
zel_tracer_reg_t callback_type,
ze_pfnEventCounterBasedGetDeviceAddressCb_t pfnCounterBasedGetDeviceAddressCb
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerCommandListAppendSignalEventRegisterCallback(
zel_tracer_handle_t hTracer,
Expand Down Expand Up @@ -3691,6 +3953,14 @@ zelTracerVirtualMemQueryPageSizeRegisterCallback(
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerPhysicalMemGetPropertiesRegisterCallback(
zel_tracer_handle_t hTracer,
zel_tracer_reg_t callback_type,
ze_pfnPhysicalMemGetPropertiesCb_t pfnGetPropertiesCb
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerPhysicalMemCreateRegisterCallback(
zel_tracer_handle_t hTracer,
Expand Down Expand Up @@ -3883,6 +4153,14 @@ zelTracerKernelGetAllocationPropertiesExpRegisterCallback(
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerMemGetIpcHandleWithPropertiesRegisterCallback(
zel_tracer_handle_t hTracer,
zel_tracer_reg_t callback_type,
ze_pfnMemGetIpcHandleWithPropertiesCb_t pfnGetIpcHandleWithPropertiesCb
);


ZE_APIEXPORT ze_result_t ZE_APICALL
zelTracerDeviceReserveCacheExtRegisterCallback(
zel_tracer_handle_t hTracer,
Expand Down
Loading
Loading