Skip to content

Commit 6200fbf

Browse files
committed
build: rename --enable-ebpf to --enable-usdt
eBPF is a Linux kernel technology used to "extend the capabilities of the kernel without requiring to change kernel source code or load kernel modules". While Userspace, Statically Defined Tracing (USDT) uses eBPF under the hood, --enable-usdt better resembles that support for USDT is enabled, and tracepoints will be included in the binary.
1 parent e158a2a commit 6200fbf

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

configure.ac

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ AC_ARG_WITH([bdb],
137137
[use_bdb=$withval],
138138
[use_bdb=auto])
139139

140-
AC_ARG_ENABLE([ebpf],
141-
[AS_HELP_STRING([--enable-ebpf],
142-
[enable eBPF tracing (default is yes if sys/sdt.h is found)])],
143-
[use_ebpf=$enableval],
144-
[use_ebpf=yes])
140+
AC_ARG_ENABLE([usdt],
141+
[AS_HELP_STRING([--enable-usdt],
142+
[enable tracepoints for Userspace, Statically Defined Tracing (default is yes if sys/sdt.h is found)])],
143+
[use_usdt=$enableval],
144+
[use_usdt=yes])
145145

146146
AC_ARG_WITH([miniupnpc],
147147
[AS_HELP_STRING([--with-miniupnpc],
@@ -1341,15 +1341,15 @@ if test "$enable_wallet" != "no"; then
13411341
fi
13421342
fi
13431343

1344-
if test "$use_ebpf" != "no"; then
1345-
AC_MSG_CHECKING([whether eBPF tracepoints are supported])
1344+
if test "$use_usdt" != "no"; then
1345+
AC_MSG_CHECKING([whether Userspace, Statically Defined Tracing tracepoints are supported])
13461346
AC_COMPILE_IFELSE([
13471347
AC_LANG_PROGRAM(
13481348
[#include <sys/sdt.h>],
13491349
[DTRACE_PROBE("context", "event");]
13501350
)],
1351-
[AC_MSG_RESULT([yes]); have_sdt=yes; AC_DEFINE([ENABLE_TRACING], [1], [Define to 1 to enable eBPF user static defined tracepoints])],
1352-
[AC_MSG_RESULT([no]); have_sdt=no;]
1351+
[AC_MSG_RESULT([yes]); AC_DEFINE([ENABLE_TRACING], [1], [Define to 1 to enable tracepoints for Userspace, Statically Defined Tracing])],
1352+
[AC_MSG_RESULT([no]); use_usdt=no;]
13531353
)
13541354
fi
13551355

@@ -1763,7 +1763,6 @@ AM_CONDITIONAL([TARGET_WINDOWS], [test "$TARGET_OS" = "windows"])
17631763
AM_CONDITIONAL([ENABLE_WALLET], [test "$enable_wallet" = "yes"])
17641764
AM_CONDITIONAL([USE_SQLITE], [test "$use_sqlite" = "yes"])
17651765
AM_CONDITIONAL([USE_BDB], [test "$use_bdb" = "yes"])
1766-
AM_CONDITIONAL([ENABLE_TRACING], [test "$have_sdt" = "yes"])
17671766
AM_CONDITIONAL([ENABLE_TESTS], [test "$BUILD_TEST" = "yes"])
17681767
AM_CONDITIONAL([ENABLE_FUZZ], [test "$enable_fuzz" = "yes"])
17691768
AM_CONDITIONAL([ENABLE_FUZZ_BINARY], [test "$enable_fuzz_binary" = "yes"])
@@ -1932,7 +1931,7 @@ echo " with bench = $use_bench"
19321931
echo " with upnp = $use_upnp"
19331932
echo " with natpmp = $use_natpmp"
19341933
echo " use asm = $use_asm"
1935-
echo " ebpf tracing = $have_sdt"
1934+
echo " USDT tracing = $use_usdt"
19361935
echo " sanitizers = $use_sanitizers"
19371936
echo " debug enabled = $enable_debug"
19381937
echo " gprof enabled = $enable_gprof"

0 commit comments

Comments
 (0)