Commit Graph

24 Commits

Author SHA1 Message Date
Mythreya Kuricheti 09c0470ed4 [aqlprofile] Add verison info to public header (#706)
Add versioning information to public aqlprofile headers, and add API to query version at runtime
2025-09-22 11:02:42 -07:00
Venkateshwar Reddy Kandula ec4d4b8a0d add SetGRBMToBroadcast in sqtt_builder.h (#1061) 2025-09-19 15:56:55 -05:00
Venkateshwar Reddy Kandula aa3313aa99 add dl lib to utility_tests (#961) 2025-09-12 10:28:52 +05:30
systems-assistant[bot] 5b9ba5bda0 Adding more unit tests to reach 80% (#177)
* Adding more unit tests to reach 80%

* Adding pmc and command builder tests

* tests for spm, sqtt and trace config

* removing non-existent struct members from test

* Adding logger tests

* aqlprofile_v2 tests

* spm builder tests

* Addressed feedback

---------

Co-authored-by: gobhardw <gopesh.bhardwaj@amd.com>
Co-authored-by: systems-assistant[bot] <systems-assistant[bot]@users.noreply.github.com>
2025-09-11 12:05:42 +05:30
Mythreya Kuricheti aa90a83e42 [aqlprofile] Misc formatting (#810)
* Remove dupicated code segment and apply formatting to some code regions
2025-09-10 12:11:53 -07:00
Venkateshwar Reddy Kandula 61583e3125 [AQLProfile] Fix caching of agents with new available data (#752)
* > hsa_agent not provided by new api/rocprofiler-sdk and causes every device to have same id,
in cases where gfxip is same and config is different pm4factory doesn't know the difference. This fix uses gfxip and CU count as a key for cache.

* Change comparison from gfxip to name in instances_fncomp_t

Updated comparison in instances_fncomp_t to use 'name' for backward compatibility with rocprofv2.

---------

Co-authored-by: Venkateshwar Reddy Kandula <venkateshwar.kandula1306@gmail.com>
2025-09-09 22:45:05 -05:00
Venkateshwar Reddy Kandula a77f7d5770 [aqlprofile] set gpu agent name while registering agent (#687)
* set gpu agent name, which will be used for gfx minor for pm4factory

* Update pm4_factory.cpp

* EOF.

* addr comments

---------

Co-authored-by: Venkateshwar Reddy Kandula <venkateshwar.kandula1306@gmail.com>
2025-08-21 15:16:28 -05:00
Giovanni Lenzi Baraldi 75eb06dc18 Add realtime clock agent info to ATT records (#319)
* Add agent info to ATT records

* Fix names

* Update projects/aqlprofile/src/pm4/sqtt_builder.h
2025-08-14 13:35:00 +02:00
Baraldi, Giovanni 0542860ef8 Adding timestamp marker into SQTT buffer for gfx9 GPUs (#200)
* Adding TS Marker

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add option to enable/disable RT

---------

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

[ROCm/aqlprofile commit: 926ec4a56f]
2025-08-07 19:55:04 +02:00
Vaddireddy, Sushma 1157f97224 Crash issue fix on MI100 (#160)
* Crash issue fix on MI100

---------

Co-authored-by: Sushma Vaddireddy <svaddire@amd.com>

[ROCm/aqlprofile commit: 51c5343bf8]
2025-07-24 15:24:37 -07:00
Baraldi, Giovanni 4f8231fcc9 Adding high bits for ATT buffer size (#171)
* Adding high bits for ATT buffer size

* Copilot review comments

* Add buffer limits

* Update src/pm4/sqtt_builder.h

---------

Co-authored-by: Giovanni <gbaraldi@amd.com>

[ROCm/aqlprofile commit: 0bb1a61e82]
2025-07-22 18:53:55 -04:00
Ma, Bing a75174f855 [SPM] Clean up obsolete SPM logics and refine some SPM-related definition (#157)
* Clean up obsolete SPM logics
* Add PERFCOUNTER_SELECT1 to CounterRegInfo
* Add RLC_SPM_PERFMON_SAMPLE_DELAY_MAX

[ROCm/aqlprofile commit: 6f236ffb5f]
2025-07-18 15:26:44 -07:00
Bhardwaj, Gopesh 198c38ac4f Link to DL library (#158)
[ROCm/aqlprofile commit: b4157dc2ff]
2025-07-17 10:46:19 +05:30
Yang, Chun 505bb395ba Enabled RPB for Navi48 (#115)
* Enabled RPB for Navi48

* Fixing RPB addresses

* Removing non-Navi files

* Removing RPB enum not needed

[ROCm/aqlprofile commit: 5e99084425]
2025-07-01 22:05:28 +00:00
Ma, Bing 5b758bcdc4 [pmc_builder] Centralize the programming for GFX_INDEX and PERFMON_CNTL (#133)
Prepare multiple GC instances with different programming sequence for GFX_INDEX and PERFMON_CNTL.

[ROCm/aqlprofile commit: 7710e8bca3]
2025-07-01 09:22:46 -07:00
Ma, Bing d2ee7ba673 [gfx12] Add support for gfx1200 (#131)
* [gfx12] Add support for gfx1200

* [gfx12] Rename CP_PERFMON_CNTL_1 to CP_PERFMON_CNTL for better compatibility

[ROCm/aqlprofile commit: c872dcda53]
2025-06-25 13:28:51 -07:00
Elwazir, Ammar 73c7fe521f Fixing v2 header location (#127)
Co-authored-by: Ammar ELWazir <aelwazir@amd.com>

[ROCm/aqlprofile commit: 9ac4373f1b]
2025-06-23 17:17:35 -05:00
Elwazir, Ammar fb6ec25d41 Adding Integration tests for later building option (#126)
* Adding Integeration tests for later building option

* Update CMakeLists.txt

---------

Co-authored-by: Ammar ELWazir <aelwazir@amd.com>

[ROCm/aqlprofile commit: e4bb0df9d5]
2025-06-23 16:53:17 -05:00
Elwazir, Ammar 14c997d5b4 Posting fixes for tests link library (#125)
Co-authored-by: Ammar ELWazir <aelwazir@amd.com>

[ROCm/aqlprofile commit: af750616db]
2025-06-23 12:30:29 -05:00
Baraldi, Giovanni bf067cd442 Remove default dependency of rocm-llvm-dev (#124)
* Remove default dependency of rocm-llvm-dev

* Update build.sh

* Update build.sh

* Update CMakeLists.txt

* Fixing core tests

---------

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
Co-authored-by: Elwazir, Ammar <Ammar.Elwazir@amd.com>
Co-authored-by: Ammar ELWazir <aelwazir@amd.com>

[ROCm/aqlprofile commit: f3b2d498b8]
2025-06-23 12:13:27 -05:00
Kandula, Venkateshwar reddy 50d3edb569 [BUG FIX] [Counter Collection] SWDEV-523582- Use a map to differenciate xcc_sample_count wrt event id. (#99)
* use a map to differenciate xcc_sample_count wrt event id.

Change-Id: Ie1f2e8466edb244574686d49008125dc9f4e7efd

* Format.

Change-Id: I668c6ed448d8610d9d66f9cf77d0d27d7cf4e8b6

* use blockinfo to get xcc_sample_count.

Change-Id: I066a10e3185df4c8767d4f8eae59aca1f78f5284

* use EventAttribDim for xcc_sample_count.

Change-Id: Ide3707934b5b42c0462ea332b27f6e2e4fc0449f

---------

Co-authored-by: Venkateshwar Reddy Kandula <vkandula@amd.com>

[ROCm/aqlprofile commit: 41cd5d6531]
2025-06-16 16:09:13 -05:00
Bhardwaj, Gopesh 4117f4de75 Adding tests for code coverage (#82)
* Adding tests for code coverage

* integration tests

* Fixing gtest dependencies

* Removing gmock linkage

* build fixes

* Fixing Analyze job

* CMake updates

* Fixing PSDB

* Addressing feedback

* Adding licenses

* Addressing feedback

* updating dashboard

* more API tests

* Addressing feedback

* correcting Macro

* preloading libintercept

[ROCm/aqlprofile commit: eca6739e13]
2025-06-12 19:13:44 +05:30
Ma, Bing c50a8225ae [gfx12] Finalize support for gfx12 new counter blocks (#81)
1. Move all new gfx12 block enums to aql_profile_v2.h. hsa_ven_amd_aqlprofile.h will be left untouched.
2. Re-org counter info in gfx12_block_info.h to be purely alphabetic-ordered for easy comparison between different IP versions. Also use auto-gen block name from IP header files whenever possible to reduce manual editing.
3. Remove unused counter info from graphics blocks.
4. Added UTCL2 and VML2 support
5. Added all gfx12 blocks to ctrl test

[ROCm/aqlprofile commit: b20803e95d]
2025-05-29 15:14:09 -07:00
Evgeny 7c4369bde4 Initial Commit
Contributors:
Ammar ELWazir <aelwazir@amd.com>
AravindanC <aravindan.cheruvally@amd.com>
Benjamin Welton <bewelton@amd.com>
Ma, Bing <Bing.Ma@amd.com>
Chun Yang <chun.yang@amd.com>
Cole Nelson <cole.nelson@amd.com>
Ethan Stewart <ethan.stewart@amd.com>
Evgeny <evgeny.shcherbakov@amd.com>
Freddy Paul <Freddy.paul@amd.com>
Giovanni Baraldi <gbaraldi@amd.com>
Gopesh Bhardwaj <Gopesh.Bhardwaj@amd.com>
Icarus Sparry <icarus.sparry@amd.com>
itrowbri <Ian.Trowbridge@amd.com>
James Edwards <JamesAdrian.Edwards@amd.com>
jatang <jatang@amd.com>
Jeremy Newton <Jeremy.Newton@amd.com>
Jonathan Kim <jonathan.kim@amd.com>
Kent Russell <kent.russell@amd.com>
Kiumars Sabeti <kiumars.sabeti@amd.com>
Lang Yu <lang.yu@amd.com>
Laurent Morichetti <laurent.morichetti@amd.com>
Mallya, Ameya Keshava <AmeyaKeshava.Mallya@amd.com>
Manjunath Jakaraddi <manjunath.jakaraddi@amd.com>
Mark Laws <markdavid.laws@amd.com>
Mohan Kumar Mithur <Mohan.KumarMithur@amd.com>
Nicholas Curtis <nicurtis@amd.com>
Nirmal Unnikrishnan <Nirmal.Unnikrishnan@amd.com>
Parag Bhandari <parag.bhandari@amd.com>
Ranjith Ramakrishnan <Ranjith.Ramakrishnan@amd.com>
Robert Gregory <Robert.Gregory@amd.com>
Saravanan Solaiyappan <saravanan.solaiyappan@amd.com>
Saurabh Verma <saurabh.verma@amd.com>
Srihari Uttanur <srihari.u@amd.com>
Srinivasan Subramanian <srinivasan.subramanian@amd.com>
Sriraksha Nagaraj <Sriraksha.Nagaraj@amd.com>
Sushma Vaddireddy <svaddire@amd.com>
Xianwei Zhang <Xianwei.Zhang@amd.com>


[ROCm/aqlprofile commit: 1ed169e30c]
2025-05-28 10:10:47 -05:00