projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure: regroup automake conditionals
[lttng-ust.git]
/
include
/
ust-helper.h
diff --git
a/include/ust-helper.h
b/include/ust-helper.h
index 609a1028642bf946948f9ac10073409c96876d3a..e8b393a8114df6333bb6fb4bb6832819cd41c551 100644
(file)
--- a/
include/ust-helper.h
+++ b/
include/ust-helper.h
@@
-9,6
+9,8
@@
#include <stdlib.h>
#include <stdlib.h>
+#include <lttng/ust-arch.h>
+
static inline __attribute__((always_inline))
void *zmalloc(size_t len)
{
static inline __attribute__((always_inline))
void *zmalloc(size_t len)
{
@@
-37,10
+39,10
@@
void *zmalloc(size_t len)
* architecture for now by always using the NULL value for the ip
* context.
*/
* 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
#define LTTNG_UST_CALLER_IP() NULL
-#else
/* #if defined(__PPC__) && !defined(__PPC64__) */
+#else
#define LTTNG_UST_CALLER_IP() __builtin_return_address(0)
#define LTTNG_UST_CALLER_IP() __builtin_return_address(0)
-#endif
/* #else #if defined(__PPC__) && !defined(__PPC64__) */
+#endif
#endif /* _LTTNG_UST_HELPER_H */
#endif /* _LTTNG_UST_HELPER_H */
This page took
0.023253 seconds
and
4
git commands to generate.