mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
build: Detect USDT the same way how it is used in the code
This commit is contained in:
parent
ccc431d53e
commit
b53cab0083
1 changed files with 3 additions and 1 deletions
|
@ -1412,7 +1412,9 @@ if test "$use_usdt" != "no"; then
|
|||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM(
|
||||
[#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([no]); use_usdt=no;]
|
||||
|
|
Loading…
Add table
Reference in a new issue