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

Fix static decomposition array value assignment #1457

Open
wants to merge 1 commit into
base: OVIS-4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ldms/src/decomp/static/decomp_static.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,18 @@ static void assign_value(ldms_mval_t dst, ldms_mval_t src,
case LDMS_V_CHAR_ARRAY:
memcpy(dst->a_char, src->a_char, count);
break;
case LDMS_V_U8_ARRAY:
case LDMS_V_S8_ARRAY:
case LDMS_V_U16_ARRAY:
case LDMS_V_S16_ARRAY:
case LDMS_V_U32_ARRAY:
case LDMS_V_S32_ARRAY:
case LDMS_V_U64_ARRAY:
case LDMS_V_S64_ARRAY:
case LDMS_V_F32_ARRAY:
case LDMS_V_D64_ARRAY:
memcpy(dst, src, ldms_metric_value_size_get(type, count));
break;
default:
break;
}
Expand Down
Loading