X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libcounter%2Fcounter.c;h=640705d32d4bdc7d2f8e50d951c781bf17d633cf;hb=8b914423d8af8805685f6114888f3bbd3b528d0f;hp=4010d5dd7f152b8c29d300d4e15ac751a6c04cc5;hpb=ebabbf580131acd1fe246c4d31fc5c044d36a038;p=lttng-ust.git diff --git a/libcounter/counter.c b/libcounter/counter.c index 4010d5dd..640705d3 100644 --- a/libcounter/counter.c +++ b/libcounter/counter.c @@ -75,9 +75,9 @@ static int lttng_counter_layout_init(struct lib_counter *counter, int cpu, int s counters_offset = shm_length; shm_length += counter_size * nr_elem; overflow_offset = shm_length; - shm_length += ALIGN(nr_elem, 8) / 8; + shm_length += LTTNG_UST_ALIGN(nr_elem, 8) / 8; underflow_offset = shm_length; - shm_length += ALIGN(nr_elem, 8) / 8; + shm_length += LTTNG_UST_ALIGN(nr_elem, 8) / 8; layout->shm_len = shm_length; if (counter->is_daemon) { /* Allocate and clear shared memory. */