Skip to content

Commit 627e23b

Browse files
committed
build: drop no-longer-used reference to BPF macros
For a number of years we used libbpf in-tree so these have not been used - make it more clear by dropping completely.
1 parent f92439a commit 627e23b

File tree

5 files changed

+4
-110
lines changed

5 files changed

+4
-110
lines changed

configure

Lines changed: 2 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,6 @@ CLANG
857857
HAVE_LIBELF
858858
libelf_LIBS
859859
libelf_CFLAGS
860-
libbpf_version
861-
HAVE_LIBBPF
862-
libbpf_LIBS
863-
libbpf_CFLAGS
864860
PMDA_BCC
865861
have_python_influxdb
866862
have_python_six
@@ -1089,8 +1085,6 @@ avahi_LIBS
10891085
SYSTEMD_TMPFILESDIR
10901086
SYSTEMD_SYSUSERSDIR
10911087
SYSTEMD_SYSTEMUNITDIR
1092-
libbpf_CFLAGS
1093-
libbpf_LIBS
10941088
libelf_CFLAGS
10951089
libelf_LIBS
10961090
CPP
@@ -1850,9 +1844,6 @@ Some influential environment variables:
18501844
value of sysusersdir for systemd, overriding pkg-config
18511845
SYSTEMD_SYSTEMUNITDIR
18521846
value of systemdsystemunitdir for systemd, overriding pkg-config
1853-
libbpf_CFLAGS
1854-
C compiler flags for libbpf, overriding pkg-config
1855-
libbpf_LIBS linker flags for libbpf, overriding pkg-config
18561847
libelf_CFLAGS
18571848
C compiler flags for libelf, overriding pkg-config
18581849
libelf_LIBS linker flags for libelf, overriding pkg-config
@@ -6603,8 +6594,8 @@ printf "%s\n" "$ac_cv_path_EGREP" >&6; }
66036594
ac_cv_path_EGREP_TRADITIONAL=$EGREP
66046595

66056596

6606-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if static probes should be used" >&5
6607-
printf %s "checking if static probes should be used... " >&6; }
6597+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if USDT probes should be used" >&5
6598+
printf %s "checking if USDT probes should be used... " >&6; }
66086599
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66096600
/* end confdefs.h. */
66106601

@@ -8927,91 +8918,6 @@ printf "%s\n" "yes" >&6; }; else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: r
89278918
printf "%s\n" "no" >&6; }; fi
89288919

89298920

8930-
pkg_failed=no
8931-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbpf >= 0.8.0" >&5
8932-
printf %s "checking for libbpf >= 0.8.0... " >&6; }
8933-
8934-
if test -n "$libbpf_CFLAGS"; then
8935-
pkg_cv_libbpf_CFLAGS="$libbpf_CFLAGS"
8936-
elif test -n "$PKG_CONFIG"; then
8937-
if test -n "$PKG_CONFIG" && \
8938-
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf >= 0.8.0\""; } >&5
8939-
($PKG_CONFIG --exists --print-errors "libbpf >= 0.8.0") 2>&5
8940-
ac_status=$?
8941-
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8942-
test $ac_status = 0; }; then
8943-
pkg_cv_libbpf_CFLAGS=`$PKG_CONFIG --cflags "libbpf >= 0.8.0" 2>/dev/null`
8944-
test "x$?" != "x0" && pkg_failed=yes
8945-
else
8946-
pkg_failed=yes
8947-
fi
8948-
else
8949-
pkg_failed=untried
8950-
fi
8951-
if test -n "$libbpf_LIBS"; then
8952-
pkg_cv_libbpf_LIBS="$libbpf_LIBS"
8953-
elif test -n "$PKG_CONFIG"; then
8954-
if test -n "$PKG_CONFIG" && \
8955-
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf >= 0.8.0\""; } >&5
8956-
($PKG_CONFIG --exists --print-errors "libbpf >= 0.8.0") 2>&5
8957-
ac_status=$?
8958-
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8959-
test $ac_status = 0; }; then
8960-
pkg_cv_libbpf_LIBS=`$PKG_CONFIG --libs "libbpf >= 0.8.0" 2>/dev/null`
8961-
test "x$?" != "x0" && pkg_failed=yes
8962-
else
8963-
pkg_failed=yes
8964-
fi
8965-
else
8966-
pkg_failed=untried
8967-
fi
8968-
8969-
8970-
8971-
if test $pkg_failed = yes; then
8972-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973-
printf "%s\n" "no" >&6; }
8974-
8975-
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8976-
_pkg_short_errors_supported=yes
8977-
else
8978-
_pkg_short_errors_supported=no
8979-
fi
8980-
if test $_pkg_short_errors_supported = yes; then
8981-
libbpf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbpf >= 0.8.0" 2>&1`
8982-
else
8983-
libbpf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbpf >= 0.8.0" 2>&1`
8984-
fi
8985-
# Put the nasty error message in config.log where it belongs
8986-
echo "$libbpf_PKG_ERRORS" >&5
8987-
8988-
have_libbpf=false
8989-
elif test $pkg_failed = untried; then
8990-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991-
printf "%s\n" "no" >&6; }
8992-
have_libbpf=false
8993-
else
8994-
libbpf_CFLAGS=$pkg_cv_libbpf_CFLAGS
8995-
libbpf_LIBS=$pkg_cv_libbpf_LIBS
8996-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8997-
printf "%s\n" "yes" >&6; }
8998-
have_libbpf=true
8999-
fi
9000-
HAVE_LIBBPF=$have_libbpf
9001-
9002-
if $have_libbpf
9003-
then :
9004-
9005-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libbpf version" >&5
9006-
printf %s "checking libbpf version... " >&6; }
9007-
libbpf_version=`$PKG_CONFIG --modversion libbpf`
9008-
9009-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libbpf_version" >&5
9010-
printf "%s\n" "$libbpf_version" >&6; }
9011-
9012-
fi
9013-
9014-
90158921
pkg_failed=no
90168922
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libelf" >&5
90178923
printf %s "checking for libelf... " >&6; }

