#include "lttng/lttng-error.h"
#include <common/compat/string.h>
+#include <common/align.h>
#include <common/error.h>
#include <common/hashtable/hashtable.h>
#include <common/hashtable/utils.h>
#include <lttng/userspace-probe-internal.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <sys/unistd.h>
+#include <unistd.h>
static
int lttng_userspace_probe_location_function_set_binary_fd_handle(
* the next structure in the buffer probably needs to be
* aligned too (depending on the arch).
*/
- padding_needed = ALIGN_TO(storage_needed, sizeof(uint64_t)) - storage_needed;
+ padding_needed = lttng_align_ceil(storage_needed, sizeof(uint64_t)) - storage_needed;
storage_needed += padding_needed;
if (location->lookup_method) {
* the next structure in the buffer probably needs to be
* aligned too (depending on the arch).
*/
- padding_needed = ALIGN_TO(storage_needed, sizeof(uint64_t)) - storage_needed;
+ padding_needed = lttng_align_ceil(storage_needed, sizeof(uint64_t)) - storage_needed;
storage_needed += padding_needed;
if (location->lookup_method) {