projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add SDT userspace probe location
[lttng-tools.git]
/
src
/
common
/
macros.h
diff --git
a/src/common/macros.h
b/src/common/macros.h
index 33ada7321801a14b438a27dca246ec8fbfb0c897..c521aacd5f3df8f582502ce8faa9f29feb1c9063 100644
(file)
--- a/
src/common/macros.h
+++ b/
src/common/macros.h
@@
-79,6
+79,10
@@
void *zmalloc(size_t len)
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif
+#ifndef min_t
+#define min_t(type, a, b) ((type) min(a, b))
+#endif
+
#ifndef LTTNG_PACKED
#define LTTNG_PACKED __attribute__((__packed__))
#endif
#ifndef LTTNG_PACKED
#define LTTNG_PACKED __attribute__((__packed__))
#endif
This page took
0.02784 seconds
and
5
git commands to generate.