Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocp: Fixes for OCP 2.5 Telemetry Stats Parsing #2647

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

jeff-lien-sndk
Copy link
Contributor

The OCP 2.5 Telemetry log statistics parsing code was not checking for the end of the stats data and therefore getting stuck in an infinite while loop.
Also added code to parse out the statistic specific data for the Max Die, Max NAND Channel, and Min NAND Channel Bad Block.

json_add_formatted_var_size_str(pstatistics_object, STR_STATISTICS_SPECIFIC_DATA,
pdata, data_size);
if (pstatistic_entry->statistic_id == MAX_DIE_BAD_BLOCK_ID) {
json_add_formatted_u32_str(pstatistics_object, STR_STATISTICS_WORST_DIE_PERCENT,
Copy link
Collaborator

Choose a reason for hiding this comment

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

just break the overlong line. 100 chars are wide enough for normal code. If the code block is hitting it all the time, it's usually a good indication that there is something wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed long code lines.
@igaw Should I squash these changes into 1 commit?

The OCP 2.5 Telemetry log statistics parsing code was not
checking for the end of the stats data and therefore getting
stuck in an infinite while loop.
Added code to parse out the statistic specific data for the
Max Die, Max NAND Channel, and Min NAND Channel Bad Block.

Removed unneeded brackets
Fixed lines exceeding 100 chars

Signed-off-by: jeff-lien-wdc <[email protected]>
Set plugin version to 2.11.0

Signed-off-by: jeff-lien-wdc <[email protected]>
@igaw igaw merged commit 37f939e into linux-nvme:master Jan 8, 2025
17 checks passed
@igaw
Copy link
Collaborator

igaw commented Jan 8, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants