SWDEV-405920: V2 clean up for unimplemented and corrupted APIs
Change-Id: I2c88d8415a3a386377e99b93295adb82e1f7195e
[ROCm/rocprofiler commit: 37c48ce0ab]
Este cometimento está contido em:
1 ascendente
6964105c1f
cometimento
eb769499b6
15 ficheiros modificados
+11
-408
Não existem ficheiros que correspondam à sua pesquisa
@@ -33,10 +33,6 @@ global: OnLoad;
|
||||
rocprofiler_set_buffer_properties;
|
||||
rocprofiler_start_session;
|
||||
rocprofiler_terminate_session;
|
||||
rocprofiler_push_range;
|
||||
rocprofiler_pop_range;
|
||||
rocprofiler_start_replay_pass;
|
||||
rocprofiler_end_replay_pass;
|
||||
rocprofiler_device_profiling_session_create;
|
||||
rocprofiler_device_profiling_session_start;
|
||||
rocprofiler_device_profiling_session_poll;
|
||||
|
||||
@@ -502,48 +502,6 @@ rocprofiler_terminate_session(rocprofiler_session_id_t session_id) {
|
||||
API_METHOD_SUFFIX
|
||||
}
|
||||
|
||||
|
||||
// API to push a custom label for defining a code section
|
||||
ROCPROFILER_API rocprofiler_status_t rocprofiler_push_range(rocprofiler_session_id_t session_id,
|
||||
const char* label) {
|
||||
API_INIT_CHECKER
|
||||
if (!label) throw rocprofiler::Exception(ROCPROFILER_STATUS_ERROR_CORRUPTED_LABEL_DATA);
|
||||
rocprofiler::GetROCProfilerSingleton()->GetSession(session_id)->PushRangeLabels(label);
|
||||
API_METHOD_SUFFIX
|
||||
}
|
||||
|
||||
// API to pop a custom label defined for a code section
|
||||
ROCPROFILER_API rocprofiler_status_t rocprofiler_pop_range(rocprofiler_session_id_t session_id) {
|
||||
API_INIT_CHECKER
|
||||
if (!rocprofiler::GetROCProfilerSingleton()->GetSession(session_id)->PopRangeLabels())
|
||||
throw rocprofiler::Exception(ROCPROFILER_STATUS_ERROR_RANGE_STACK_IS_EMPTY);
|
||||
API_METHOD_SUFFIX
|
||||
}
|
||||
|
||||
ROCPROFILER_API rocprofiler_status_t
|
||||
rocprofiler_start_replay_pass(rocprofiler_session_id_t session_id) {
|
||||
API_INIT_CHECKER
|
||||
if (!rocprofiler::GetROCProfilerSingleton()->FindSession(session_id))
|
||||
throw rocprofiler::Exception(ROCPROFILER_STATUS_ERROR_SESSION_NOT_FOUND);
|
||||
rocprofiler::GetROCProfilerSingleton()
|
||||
->GetSession(session_id)
|
||||
->GetProfiler()
|
||||
->StartReplayPass(session_id);
|
||||
API_METHOD_SUFFIX
|
||||
}
|
||||
|
||||
ROCPROFILER_API rocprofiler_status_t
|
||||
rocprofiler_end_replay_pass(rocprofiler_session_id_t session_id) {
|
||||
API_INIT_CHECKER
|
||||
if (!rocprofiler::GetROCProfilerSingleton()
|
||||
->GetSession(session_id)
|
||||
->GetProfiler()
|
||||
->HasActivePass())
|
||||
throw rocprofiler::Exception(ROCPROFILER_STATUS_ERROR_PASS_NOT_STARTED);
|
||||
rocprofiler::GetROCProfilerSingleton()->GetSession(session_id)->GetProfiler()->EndReplayPass();
|
||||
API_METHOD_SUFFIX
|
||||
}
|
||||
|
||||
ROCPROFILER_API rocprofiler_status_t rocprofiler_device_profiling_session_create(
|
||||
const char** counter_names, uint64_t num_counters, rocprofiler_session_id_t* session_id,
|
||||
int cpu_index, int gpu_index) {
|
||||
|
||||
@@ -627,7 +627,7 @@ ROCPROFILER_EXPORT bool OnLoad(void* table, uint64_t runtime_version, uint64_t f
|
||||
getFlushIntervalFromEnv();
|
||||
getTracePeriodFromEnv();
|
||||
|
||||
CHECK_ROCPROFILER(rocprofiler_create_session(ROCPROFILER_KERNEL_REPLAY_MODE, &session_id));
|
||||
CHECK_ROCPROFILER(rocprofiler_create_session(ROCPROFILER_NONE_REPLAY_MODE, &session_id));
|
||||
|
||||
bool want_pc_sampling = getenv("ROCPROFILER_PC_SAMPLING");
|
||||
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador