Skip to content

Commit 5ea6c0d

Browse files
committed
Change the enum string to profile
1 parent cfe4af5 commit 5ea6c0d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

projects/rocprofiler-sdk/source/include/rocprofiler-sdk/cxx/enum_string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_AST_NOT_FOUND);
15881588
ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_AQL_NO_EVENT_COORD);
15891589
ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_INCOMPATIBLE_KERNEL);
15901590
ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_OUT_OF_RESOURCES);
1591-
ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND);
1591+
ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND);
15921592
ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_AGENT_DISPATCH_CONFLICT);
15931593
ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_INTERNAL_NO_AGENT_CONTEXT);
15941594
ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_SAMPLE_RATE_EXCEEDED);

projects/rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ typedef enum rocprofiler_status_t // NOLINT(performance-enum-size)
8989
///< service that report incompatibility
9090
ROCPROFILER_STATUS_ERROR_OUT_OF_RESOURCES, ///< The given resources are
9191
///< insufficient to complete operation
92-
ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND, ///< Could not find the counter profile
92+
ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND, ///< Could not find the counter profile
9393
ROCPROFILER_STATUS_ERROR_AGENT_DISPATCH_CONFLICT, ///< Cannot enable both agent and dispatch
9494
///< counting in the same context.
9595
ROCPROFILER_STATUS_INTERNAL_NO_AGENT_CONTEXT, ///< No agent context found, may not be an error
@@ -107,6 +107,7 @@ typedef enum rocprofiler_status_t // NOLINT(performance-enum-size)
107107
///< incompatible. Late-start profiling
108108
///< requires ROCm 7.0+.
109109
ROCPROFILER_STATUS_LAST,
110+
ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND = ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND, ///< ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND is deprecated
110111
} rocprofiler_status_t;
111112

112113
/**

projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/rocprofiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ROCPROFILER_STATUS_STRING(ROCPROFILER_STATUS_ERROR_INCOMPATIBLE_KERNEL,
9393
"A service depends on a newer version of KFD (amdgpu kernel driver)")
9494
ROCPROFILER_STATUS_STRING(ROCPROFILER_STATUS_ERROR_OUT_OF_RESOURCES,
9595
"The given resources are insufficient to complete operation")
96-
ROCPROFILER_STATUS_STRING(ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND,
96+
ROCPROFILER_STATUS_STRING(ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND,
9797
"Could not find counter profile")
9898
ROCPROFILER_STATUS_STRING(ROCPROFILER_STATUS_ERROR_AGENT_DISPATCH_CONFLICT,
9999
"Cannot have both an agent counter collection and a dispatch counter "

0 commit comments

Comments
 (0)