arch: Change numeric serialization for CPU profiles#80
Merged
olivereanderson merged 1 commit intocyberus-technology:gardenlinuxfrom Feb 10, 2026
Conversation
phip1611
approved these changes
Feb 10, 2026
876c3c1 to
a6cb0eb
Compare
Coffeeri
reviewed
Feb 10, 2026
From working with serialized CPU profile data we noticed the following: 1. It is easier to read shorter hex strings when looking up CPUID leaves in the serialized CPU profile data. 2. It is preferable to also have sub-leaf ranges hex encoded. 3. We still want to keep serializing the adjustments to 10 character hex strings. Some of the convenience functions introduced here will also be utilized in the upcoming MSR adjustments PR in order to serialize register addresses. Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP oliver.anderson@sap.com
a6cb0eb to
9192e4a
Compare
Coffeeri
approved these changes
Feb 10, 2026
2cff8a7
into
cyberus-technology:gardenlinux
11 checks passed
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.
This PR makes some changes to the way we serialize CPUID leaf and sub-leaves in the CPU profiles. When debugging CPU profiles I noticed that it is easier to deal with shorter hex strings for the leaves and that it would also be nice to have the sub-leaf ranges specified in terms of hex as well.
We do however want to keep serializing the adjustments as 10 byte hex strings which we do not change here (only the code).
We don't bother regenerating profiles in this PR, because there is no functional change, and we have to regenerate them in #70 anyway.