configure.ac

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,15 +1155,6 @@ AS_IF([test "x$do_pmdabcc" = "xcheck"], [
11551155
AC_SUBST(PMDA_BCC, $pmda_bcc)
11561156
if $pmda_bcc; then AC_MSG_RESULT(yes); else AC_MSG_RESULT(no); fi
11571157

1158-
PKG_CHECK_MODULES([libbpf], [libbpf >= 0.8.0], [have_libbpf=true], [have_libbpf=false])
1159-
AC_SUBST(HAVE_LIBBPF, [$have_libbpf])
1160-
AS_IF([$have_libbpf], [
1161-
AC_MSG_CHECKING([libbpf version])
1162-
libbpf_version=`$PKG_CONFIG --modversion libbpf`
1163-
AC_SUBST(libbpf_version)
1164-
AC_MSG_RESULT($libbpf_version)
1165-
])
1166-
11671158
PKG_CHECK_MODULES([libelf], [libelf], [have_libelf=true], [have_libelf=false])
11681159
AC_SUBST(HAVE_LIBELF, [$have_libelf])
11691160

src/include/builddefs.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,6 @@ HAVE_LIBUV = @HAVE_LIBUV@
314314
LIB_FOR_LIBUV = @libuv_LIBS@
315315
HAVE_LIBINIH = @HAVE_LIBINIH@
316316
LIB_FOR_INIH = @lib_for_inih@
317-
HAVE_LIBBPF = @HAVE_LIBBPF@
318-
LIBBPF_VERSION = @libbpf_version@
319-
LIB_FOR_LIBBPF = @libbpf_LIBS@
320317
HAVE_LIBELF = @HAVE_LIBELF@
321318
LIB_FOR_LIBELF = @libelf_LIBS@
322319
HAVE_NCURSES = @HAVE_NCURSES@

src/pmdas/bpf/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include $(TOPDIR)/src/include/builddefs
44
CFILES = bpf.c
55
CMDTARGET = pmdabpf$(EXECSUFFIX)
66
LIBTARGET = pmda_bpf.$(DSOSUFFIX)
7-
LLDLIBS = $(PCP_WEBLIB) $(LIB_FOR_LIBBPF) $(LIB_FOR_LIBELF) -lz -lm -ldl
7+
LLDLIBS = $(PCP_WEBLIB) $(LIB_FOR_LIBELF) -lbpf
88
ifeq "$(HAVE_LIBINIH)" "true"
99
LLDLIBS += $(LIB_FOR_INIH)
1010
endif

src/pmdas/bpf/modules/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TOPDIR = ../../../..
22
include $(TOPDIR)/src/include/builddefs
33

44
IAM = bpf
5-
LDLIBS = $(PCP_WEBLIB) $(LIB_FOR_LIBBPF) $(LIB_FOR_LIBELF) -lz -lm -ldl
5+
LDLIBS = $(PCP_WEBLIB) $(LIB_FOR_LIBELF) -lbpf
66
LDIRT = $(HELPERS_H) $(HELPERS_C) $(APPS_H) $(APPS_BPF) vmlinux.h
77
MODULETMP = $(PCP_PMDAS_DIR)/$(IAM)/modules
88
MODULEDIR = $(PCP_PMDASADM_DIR)/$(IAM)/modules

0 commit comments

Comments
 (0)