X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libcounter%2Fshm.c;h=d9bccafcf6d3eaeccfb7cb977d775a520f6e0155;hb=9f5ade14faf36df6429d9c6e1d0360854a5669d0;hp=13a9f642d15e10600b67c2317cfff5a6dd48b547;hpb=864a1eda22ed99266509ac76451c6f27f91aa17e;p=lttng-ust.git diff --git a/libcounter/shm.c b/libcounter/shm.c index 13a9f642..d9bccafc 100644 --- a/libcounter/shm.c +++ b/libcounter/shm.c @@ -17,14 +17,17 @@ #include #include #include -#include #include #include #include + #ifdef HAVE_LIBNUMA #include #include #endif + +#include + #include #include #include "../libringbuffer/mmap.h" @@ -368,6 +371,6 @@ struct lttng_counter_shm_ref lttng_counter_zalloc_shm(struct lttng_counter_shm_o void lttng_counter_align_shm(struct lttng_counter_shm_object *obj, size_t align) { - size_t offset_len = offset_align(obj->allocated_len, align); + size_t offset_len = lttng_ust_offset_align(obj->allocated_len, align); obj->allocated_len += offset_len; }