Skip to content

Add libbpf 1.5.0 and pahole 1.30 #3227

Merged
merged 5 commits into from
Apr 14, 2025
Merged

Commits on Apr 14, 2025

  1. libbpf: Add version 1.5.0

    [Description](https://libbpf.readthedocs.io/en/latest/libbpf_overview.html):
    
    > libbpf is a C-based library containing a BPF loader that takes
    > compiled BPF object files and prepares and loads them into the Linux
    > kernel. libbpf takes the heavy lifting of loading, verifying, and
    > attaching BPF programs to various kernel hooks, allowing BPF application
    > developers to focus only on BPF program correctness and performance.
    pmenzel committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    544379e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e0bd435 View commit details
    Browse the repository at this point in the history
  3. pahole: Add version 1.30

    pahole is needed to build the BTF debug info for the Linux kernel. BTF (BPF Type
    Format) is the metadata format which encodes the debug info related to BPF
    program/map.
    
    [Description](https://git.kernel.org/pub/scm/devel/pahole/pahole.git/tree/man-pages/pahole.1):
    
    > pahole - Shows, manipulates data structure layout and pretty prints raw data.
    >
    > pahole shows data structure layouts encoded in debugging information formats,
    > DWARF, CTF and BTF being supported.
    >
    > This is useful for, among other things: optimizing important data structures
    > by reducing its size, figuring out what is the field sitting at an offset from
    > the start of a data structure, investigating ABI changes and more generally
    > understanding a new codebase you have to work with.
    
    https://git.kernel.org/pub/scm/devel/pahole/pahole.git/
    pmenzel committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    f26da41 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    217c579 View commit details
    Browse the repository at this point in the history
  5. pahole: Explicitly build with the system libbpf

    [BEE] => entering bee_configure() ..
    [BEE] cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_COLOR_MAKEFILE=OFF -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo /dev/shm/bee-pmenzel/pahole/pahole-1.30-0/source
    -- The C compiler identification is GNU 12.3.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Setting BUILD_SHARED_LIBS = ON
    -- Checking availability of DWARF and ELF development libraries
    -- Looking for dwfl_module_build_id in elf
    -- Looking for dwfl_module_build_id in elf - found
    -- Found dwarf.h header: /usr/include
    -- Found elfutils/libdw.h header: /usr/include
    -- Found libdw library: /usr/lib/libdw.so
    -- Found libelf library: /usr/lib/libelf.so
    -- Checking availability of DWARF and ELF development libraries - done
    -- Found ZLIB: /usr/lib/libz.so (found version "1.3.#define ZLIB_VERSION "1.3"")
    -- Checking availability of argp library
    -- Assuming argp is in libc
    -- Checking availability of argp library - done
    -- Checking availability of obstack library
    -- Assuming obstack is in libc
    -- Checking availability of obstack library - done
    CMake Error at CMakeLists.txt:75 (message):
      The submodules were not downloaded! GIT_SUBMODULE was turned off or failed.
      Please update submodules and try again.
    
    -- Configuring incomplete, errors occurred!
    See also "/dev/shm/bee-pmenzel/pahole/pahole-1.30-0/build/CMakeFiles/CMakeOutput.log".
    pmenzel committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    77205e0 View commit details
    Browse the repository at this point in the history