1
1
/*
2
- * Copyright (C) 2023-2024 Intel Corporation
2
+ * Copyright (C) 2023-2025 Intel Corporation
3
3
*
4
4
* SPDX-License-Identifier: MIT
5
5
*
@@ -22,6 +22,29 @@ extern "C" {
22
22
#define ZET_INTEL_MAX_METRIC_GROUP_NAME_PREFIX_EXP 64u
23
23
#define ZET_INTEL_METRIC_PROGRAMMABLE_PARAM_TYPE_GENERIC_EXP (0x7ffffffe)
24
24
25
+ #ifndef ZET_INTEL_METRIC_APPEND_MARKER_EXP_NAME
26
+ /// @brief Extension name for query to read the Intel Level Zero Driver Version String
27
+ #define ZET_INTEL_METRIC_APPEND_MARKER_EXP_NAME "ZET_intel_metric_append_marker"
28
+ #endif // ZET_INTEL_APPEND_MARKER_EXP_NAME
29
+
30
+ ///////////////////////////////////////////////////////////////////////////////
31
+ /// @brief Append Marker extension Version(s)
32
+ typedef enum _zet_intel_metric_append_marker_exp_version_t {
33
+ ZET_INTEL_METRIC_APPEND_MARKER_EXP_VERSION_1_0 = ZE_MAKE_VERSION (1 , 0 ), ///< version 1.0
34
+ ZET_INTEL_METRIC_APPEND_MARKER_EXP_VERSION_CURRENT = ZE_MAKE_VERSION (1 , 0 ), ///< latest known version
35
+ ZET_INTEL_METRIC_APPEND_MARKER_EXP_VERSION_FORCE_UINT32 = 0x7fffffff
36
+ } zet_intel_metric_append_marker_exp_version_t ;
37
+
38
+ #define ZET_INTEL_METRIC_GROUP_TYPE_EXP_FLAG_MARKER (static_cast<zet_metric_group_type_exp_flag_t>(ZE_BIT(3))) // NOLINT(clang-analyzer-optin.core.EnumCastOutOfRange), NEO-12901
39
+
40
+ ///////////////////////////////////////////////////////////////////////////////
41
+ /// @brief Appends a metric marker to the command list based on the metricGroup
42
+ /// Metrics can be generated by multiple sources in the HW
43
+ /// This API generates a marker through the same source as the metric group
44
+ ze_result_t ZE_APICALL zetIntelCommandListAppendMarkerExp (zet_command_list_handle_t hCommandList ,
45
+ zet_metric_group_handle_t hMetricGroup ,
46
+ uint32_t value );
47
+
25
48
#if defined(__cplusplus )
26
49
} // extern "C"
27
50
#endif
0 commit comments