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

[b4.4] Fix value increment in test_sampler #1499

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

narategithub
Copy link
Collaborator

Test sampler access raw metric value with mval->v_u64 and increment that value by 1. This works for integer values. When mval contains float or double, mval->v_u64 became big number due to IEEE 754 binary32 or binary64 format. As such, test_sampler should use ldms_mval_as_u64() to coerce the mval to u64 properly.

Test sampler access raw metric value with `mval->v_u64` and increment
that value by 1. This works for integer values. When `mval` contains
float or double, `mval->v_u64` became big number due to IEEE 754
binary32 or binary64 format. As such, `test_sampler` should use
`ldms_mval_as_u64()` to coerce the `mval` to u64 properly.
@nichamon nichamon added this to the v4.4.5 milestone Nov 5, 2024
@narategithub narategithub marked this pull request as draft November 7, 2024 22:01
@narategithub narategithub changed the title Fix value increment in test_sampler [b4.4] Fix value increment in test_sampler Nov 8, 2024
Narate Taerat added 2 commits November 7, 2024 21:02
The value update should use `ldms_mval_as_u64()` to correctly coerce the
value.
@narategithub narategithub marked this pull request as ready for review November 8, 2024 03:18
@tom95858 tom95858 merged commit b4ce283 into ovis-hpc:b4.4 Nov 12, 2024
14 checks passed
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.

3 participants