X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-perf-counters.c;h=3a00a7fabdb8f9de00e34428de0315c37e710b48;hb=60864af02c63fdaaf9264b4f14bfbc9f9fba64bd;hp=6979143985de74f58fcdab13b67fdd3511d7651c;hpb=2eba8e397d36e8cecaf4731b4f892dc57f32a382;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-perf-counters.c b/liblttng-ust/lttng-context-perf-counters.c index 69791439..3a00a7fa 100644 --- a/liblttng-ust/lttng-context-perf-counters.c +++ b/liblttng-ust/lttng-context-perf-counters.c @@ -7,6 +7,7 @@ */ #define _LGPL_SOURCE +#include #include #include #include @@ -161,7 +162,7 @@ size_t perf_counter_get_size(struct lttng_ust_ctx_field *field, size_t offset) { size_t size = 0; - size += lib_ring_buffer_align(offset, lttng_alignof(uint64_t)); + size += lttng_ust_lib_ring_buffer_align(offset, lttng_ust_rb_alignof(uint64_t)); size += sizeof(uint64_t); return size; } @@ -444,7 +445,7 @@ void perf_counter_record(struct lttng_ust_ctx_field *field, uint64_t value; value = wrapper_perf_counter_read(field); - lib_ring_buffer_align_ctx(ctx, lttng_alignof(value)); + lttng_ust_lib_ring_buffer_align_ctx(ctx, lttng_ust_rb_alignof(value)); chan->ops->event_write(ctx, &value, sizeof(value)); } @@ -546,8 +547,8 @@ int lttng_add_perf_counter_to_ctx(uint32_t type, goto perf_field_alloc_error; } ust_type = lttng_ust_create_type_integer(sizeof(uint64_t) * CHAR_BIT, - lttng_alignof(uint64_t) * CHAR_BIT, - lttng_is_signed_type(uint64_t), + lttng_ust_rb_alignof(uint64_t) * CHAR_BIT, + lttng_ust_is_signed_type(uint64_t), BYTE_ORDER, 10); if (!ust_type) { ret = -ENOMEM;