projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: namespace 'align' macros
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index 239ed8f33b9472c814937d2323f12614acbc2f8c..47887c0293645b61aa324e2164c10d86c1cc4b30 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl.c
+++ b/
src/lib/lttng-ctl/lttng-ctl.c
@@
-18,6
+18,7
@@
#include <unistd.h>
#include <common/bytecode/bytecode.h>
#include <unistd.h>
#include <common/bytecode/bytecode.h>
+#include <common/align.h>
#include <common/common.h>
#include <common/compat/errno.h>
#include <common/compat/string.h>
#include <common/common.h>
#include <common/compat/errno.h>
#include <common/compat/string.h>
@@
-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 += 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;
}
}
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,
/* 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;
sizeof(uint64_t)));
if (ret) {
ret = -LTTNG_ERR_NOMEM;
This page took
0.023272 seconds
and
4
git commands to generate.