Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbpf-tools: Add experimental BTFGen integration #3889

Merged

Commits on Apr 6, 2022

  1. libbpf-tools: Include bpftool as a submodule

    bpftool now has a mirror on Github[0], let's pull it as a submodule
    and compile when needed instead of shipping the bpftool binary directly.
    
    [0]: https://github.com/libbpf/bpftool
    
    Signed-off-by: Mauricio Vásquez <[email protected]
    mauriciovasquezbernal committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    6230695 View commit details
    Browse the repository at this point in the history
  2. libbpf-tools: Add experimental integration with BTFGen

    This commit adds an experimental BTFGen[0] integration to allow some of
    the libbpf-tools to run in systems that don't provide BTF information.
    
    The whole process consist of two parts: (1) generating and embedding the
    BTF file within the tools binary and (2) using those when the tool is
    run.
    
    The first part is done by using the Makefile, it generates the reduced
    BTF files for the different eBPF objects of the tools, those files are
    then compressed and a C header file with its content is created.
    
    The second part is handled by a new C file that provides the logic to
    uncompress and save the BTF file according to the Linux distribution and
    kernel version where the tools is being run.
    
    [0] https://lore.kernel.org/bpf/[email protected]/
    
    Signed-off-by: Mauricio Vásquez <[email protected]>
    mauriciovasquezbernal committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    37d703d View commit details
    Browse the repository at this point in the history
  3. libbpf-tools: Update tools to use BTFGen integration

    Use save_min_core_btf() to uncompress and save the BTF file for the
    current system. If the file is available, then use it when opening the
    object.
    
    Signed-off-by: Mauricio Vásquez <[email protected]>
    mauriciovasquezbernal committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    a416a82 View commit details
    Browse the repository at this point in the history
  4. libbpf-tools: Add documentation about BTFGen integration

    Signed-off-by: Mauricio Vásquez <[email protected]>
    mauriciovasquezbernal committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    b95542c View commit details
    Browse the repository at this point in the history