X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl.c;h=47887c0293645b61aa324e2164c10d86c1cc4b30;hp=239ed8f33b9472c814937d2323f12614acbc2f8c;hb=1cbd136b2479ef142bfb339b13d3d25aa772dda5;hpb=8cc65d5cbccb6e4ba91c4de0efc3e974a6ca61b5;ds=sidebyside diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index 239ed8f33..47887c029 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -2456,7 +2457,7 @@ int lttng_list_events(struct lttng_handle *handle, storage_req += ext_comm->nb_exclusions * LTTNG_SYMBOL_NAME_LEN; /* Padding to ensure the flat probe is aligned. */ - storage_req = ALIGN_TO(storage_req, sizeof(uint64_t)); + storage_req = lttng_align_ceil(storage_req, sizeof(uint64_t)); storage_req += probe_storage_req; } } @@ -2547,7 +2548,7 @@ int lttng_list_events(struct lttng_handle *handle, /* Insert padding to align to 64-bits. */ ret = lttng_dynamic_buffer_set_size(&listing, - ALIGN_TO(listing.size, + lttng_align_ceil(listing.size, sizeof(uint64_t))); if (ret) { ret = -LTTNG_ERR_NOMEM;