adding agent to device callback data

Change-Id: I7d631e4faae685ce23704ac65308bf2aae0c157a


[ROCm/rocprofiler commit: 4edc6c98cf]
이 커밋은 다음에 포함됨:
Evgeny가 2020-02-13 22:00:56 -06:00를 커밋했습니다
1 부모 63087b968d
커밋 988274443a
3 파일이 변경됨
+3

검색과 일치하는 파일 없음

+1
파일 보기
@@ -484,6 +484,7 @@ struct rocprofiler_hsa_callback_data_t {
struct {
hsa_device_type_t type; // type of assigned device
uint32_t id; // id of assigned device
hsa_agent_t agent; // device HSA agent handle
const void* ptr; // ptr the device is assigned to
} device;
struct {
+1
파일 보기
@@ -169,6 +169,7 @@ class HsaInterceptor {
hsa_agent_t agent = *agent_p;
rocprofiler_hsa_callback_data_t data{};
data.device.id = util::HsaRsrcFactory::Instance().GetAgentInfo(agent)->dev_index;
data.device.agent = agent;
data.device.ptr = ptr;
HSA_RT(hsa_agent_get_info(agent, HSA_AGENT_INFO_DEVICE, &data.device.type));
+1
파일 보기
@@ -847,6 +847,7 @@ hsa_status_t hsa_unified_callback(
case ROCPROFILER_HSA_CB_ID_DEVICE:
printf(" device type = 0x%x\n", data->device.type);
printf(" device id = %u\n", data->device.id);
printf(" device agent = 0x%lx\n", data->device.agent.handle);
printf(" assigned ptr = %p\n", data->device.ptr);
break;
case ROCPROFILER_HSA_CB_ID_MEMCOPY: