merge bitcoin#27458: Detect USDT the same way how it is used in the code

This commit is contained in:
Kittywhiskers Van Gogh 2023-05-18 14:59:14 +01:00
parent f4a53ba8ce
commit c92eb67c40
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -1413,7 +1413,9 @@ if test x$use_usdt != xno; then
AC_COMPILE_IFELSE([ AC_COMPILE_IFELSE([
AC_LANG_PROGRAM( AC_LANG_PROGRAM(
[#include <sys/sdt.h>], [#include <sys/sdt.h>],
[DTRACE_PROBE("context", "event");] [DTRACE_PROBE(context, event);
int a, b, c, d, e, f, g;
DTRACE_PROBE7(context, event, a, b, c, d, e, f, g);]
)], )],
[AC_MSG_RESULT(yes); AC_DEFINE([ENABLE_TRACING], [1], [Define to 1 to enable tracepoints for Userspace, Statically Defined Tracing])], [AC_MSG_RESULT(yes); AC_DEFINE([ENABLE_TRACING], [1], [Define to 1 to enable tracepoints for Userspace, Statically Defined Tracing])],
[AC_MSG_RESULT(no); use_usdt=no;] [AC_MSG_RESULT(no); use_usdt=no;]