ovis-hpc / ldms

OVIS/LDMS High Performance Computing monitoring, analysis, and visualization project.
https://github.com/ovis-hpc/ovis-wiki/wiki
Other
100 stars 52 forks source link

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

Closed narategithub closed 1 week ago

narategithub commented 2 weeks ago

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.