Fix struct declaration for C (#1524)

This change is necessary for HPCToolkit to use Roctracer to produce code centric profiling view.

[ROCm/hip commit: e9adb8e932]
이 커밋은 다음에 포함됨:
Xiaozhu Meng 작성하고 Maneesh Gupta가 2019-10-16 10:48:55 +05:30를 커밋함
1 부모 46918133df
커밋 8d8bc72f6a
1 파일이 변경됨
+2 -2
+2 -2
파일 보기
@@ -348,7 +348,7 @@ def generate_prof_header(f, api_map, opts_map):
# Generating the callbacks data structure
f.write('\n// HIP API callbacks data structure\n')
f.write(
'struct hip_api_data_t {\n' +
'typedef struct hip_api_data_t {\n' +
' uint64_t correlation_id;\n' +
' uint32_t phase;\n' +
' union {\n'
@@ -364,7 +364,7 @@ def generate_prof_header(f, api_map, opts_map):
f.write(' } ' + name + ';\n')
f.write(
' } args;\n' +
'};\n'
'} hip_api_data_t;\n'
)
# Generating the callbacks args data filling macros