Cleanup: Unaligned vs aligned ring buffer access comment
[lttng-ust.git] / include / ust-helper.h
index 609a1028642bf946948f9ac10073409c96876d3a..f16955160b93da0ae76ea477425db132e6d0bd27 100644 (file)
@@ -9,7 +9,12 @@
 
 #include <stdlib.h>
 
-static inline __attribute__((always_inline))
+#include <lttng/ust-arch.h>
+
+static inline
+void *zmalloc(size_t len)
+       __attribute__((always_inline));
+static inline
 void *zmalloc(size_t len)
 {
        return calloc(len, 1);
@@ -37,10 +42,10 @@ void *zmalloc(size_t len)
  * architecture for now by always using the NULL value for the ip
  * context.
  */
-#if defined(__PPC__) && !defined(__PPC64__)
+#if defined(LTTNG_UST_ARCH_PPC) && !defined(LTTNG_UST_ARCH_PPC64)
 #define LTTNG_UST_CALLER_IP()          NULL
-#else /* #if defined(__PPC__) && !defined(__PPC64__) */
+#else
 #define LTTNG_UST_CALLER_IP()          __builtin_return_address(0)
-#endif /* #else #if defined(__PPC__) && !defined(__PPC64__) */
+#endif
 
 #endif /* _LTTNG_UST_HELPER_H */
This page took 0.023669 seconds and 4 git commands to generate.