Namespace lttng/align.h macros
[lttng-ust.git] / tests / ust-basic-tracing / ust-basic-tracing.c
index 15368ed73b4a2e7b3ff97fa0d18f0844c4976c84..98be01b30504b9b6a1d959d7484c4f995c71a3b1 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/mman.h>
+#include <sys/resource.h>
+#include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/time.h>
-#include <sys/resource.h>
-#include <fcntl.h>
-#include <sys/mman.h>
-#include <limits.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>
@@ -251,7 +252,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.02408 seconds and 4 git commands to generate.