Refactor controller_track and system_trace - #981
Merged
amokiche-amd merged 15 commits intoAug 31, 2026
Conversation
amokiche-amd
marked this pull request as ready for review
August 10, 2026 15:39
amokiche-amd
requested review from
drchen-amd,
tomk-amd and
vstempen
as code owners
August 10, 2026 15:39
tomk-amd
reviewed
Aug 24, 2026
drchen-amd
reviewed
Aug 24, 2026
drchen-amd
left a comment
Member
There was a problem hiding this comment.
I don't mind this new approach of using more C++ features and directly calling functions on the objects internally instead of enum. I also do not mind sticking to C style and using enums internally.
I think new approach will lead to some bloating as for each exposed field you end up with an enum version and a direct call version.
If we proceed, this will need more hardening because I only tested for a few minutes and noticed:
refactor part of the trace system and track.cpp get rid of raw pointers in the controller trace fix destructor one more fix for ci Replace unnecasary getters fix few more geters one more refactoring Separate RocPd to the smaller functions make all getters and setters except objects remove few heders Make setter and getter for object private get back heders fix linux build fix cast and get back "" line endings line ending
amokiche-amd
force-pushed
the
amokichev/controller-refactoring-one-more-time
branch
from
August 25, 2026 11:00
6403940 to
0fea075
Compare
Contributor
Author
Nice catch, thanx queue and counter utilization fixed. |
Contributor
Author
|
I removed the changes with replacement raw pointers to the unique_ptr, because it has unobvious dependency and it work for other separate PR. |
tomk-amd
reviewed
Aug 27, 2026
tomk-amd
reviewed
Aug 28, 2026
tomk-amd
approved these changes
Aug 28, 2026
…refactoring-one-more-time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
Refactor controller Track and System_trace files to replace of usage default getters to direct getters and setters.
Refactor giant functions to increase code readability.
Small minor refactors.
Technical Details
Test Plan
Test Result
Submission Checklist