Skip to content

Commit b53cab0

Browse files
committed
build: Detect USDT the same way how it is used in the code
1 parent ccc431d commit b53cab0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,9 @@ if test "$use_usdt" != "no"; then
14121412
AC_COMPILE_IFELSE([
14131413
AC_LANG_PROGRAM(
14141414
[#include <sys/sdt.h>],
1415-
[DTRACE_PROBE("context", "event");]
1415+
[DTRACE_PROBE(context, event);
1416+
int a, b, c, d, e, f, g;
1417+
DTRACE_PROBE7(context, event, a, b, c, d, e, f, g);]
14161418
)],
14171419
[AC_MSG_RESULT([yes]); AC_DEFINE([ENABLE_TRACING], [1], [Define to 1 to enable tracepoints for Userspace, Statically Defined Tracing])],
14181420
[AC_MSG_RESULT([no]); use_usdt=no;]

0 commit comments

Comments
 (0)