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. Whenmval
contains float or double,mval->v_u64
became big number due to IEEE 754 binary32 or binary64 format. As such,test_sampler
should useldms_mval_as_u64()
to coerce themval
to u64 properly.