1 /* 2 * Copyright (C) 2020-2021 Intel Corporation 3 * 4 * SPDX-License-Identifier: MIT 5 * 6 */ 7 8 #pragma once 9 10 extern "C" { 11 12 ZE_APIEXPORT ze_result_t ZE_APICALL 13 zeEventPoolCreate_Tracing(ze_context_handle_t hContext, 14 const ze_event_pool_desc_t *desc, 15 uint32_t numDevices, 16 ze_device_handle_t *phDevices, 17 ze_event_pool_handle_t *phEventPool); 18 19 ZE_APIEXPORT ze_result_t ZE_APICALL 20 zeEventPoolDestroy_Tracing(ze_event_pool_handle_t hEventPool); 21 22 ZE_APIEXPORT ze_result_t ZE_APICALL 23 zeEventCreate_Tracing(ze_event_pool_handle_t hEventPool, 24 const ze_event_desc_t *desc, 25 ze_event_handle_t *phEvent); 26 27 ZE_APIEXPORT ze_result_t ZE_APICALL 28 zeEventDestroy_Tracing(ze_event_handle_t hEvent); 29 30 ZE_APIEXPORT ze_result_t ZE_APICALL 31 zeEventPoolGetIpcHandle_Tracing(ze_event_pool_handle_t hEventPool, 32 ze_ipc_event_pool_handle_t *phIpc); 33 34 ZE_APIEXPORT ze_result_t ZE_APICALL 35 zeEventPoolOpenIpcHandle_Tracing(ze_context_handle_t hContext, 36 ze_ipc_event_pool_handle_t hIpc, 37 ze_event_pool_handle_t *phEventPool); 38 39 ZE_APIEXPORT ze_result_t ZE_APICALL 40 zeEventPoolCloseIpcHandle_Tracing(ze_event_pool_handle_t hEventPool); 41 42 ZE_APIEXPORT ze_result_t ZE_APICALL 43 zeCommandListAppendSignalEvent_Tracing(ze_command_list_handle_t hCommandList, 44 ze_event_handle_t hEvent); 45 46 ZE_APIEXPORT ze_result_t ZE_APICALL 47 zeCommandListAppendWaitOnEvents_Tracing(ze_command_list_handle_t hCommandList, 48 uint32_t numEvents, 49 ze_event_handle_t *phEvents); 50 51 ZE_APIEXPORT ze_result_t ZE_APICALL 52 zeEventHostSignal_Tracing(ze_event_handle_t hEvent); 53 54 ZE_APIEXPORT ze_result_t ZE_APICALL 55 zeEventHostSynchronize_Tracing(ze_event_handle_t hEvent, 56 uint64_t timeout); 57 58 ZE_APIEXPORT ze_result_t ZE_APICALL 59 zeEventQueryStatus_Tracing(ze_event_handle_t hEvent); 60 61 ZE_APIEXPORT ze_result_t ZE_APICALL 62 zeEventHostReset_Tracing(ze_event_handle_t hEvent); 63 64 ZE_APIEXPORT ze_result_t ZE_APICALL 65 zeCommandListAppendEventReset_Tracing(ze_command_list_handle_t hCommandList, 66 ze_event_handle_t hEvent); 67 68 ZE_APIEXPORT ze_result_t ZE_APICALL 69 zeEventQueryKernelTimestamp_Tracing(ze_event_handle_t hEvent, 70 ze_kernel_timestamp_result_t *dstptr); 71 } 72