Skip to content

Add missing counter events handling for ROCPD#1305

Merged
dgaliffiAMD merged 4 commits intodevelopfrom
users/marantic/rocpd_add_rocm_counter_events
Oct 16, 2025
Merged

Add missing counter events handling for ROCPD#1305
dgaliffiAMD merged 4 commits intodevelopfrom
users/marantic/rocpd_add_rocm_counter_events

Conversation

@marantic-amd
Copy link
Contributor

@marantic-amd marantic-amd commented Oct 8, 2025

Motivation

The counter events are missing from the rocpd implementation. For SWDEV-556438.

Technical Details

Added counter events handling as pmc events. Storing it into rocpd database. Minor changes to the counter component.

Test Plan

Test Result

Existing tests passed.

Submission Checklist

Copy link
Contributor

@dgaliffiAMD dgaliffiAMD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you. Just a couple of comments.

@dgaliffiAMD dgaliffiAMD merged commit f2ccc96 into develop Oct 16, 2025
54 of 56 checks passed
@dgaliffiAMD dgaliffiAMD deleted the users/marantic/rocpd_add_rocm_counter_events branch October 16, 2025 03:15
systems-assistant bot pushed a commit to ROCm/rocprofiler-systems that referenced this pull request Oct 16, 2025
* Add missing counter events handling for ROCPD

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Fixed formatting

Signed-off-by: David Galiffi <[email protected]>
[rocm-systems] ROCm/rocm-systems#1305 (commit f2ccc96)
dgaliffiAMD added a commit that referenced this pull request Oct 17, 2025
* Add missing counter events handling for ROCPD

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Fixed formatting

Signed-off-by: David Galiffi <[email protected]>

---------

Signed-off-by: Marjan Antic <[email protected]>
Co-authored-by: David Galiffi <[email protected]>
shahamed pushed a commit that referenced this pull request Oct 22, 2025
* Add missing counter events handling for ROCPD

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Fixed formatting

Signed-off-by: David Galiffi <[email protected]>

---------

Signed-off-by: Marjan Antic <[email protected]>
Co-authored-by: David Galiffi <[email protected]>
dgaliffiAMD added a commit that referenced this pull request Nov 5, 2025
* Add missing counter events handling for ROCPD

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Fixed formatting

Signed-off-by: David Galiffi <[email protected]>

---------

Signed-off-by: Marjan Antic <[email protected]>
Co-authored-by: David Galiffi <[email protected]>
JeniferC99 pushed a commit that referenced this pull request Nov 6, 2025
* [rocprofiler-systems] [ROCpd] Add OMPT callbacks to ROCpd (#1016)

* Add OMPT to ROCpd

* Use correct category

* Added wrapper functions for future control

* Formatting

* Fix naming

* Comment change

* Remove ompt_get_cb_args

* Switched to using region_sample for OMPT

* Remove relic function

* Remove get_use_rocpd that was used in this pr (one still remains)

* Rename ompt_get_args_string and reuse in tool_tracing_callback_stop

* Make lock init and destroy cb instant

* [Prototype] ROCPD Name fix

* [Prototype] ROCPD Name fix P1

* [Prototype] ROCPD Name fix P2

* ROCPD Name fix

* Var name changes

* Rewrite cb overwrite to single function

* [Important] Use parallel_data as key for parallel callback map

* Fix workflow failure

* Make cpp USE_ROCM consistent with hpp and use default constructor if USE_ROCM = 0

* Add missing ROCPROFILER_VERSION check

* Improve readability

* Make ompt storage maps thread local

* Part 1: Variable name fix, memory cleanup, and fixed asserts

* Part 2: Add comments

* Part 3: Add CI_THROW

* Part 4: Formatting

* Part 5: Move #include to cpp

* Add missing counter events handling for ROCPD (#1305)

* Add missing counter events handling for ROCPD

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Fixed formatting

Signed-off-by: David Galiffi <[email protected]>

---------

Signed-off-by: Marjan Antic <[email protected]>
Co-authored-by: David Galiffi <[email protected]>

* Update VERSION to 1.2.1

* Update CHANGELOG.md

* Add caching of category region for rocpd (#1420)

* Add caching of category region

Fix vaapi traces

Remove region_with_name

* Applied suggestions from code review

* Add some simple rocpd testing

Signed-off-by: David Galiffi <[email protected]>

* Adjust `rocpd_string` validation parameters

* Adjust `rocm_marker_api` validation parameters

* Update projects/rocprofiler-systems/CHANGELOG.md

Co-authored-by: Pratik Basyal <[email protected]>

* Update projects/rocprofiler-systems/CHANGELOG.md

Co-authored-by: Pratik Basyal <[email protected]>

* Update projects/rocprofiler-systems/CHANGELOG.md

Co-authored-by: Pratik Basyal <[email protected]>

---------

Signed-off-by: Marjan Antic <[email protected]>
Signed-off-by: David Galiffi <[email protected]>
Co-authored-by: Kian Cossettini <[email protected]>
Co-authored-by: marantic-amd <[email protected]>
Co-authored-by: Milan Radosavljevic <[email protected]>
Co-authored-by: Pratik Basyal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants