rocprofiler-sdk/marker/api_id.h Source File

rocprofiler-sdk/marker/api_id.h Source File#

ROCprofiler-SDK developer API: rocprofiler-sdk/marker/api_id.h Source File
ROCprofiler-SDK developer API 1.0.0
ROCm Profiling API and tools
api_id.h
1// MIT License
2//
3// Copyright (c) 2023-2025 Advanced Micro Devices, Inc. All rights reserved.
4//
5// Permission is hereby granted, free of charge, to any person obtaining a copy
6// of this software and associated documentation files (the "Software"), to deal
7// in the Software without restriction, including without limitation the rights
8// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9// copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21// THE SOFTWARE.
22
23#pragma once
24
25/**
26 * @brief ROCProfiler enumeration of Marker (ROCTx) API tracing operations
27 */
28typedef enum rocprofiler_marker_core_api_id_t // NOLINT(performance-enum-size)
29{
30 ROCPROFILER_MARKER_CORE_API_ID_NONE = -1,
31 ROCPROFILER_MARKER_CORE_API_ID_roctxMarkA = 0,
32 ROCPROFILER_MARKER_CORE_API_ID_roctxRangePushA,
33 ROCPROFILER_MARKER_CORE_API_ID_roctxRangePop,
34 ROCPROFILER_MARKER_CORE_API_ID_roctxRangeStartA,
35 ROCPROFILER_MARKER_CORE_API_ID_roctxRangeStop,
36 ROCPROFILER_MARKER_CORE_API_ID_roctxGetThreadId,
37 ROCPROFILER_MARKER_CORE_API_ID_LAST,
38} rocprofiler_marker_core_api_id_t;
39
40typedef enum rocprofiler_marker_control_api_id_t // NOLINT(performance-enum-size)
41{
42 ROCPROFILER_MARKER_CONTROL_API_ID_NONE = -1,
43 ROCPROFILER_MARKER_CONTROL_API_ID_roctxProfilerPause = 0,
44 ROCPROFILER_MARKER_CONTROL_API_ID_roctxProfilerResume,
45 ROCPROFILER_MARKER_CONTROL_API_ID_LAST,
46} rocprofiler_marker_control_api_id_t;
47
48typedef enum rocprofiler_marker_name_api_id_t // NOLINT(performance-enum-size)
49{
50 ROCPROFILER_MARKER_NAME_API_ID_NONE = -1,
51 ROCPROFILER_MARKER_NAME_API_ID_roctxNameOsThread = 0,
52 ROCPROFILER_MARKER_NAME_API_ID_roctxNameHsaAgent,
53 ROCPROFILER_MARKER_NAME_API_ID_roctxNameHipDevice,
54 ROCPROFILER_MARKER_NAME_API_ID_roctxNameHipStream,
55 ROCPROFILER_MARKER_NAME_API_ID_LAST,
56} rocprofiler_marker_name_api_id_t;
57
58typedef enum rocprofiler_marker_core_range_api_id_t // NOLINT(performance-enum-size)
59{
60 ROCPROFILER_MARKER_CORE_RANGE_API_ID_NONE = -1,
61 ROCPROFILER_MARKER_CORE_RANGE_API_ID_roctxMarkA = 0,
62 ROCPROFILER_MARKER_CORE_RANGE_API_ID_roctxThreadRangeA,
63 ROCPROFILER_MARKER_CORE_RANGE_API_ID_roctxProcessRangeA,
64 ROCPROFILER_MARKER_CORE_RANGE_API_ID_roctxGetThreadId,
65 ROCPROFILER_MARKER_CORE_RANGE_API_ID_LAST,
66} rocprofiler_marker_core_range_api_id_t;