projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracepoint.h: replace assertion by fprintf and abort()
[lttng-ust.git]
/
include
/
helper.h
diff --git
a/include/helper.h
b/include/helper.h
index 8aeb772875820e597c50281f90770a1753e936dd..9d6617a8de044b2f1fa04481c9c1874cb8ffbcd2 100644
(file)
--- a/
include/helper.h
+++ b/
include/helper.h
@@
-21,7
+21,7
@@
#include <stdlib.h>
#include <stdlib.h>
-static inline
+static inline
__attribute__((always_inline))
void *zmalloc(size_t len)
{
return calloc(len, 1);
void *zmalloc(size_t len)
{
return calloc(len, 1);
@@
-41,4
+41,6
@@
void *zmalloc(size_t len)
__min1 <= __min2 ? __min1: __min2; \
})
__min1 <= __min2 ? __min1: __min2; \
})
+#define LTTNG_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
#endif /* _LTTNG_UST_HELPER_H */
#endif /* _LTTNG_UST_HELPER_H */
This page took
0.024017 seconds
and
4
git commands to generate.