Namespace lttng/align.h macros
[deliverable/lttng-ust.git] / tests / ust-multi-test / ust-multi-test.c
index 011374395fc4ef5350ff728783f31db8839755e9..161cc27a9de2fe036933465be5bc12ce0592908b 100644 (file)
 
 #define _LARGEFILE64_SOURCE
 #define _GNU_SOURCE
+#include <assert.h>
 #include <errno.h>
+#include <fcntl.h>
+#include <limits.h>
+#include <signal.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <signal.h>
-#include <unistd.h>
-#include <sys/wait.h>
-#include <sys/types.h>
-#include <sys/time.h>
+#include <sys/mman.h>
 #include <sys/resource.h>
+#include <sys/socket.h>
 #include <sys/stat.h>
-#include <fcntl.h>
-#include <sys/mman.h>
-#include <limits.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <unistd.h>
 #include <urcu/futex.h>
 #include <urcu/uatomic.h>
-#include <assert.h>
-#include <sys/socket.h>
 
 #include <ust-comm.h>
 #include <lttng/ust-error.h>
@@ -258,7 +259,7 @@ int consume_stream(struct lttng_ust_shm_handle *handle, int cpu, char *outfile)
                }
                read_size = lib_ring_buffer_get_read_data_size(
                        &chan->backend.config, buf, handle);
-               read_size = PAGE_ALIGN(read_size);
+               read_size = LTTNG_UST_PAGE_ALIGN(read_size);
                ptr = lib_ring_buffer_read_offset_address(
                        &buf->backend, 0, handle);
                printf("WRITE: copy %lu bytes\n", read_size);
This page took 0.025761 seconds and 5 git commands to generate.