summaryrefslogtreecommitdiffstats
path: root/src/guestfs-internal.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-05-11 13:47:29 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-05-11 13:47:29 +0100
commita1680f03b7d38bf007d29ac23035e5af33736b0e (patch)
tree2890554fb0c5a6ada660cbd2ff2b8dc19e927543 /src/guestfs-internal.h
parent042a0b063b22bd02bb72f4a78cf29ffe5553d4d8 (diff)
downloadlibguestfs-a1680f03b7d38bf007d29ac23035e5af33736b0e.tar.gz
libguestfs-a1680f03b7d38bf007d29ac23035e5af33736b0e.tar.xz
libguestfs-a1680f03b7d38bf007d29ac23035e5af33736b0e.zip
configure: Allow systemtap/DTrace userspace probes to be disabled.
'./configure --disable-probes' will disable these probes. Otherwise they are autodetected as before. The <sys/sdt.h> produces lots of errors when you try to compile with these probes enabled under clang, so it is necessary to provide a way to disable them for clang users.
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r--src/guestfs-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index 01a7e6c9..4e82966d 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -49,7 +49,7 @@
#define _(str) dgettext(PACKAGE, (str))
#define N_(str) dgettext(PACKAGE, (str))
-#ifdef HAVE_SYS_SDT_H
+#if ENABLE_PROBES
#include <sys/sdt.h>
/* NB: The 'name' parameter is a literal identifier, NOT a string! */
#define TRACE0(name) DTRACE_PROBE(guestfs, name)
@@ -61,7 +61,7 @@
DTRACE_PROBE(guestfs, name, (arg1), (arg2), (arg3))
#define TRACE4(name, arg1, arg2, arg3, arg4) \
DTRACE_PROBE(guestfs, name, (arg1), (arg2), (arg3), (arg4))
-#else
+#else /* !ENABLE_PROBES */
#define TRACE0(name)
#define TRACE1(name, arg1)
#define TRACE2(name, arg1, arg2)