X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Fust-tracer.h;h=4b12be184481cc5501622e2bbc97f2cf4a31a8c4;hb=3b8bedd809f1a5b56da5fc101a90b44263b0f473;hp=acc475bfe1dde65bb16a239652b359568da6448c;hpb=eae3c72949135b48639440468dc78ea1d5e937e9;p=lttng-ust.git diff --git a/include/lttng/ust-tracer.h b/include/lttng/ust-tracer.h index acc475bf..4b12be18 100644 --- a/include/lttng/ust-tracer.h +++ b/include/lttng/ust-tracer.h @@ -9,27 +9,32 @@ #ifndef _LTTNG_UST_TRACER_H #define _LTTNG_UST_TRACER_H -#include - #include #include -#include #include #include +/* + * Default to having the content of the ringbuffer respect the natural + * alignment of the system. Only pack its content on architectures we know + * have efficient unaligned memory access. + */ #ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS -/* Align data on its natural alignment */ -#define RING_BUFFER_ALIGN -#endif - -#ifndef CHAR_BIT -#define CHAR_BIT 8 +#define LTTNG_UST_RING_BUFFER_NATURAL_ALIGN #endif -#ifdef RING_BUFFER_ALIGN +#ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN #define lttng_alignof(type) __alignof__(type) #else #define lttng_alignof(type) 1 #endif +/* + * Concatenate lttng ust shared libraries name with their major version number. + */ +#define LTTNG_UST_LIB_SONAME "liblttng-ust.so." lttng_ust_stringify(LTTNG_UST_LIB_SONAME_MAJOR) +#define LTTNG_UST_TRACEPOINT_LIB_SONAME "liblttng-ust-tracepoint.so." lttng_ust_stringify(LTTNG_UST_LIB_SONAME_MAJOR) +#define LTTNG_UST_CTL_LIB_SONAME "liblttng-ust-ctl.so." lttng_ust_stringify(LTTNG_UST_CTL_LIB_SONAME_MAJOR) + + #endif /* _LTTNG_UST_TRACER_H */