From cb3904b70a3ec108be68693389e40eb5933a75e8 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Tue, 21 Feb 2012 20:16:25 +0000 Subject: QPID-3862: Static Trace points for System tap / Dtrace Added framework to allow static probes in DTRACE_PROBE() format to be added to the qpid code. This will be usable under System Tap for Linux, and DTrace for Solaris and FreeBSD. Also included some initial probes into the low level IO code to see how it performs. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1291981 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/configure.ac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'cpp/configure.ac') diff --git a/cpp/configure.ac b/cpp/configure.ac index 8729ace169..a3318531bd 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -480,6 +480,24 @@ case "$host" in esac AM_CONDITIONAL([SUNOS], [test x$arch = xsolaris]) +# Check whether we've got the header for dtrace static probes +AC_ARG_WITH([probes], + [AS_HELP_STRING([--with-probes], [Build with dtrace/systemtap static probes])], + [case ${withval} in + yes) + AC_CHECK_HEADERS([sys/sdt.h]) + ;; + no) + ;; + *) + AC_MSG_ERROR([Bad value for --with-probes: ${withval}]) + ;; + esac], + [ + AC_CHECK_HEADERS([sys/sdt.h]) + ] +) + # Check for some syslog capabilities not present in all systems AC_TRY_COMPILE([#include ], [int v = LOG_AUTHPRIV;], -- cgit v1.2.1