Debian Codegraph @

level_zero/experimental/source/tracing/tracing_cmdlist_imp.h

raw
1 /*
2 * Copyright (C) 2020-2022 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 zeCommandListCreateTracing(ze_context_handle_t hContext,
14 ze_device_handle_t hDevice,
15 const ze_command_list_desc_t *desc,
16 ze_command_list_handle_t *phCommandList);
17
18 ZE_APIEXPORT ze_result_t ZE_APICALL
19 zeCommandListCreateImmediateTracing(ze_context_handle_t hContext,
20 ze_device_handle_t hDevice,
21 const ze_command_queue_desc_t *altdesc,
22 ze_command_list_handle_t *phCommandList);
23
24 ZE_APIEXPORT ze_result_t ZE_APICALL
25 zeCommandListDestroyTracing(ze_command_list_handle_t hCommandList);
26
27 ZE_APIEXPORT ze_result_t ZE_APICALL
28 zeCommandListCloseTracing(ze_command_list_handle_t hCommandList);
29
30 ZE_APIEXPORT ze_result_t ZE_APICALL
31 zeCommandListResetTracing(ze_command_list_handle_t hCommandList);
32
33 ZE_APIEXPORT ze_result_t ZE_APICALL
34 zeCommandListAppendWriteGlobalTimestampTracing(ze_command_list_handle_t hCommandList,
35 uint64_t *dstptr,
36 ze_event_handle_t hSignalEvent,
37 uint32_t numWaitEvents,
38 ze_event_handle_t *phWaitEvents);
39 ZE_APIEXPORT ze_result_t ZE_APICALL
40 zeCommandListAppendQueryKernelTimestampsTracing(ze_command_list_handle_t hCommandList,
41 uint32_t numEvents,
42 ze_event_handle_t *phEvents,
43 void *dstptr,
44 const size_t *pOffsets,
45 ze_event_handle_t hSignalEvent,
46 uint32_t numWaitEvents,
47 ze_event_handle_t *phWaitEvents);
48 }