Debian Codegraph @

level_zero/experimental/source/tracing/tracing_event_imp.h

raw
1 /*
2 * Copyright (C) 2020-2023 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 zeEventPoolCreateTracing(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 zeEventPoolDestroyTracing(ze_event_pool_handle_t hEventPool);
21
22 ZE_APIEXPORT ze_result_t ZE_APICALL
23 zeEventCreateTracing(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 zeEventDestroyTracing(ze_event_handle_t hEvent);
29
30 ZE_APIEXPORT ze_result_t ZE_APICALL
31 zeEventPoolGetIpcHandleTracing(ze_event_pool_handle_t hEventPool,
32 ze_ipc_event_pool_handle_t *phIpc);
33
34 ZE_APIEXPORT ze_result_t ZE_APICALL
35 zeEventPoolOpenIpcHandleTracing(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 zeEventPoolCloseIpcHandleTracing(ze_event_pool_handle_t hEventPool);
41
42 ZE_APIEXPORT ze_result_t ZE_APICALL
43 zeCommandListAppendSignalEventTracing(ze_command_list_handle_t hCommandList,
44 ze_event_handle_t hEvent);
45
46 ZE_APIEXPORT ze_result_t ZE_APICALL
47 zeCommandListAppendWaitOnEventsTracing(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 zeEventHostSignalTracing(ze_event_handle_t hEvent);
53
54 ZE_APIEXPORT ze_result_t ZE_APICALL
55 zeEventHostSynchronizeTracing(ze_event_handle_t hEvent,
56 uint64_t timeout);
57
58 ZE_APIEXPORT ze_result_t ZE_APICALL
59 zeEventQueryStatusTracing(ze_event_handle_t hEvent);
60
61 ZE_APIEXPORT ze_result_t ZE_APICALL
62 zeEventHostResetTracing(ze_event_handle_t hEvent);
63
64 ZE_APIEXPORT ze_result_t ZE_APICALL
65 zeCommandListAppendEventResetTracing(ze_command_list_handle_t hCommandList,
66 ze_event_handle_t hEvent);
67
68 ZE_APIEXPORT ze_result_t ZE_APICALL
69 zeEventQueryKernelTimestampTracing(ze_event_handle_t hEvent,
70 ze_kernel_timestamp_result_t *dstptr);
71 }