Skip to content

Commit

Permalink
Update libbpf to 0.0.8 release
Browse files Browse the repository at this point in the history
Starting from 0.0.7 libbpf requires zlib as a build dependency.
This commit adds -lz to LIBS in common.mk and adds zlib-devel
as a libbpf build dependency in the ansible playbook.

Signed-off-by: Zebaz <schalbroeck@gmail.com>
  • Loading branch information
zebaz committed May 12, 2020
1 parent b13cfb8 commit e9e4cae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ LDFLAGS ?= -L$(LIBBPF_DIR)

BPF_CFLAGS ?= -I$(LIBBPF_DIR)/build/usr/include/ -I../headers/

LIBS = -l:libbpf.a -lelf $(USER_LIBS)
LIBS = -l:libbpf.a -lelf -lz $(USER_LIBS)

all: llvm-check $(USER_TARGETS) $(XDP_OBJ) $(COPY_LOADER) $(COPY_STATS)

Expand Down
2 changes: 1 addition & 1 deletion libbpf
Submodule libbpf updated 48 files
+62 −89 .travis.yml
+1 −1 BPF-CHECKPOINT-COMMIT
+1 −1 CHECKPOINT-COMMIT
+1 −0 LICENSE
+32 −0 LICENSE.BSD-2-Clause
+503 −0 LICENSE.LPGL-2.1
+30 −0 README.md
+345 −79 include/uapi/linux/bpf.h
+10 −3 include/uapi/linux/btf.h
+13 −1 include/uapi/linux/if_link.h
+4 −3 scripts/sync-kernel.sh
+13 −2 src/Makefile
+125 −5 src/bpf.c
+62 −6 src/bpf.h
+181 −10 src/bpf_helper_defs.h
+11 −0 src/bpf_helpers.h
+3 −0 src/bpf_prog_linfo.c
+222 −1 src/bpf_tracing.h
+182 −11 src/btf.c
+29 −4 src/btf.h
+56 −71 src/btf_dump.c
+3 −0 src/hashmap.c
+2,898 −685 src/libbpf.c
+107 −48 src/libbpf.h
+49 −0 src/libbpf.map
+1 −1 src/libbpf.pc.template
+40 −0 src/libbpf_common.h
+3 −0 src/libbpf_errno.c
+20 −1 src/libbpf_internal.h
+28 −0 src/libbpf_probes.c
+39 −4 src/netlink.c
+3 −0 src/nlattr.c
+3 −0 src/str_error.c
+25 −5 src/xsk.c
+7 −3 travis-ci/managers/debian.sh
+2 −2 travis-ci/managers/ubuntu.sh
+25 −0 travis-ci/vmtest/build_pahole.sh
+25 −0 travis-ci/vmtest/build_selftests.sh
+24 −0 travis-ci/vmtest/checkout_latest_kernel.sh
+6 −0 travis-ci/vmtest/configs/INDEX
+27 −0 travis-ci/vmtest/configs/blacklist/BLACKLIST-5.5.0
+4 −0 travis-ci/vmtest/configs/blacklist/BLACKLIST-latest
+3,001 −0 travis-ci/vmtest/configs/latest.config
+148 −0 travis-ci/vmtest/mkrootfs.sh
+14 −0 travis-ci/vmtest/prepare_selftests.sh
+438 −0 travis-ci/vmtest/run.sh
+39 −0 travis-ci/vmtest/run_selftests.sh
+30 −0 travis-ci/vmtest/run_vmtest.sh
1 change: 1 addition & 0 deletions setup-testlab/ansible/roles/tutorial/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
dnf:
name:
- elfutils-libelf-devel
- zlib-devel
state: installed

- name: Packages - pahole/dwarves build dependencies
Expand Down

0 comments on commit e9e4cae

Please sign in to comment.