2020-03-06 11:09:57 +01:00
|
|
|
/*
|
2022-05-16 14:06:56 +00:00
|
|
|
* Copyright (C) 2020-2022 Intel Corporation
|
2020-03-06 11:09:57 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventPoolCreateTracing(ze_context_handle_t hContext,
|
|
|
|
|
const ze_event_pool_desc_t *desc,
|
|
|
|
|
uint32_t numDevices,
|
|
|
|
|
ze_device_handle_t *phDevices,
|
|
|
|
|
ze_event_pool_handle_t *phEventPool);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventPoolDestroyTracing(ze_event_pool_handle_t hEventPool);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventCreateTracing(ze_event_pool_handle_t hEventPool,
|
|
|
|
|
const ze_event_desc_t *desc,
|
|
|
|
|
ze_event_handle_t *phEvent);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventDestroyTracing(ze_event_handle_t hEvent);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventPoolGetIpcHandleTracing(ze_event_pool_handle_t hEventPool,
|
|
|
|
|
ze_ipc_event_pool_handle_t *phIpc);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventPoolOpenIpcHandleTracing(ze_context_handle_t hContext,
|
|
|
|
|
ze_ipc_event_pool_handle_t hIpc,
|
|
|
|
|
ze_event_pool_handle_t *phEventPool);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventPoolCloseIpcHandleTracing(ze_event_pool_handle_t hEventPool);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeCommandListAppendSignalEventTracing(ze_command_list_handle_t hCommandList,
|
|
|
|
|
ze_event_handle_t hEvent);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeCommandListAppendWaitOnEventsTracing(ze_command_list_handle_t hCommandList,
|
|
|
|
|
uint32_t numEvents,
|
|
|
|
|
ze_event_handle_t *phEvents);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventHostSignalTracing(ze_event_handle_t hEvent);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventHostSynchronizeTracing(ze_event_handle_t hEvent,
|
|
|
|
|
uint64_t timeout);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventQueryStatusTracing(ze_event_handle_t hEvent);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventHostResetTracing(ze_event_handle_t hEvent);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeCommandListAppendEventResetTracing(ze_command_list_handle_t hCommandList,
|
|
|
|
|
ze_event_handle_t hEvent);
|
2020-03-06 11:09:57 +01:00
|
|
|
|
2020-07-31 18:03:32 -07:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2022-05-16 14:06:56 +00:00
|
|
|
zeEventQueryKernelTimestampTracing(ze_event_handle_t hEvent,
|
|
|
|
|
ze_kernel_timestamp_result_t *dstptr);
|
2020-03-06 11:09:57 +01:00
|
|
|
}
|