minor cosmetic changes

Change-Id: If148618105092923c869b99b8fabd9ce721c50dc


[ROCm/rocprofiler commit: b534d4513a]
Dieser Commit ist enthalten in:
Evgeny
2019-12-31 20:56:53 -06:00
Ursprung 423fec7691
Commit ad2ba3a0cc
2 geänderte Dateien mit 16 neuen und 16 gelöschten Zeilen
+12 -12
Datei anzeigen
@@ -199,6 +199,18 @@ hsa_status_t rocprofiler_close(rocprofiler_t* context); // [in] profiling conte
hsa_status_t rocprofiler_reset(rocprofiler_t* context, // [in] profiling context
uint32_t group_index); // group index
// Supported time value ID
typedef enum {
ROCPROFILER_TIME_ID_CLOCK_REALTIME = 0, // Linux realtime clock time
ROCPROFILER_TIME_ID_CLOCK_MONOTONIC = 1, // Linux monotonic clock time
} rocprofiler_time_id_t;
// Return time value for a given time ID and profiling timestamp
hsa_status_t rocprofiler_get_time(
rocprofiler_time_id_t time_id, // identifier of the particular time to convert the timesatmp
uint64_t timestamp, // profiling timestamp
uint64_t* value_ns); // [out] returned time 'ns' value
////////////////////////////////////////////////////////////////////////////////
// Queue callbacks
//
@@ -383,18 +395,6 @@ hsa_status_t rocprofiler_queue_create_profiled(
void* data, uint32_t private_segment_size, uint32_t group_segment_size,
hsa_queue_t** queue);
// Convert profiler time
typedef enum {
ROCPROFILER_TIME_ID_CLOCK_REALTIME = 0,
ROCPROFILER_TIME_ID_CLOCK_MONOTONIC = 1,
} rocprofiler_time_id_t;
// Return time for a given time ID and profiling timetsamp value
hsa_status_t rocprofiler_get_time(
rocprofiler_time_id_t time_id, // identifier of the particular time to convert the timesatmp
uint64_t value, // profiling timestamp value
uint64_t* time); // returned time
////////////////////////////////////////////////////////////////////////////////
// Profiling pool
//
@@ -843,13 +843,13 @@ PUBLIC_API hsa_status_t rocprofiler_queue_create_profiled(
return rocprofiler::InterceptQueue::QueueCreateTracked(agent, size, type, callback, data, private_segment_size, group_segment_size, queue);
}
// Return time for a given time ID and profiling timetsamp value
// Return time value for a given time ID and profiling timestamp
hsa_status_t rocprofiler_get_time(
rocprofiler_time_id_t time_id,
uint64_t value,
uint64_t* time)
uint64_t timestamp,
uint64_t* value_ns)
{
return rocprofiler::util::HsaRsrcFactory::Instance().GetTime(time_id, value, time);
return rocprofiler::util::HsaRsrcFactory::Instance().GetTime(time_id, timestamp, value_ns);
}
} // extern "C"