X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ust%2Flttng-context-perf-counters.c;h=5a7dec4aac0e900013f07f372ca69255675051c7;hb=baa8acf3af23bc5d9373144bef8147744b5ae01f;hp=5f5b5cbfeac086aaaa5117fd08adc21519c51e6e;hpb=6339062a5bbe886493d0691d13e28e37a7206362;p=lttng-ust.git diff --git a/src/lib/lttng-ust/lttng-context-perf-counters.c b/src/lib/lttng-ust/lttng-context-perf-counters.c index 5f5b5cbf..5a7dec4a 100644 --- a/src/lib/lttng-ust/lttng-context-perf-counters.c +++ b/src/lib/lttng-ust/lttng-context-perf-counters.c @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include #include @@ -34,7 +34,7 @@ #include "context-internal.h" #include "lttng-tracer-core.h" -#include "ust-events-internal.h" +#include "lib/lttng-ust/events.h" /* * We use a global perf counter key and iterate on per-thread RCU lists @@ -165,7 +165,7 @@ size_t perf_counter_get_size(void *priv __attribute__((unused)), { size_t size = 0; - size += lttng_ust_lib_ring_buffer_align(offset, lttng_ust_rb_alignof(uint64_t)); + size += lttng_ust_ring_buffer_align(offset, lttng_ust_rb_alignof(uint64_t)); size += sizeof(uint64_t); return size; } @@ -262,7 +262,7 @@ uint64_t arch_read_perf_counter( } static -int arch_perf_keep_fd(struct lttng_perf_counter_thread_field *thread_field) +int arch_perf_keep_fd(struct lttng_perf_counter_thread_field *thread_field __attribute__((unused))) { return 1; } @@ -442,7 +442,7 @@ uint64_t wrapper_perf_counter_read(void *priv) static void perf_counter_record(void *priv, - struct lttng_ust_lib_ring_buffer_ctx *ctx, + struct lttng_ust_ring_buffer_ctx *ctx, struct lttng_ust_channel_buffer *chan) { uint64_t value; @@ -531,7 +531,7 @@ static const struct lttng_ust_type_common *ust_type = lttng_ust_static_type_integer(sizeof(uint64_t) * CHAR_BIT, lttng_ust_rb_alignof(uint64_t) * CHAR_BIT, lttng_ust_is_signed_type(uint64_t), - BYTE_ORDER, 10); + LTTNG_UST_BYTE_ORDER, 10); /* Called with UST lock held */ int lttng_add_perf_counter_to_ctx(uint32_t type,