#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);
* 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 */