mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-31 15:38:08 +03:00
utrace support with label based signature.
This commit is contained in:
parent
92e189be8b
commit
520b75fa2d
4 changed files with 30 additions and 6 deletions
23
configure.ac
23
configure.ac
|
|
@ -1405,10 +1405,25 @@ JE_COMPILABLE([utrace(2)], [
|
|||
utrace((void *)0, 0);
|
||||
], [je_cv_utrace])
|
||||
if test "x${je_cv_utrace}" = "xno" ; then
|
||||
enable_utrace="0"
|
||||
fi
|
||||
if test "x$enable_utrace" = "x1" ; then
|
||||
AC_DEFINE([JEMALLOC_UTRACE], [ ])
|
||||
JE_COMPILABLE([utrace(2) with label], [
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/ktrace.h>
|
||||
], [
|
||||
utrace((void *)0, (void *)0, 0);
|
||||
], [je_cv_utrace_label])
|
||||
if test "x${je_cv_utrace_label}" = "xno"; then
|
||||
enable_utrace="0"
|
||||
fi
|
||||
if test "x$enable_utrace" = "x1" ; then
|
||||
AC_DEFINE([JEMALLOC_UTRACE_LABEL], [ ])
|
||||
fi
|
||||
else
|
||||
if test "x$enable_utrace" = "x1" ; then
|
||||
AC_DEFINE([JEMALLOC_UTRACE], [ ])
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([enable_utrace])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue