SWDEV-492625 memory free functions (#11)

* SWDEV-492625: Track free memory HSA functions to help determine total amount of memory allocated on the system at any one time

* Minor fixes to address comments

* Update allocation size description

* Moved get function back to specialization, minor typo fixes

* Removed memory_operation_type field, removed memory_pool allocation enum, converted starting address to hex string for json format.

* Made conversion to hex_string a function, changed address to use union rocprofiler_address_t type, changed VMEM descriptors

* Removed as_hex from the global namespace

* Formatting

* Removed TRACK_EVENT for memory allocation, now TRACK_COUNTER for memory allocation is being performed

* Check if address was recorded before retrieving allocation size in generate Perfetto

* Formatting

* Update source/lib/output/generatePerfetto.cpp

* Explicitly disable app-abort tests

* Remove excluding app-abort test from workflow CI

- redundant bc these tests are explicitly marked as disabled now

---------

Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com>
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rocprofiler-sdk commit: 79006bb896]
이 커밋은 다음에 포함됨:
Trowbridge, Ian
2024-12-06 00:05:30 -06:00
커밋한 사람 GitHub
부모 a79f8a0198
커밋 792329fefd
23개의 변경된 파일564개의 추가작업 그리고 248개의 파일을 삭제
+7 -4
파일 보기
@@ -1,4 +1,7 @@
"Kind","Operation","Agent_Id","Allocation_Size","Starting_Address","Correlation_Id","Start_Timestamp","End_Timestamp"
"MEMORY_ALLOCATION","MEMORY_ALLOCATION_ALLOCATE",0,1024,140341497356288,1,65788054621500,65788055678893
"MEMORY_ALLOCATION","MEMORY_ALLOCATION_ALLOCATE",0,1024,140341497348096,1,65788055691832,65788056666844
"MEMORY_ALLOCATION","MEMORY_ALLOCATION_ALLOCATE",0,1024,140341497339904,1,65788056672061,65788057643457
"Kind","Operation","Agent_Id","Allocation_Size","Address","Correlation_Id","Start_Timestamp","End_Timestamp"
"MEMORY_ALLOCATION","MEMORY_ALLOCATION_ALLOCATE",0,1024,0x7fb2d0005000,11,3721742710532634,3721742710584854
"MEMORY_ALLOCATION","MEMORY_ALLOCATION_FREE",0,0,0x7fb2d0005000,12,3721742710596404,3721742710933366
"MEMORY_ALLOCATION","MEMORY_ALLOCATION_ALLOCATE",0,1024,0x7fb2d0005000,13,3721742710941416,3721742710960916
"MEMORY_ALLOCATION","MEMORY_ALLOCATION_FREE",0,0,0x7fb2d0005000,14,3721742710967236,3721742711197647
"MEMORY_ALLOCATION","MEMORY_ALLOCATION_ALLOCATE",0,1024,0x7fb2d0005000,15,3721742711204077,3721742711219717
"MEMORY_ALLOCATION","MEMORY_ALLOCATION_FREE",0,0,0x7fb2d0005000,16,3721742711225857,3721742711466018
1 Kind Operation Agent_Id Allocation_Size Starting_Address Address Correlation_Id Start_Timestamp End_Timestamp
2 MEMORY_ALLOCATION MEMORY_ALLOCATION_ALLOCATE 0 1024 140341497356288 0x7fb2d0005000 1 11 65788054621500 3721742710532634 65788055678893 3721742710584854
3 MEMORY_ALLOCATION MEMORY_ALLOCATION_ALLOCATE MEMORY_ALLOCATION_FREE 0 1024 0 140341497348096 0x7fb2d0005000 1 12 65788055691832 3721742710596404 65788056666844 3721742710933366
4 MEMORY_ALLOCATION MEMORY_ALLOCATION_ALLOCATE 0 1024 140341497339904 0x7fb2d0005000 1 13 65788056672061 3721742710941416 65788057643457 3721742710960916
5 MEMORY_ALLOCATION MEMORY_ALLOCATION_FREE 0 0 0x7fb2d0005000 14 3721742710967236 3721742711197647
6 MEMORY_ALLOCATION MEMORY_ALLOCATION_ALLOCATE 0 1024 0x7fb2d0005000 15 3721742711204077 3721742711219717
7 MEMORY_ALLOCATION MEMORY_ALLOCATION_FREE 0 0 0x7fb2d0005000 16 3721742711225857 3721742711466018