From fe24f3b9c31d7aa2c6bd60719230094bcd181df0 Mon Sep 17 00:00:00 2001 From: Liz Rice Date: Fri, 7 Jan 2022 14:51:36 +0000 Subject: [PATCH] libbpf-tools: README how to update libbpf submodule An outdated libbpf submodule can cause the libbpf-tools `make` to fail. Adding note to the README on how to update it. --- libbpf-tools/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libbpf-tools/README.md b/libbpf-tools/README.md index 676ec515..ac29ad4b 100644 --- a/libbpf-tools/README.md +++ b/libbpf-tools/README.md @@ -15,11 +15,13 @@ only exception is resulting tool binaries, which are put in a current directory. `make clean` will clean up all the build artifacts, including generated binaries. -Given libbpf package might not be available across wide variety of -distributions, all libbpf-based tools are linked statically against version of -libbpf that BCC links against (from submodule under src/cc/libbpf). This +Given that the libbpf package might not be available across wide variety of +distributions, all libbpf-based tools are linked statically against a version +of libbpf that BCC links against (from submodule under src/cc/libbpf). This results in binaries with minimal amount of dependencies (libc, libelf, and -libz are linked dynamically, though, given their widespread availability). +libz are linked dynamically, though, given their widespread availability). +If your build fails because the libbpf submodule is outdated, try running `git +submodule update --init --recursive`. Tools are expected to follow a simple naming convention: - .c contains userspace C code of a tool. -- 2.34.1