Parser for BPF Type Format (.BTF and .BTF.ext) ELF sections.

Synopsis

Declared in <llvm/DebugInfo/BTF/BTFParser.h>

class BTFParser;

Description

BTFParser reads .BTF and .BTF.ext ELF sections generated by LLVM BPF backend and provides introspection for the stored information. Currently the following information is accessible:

  • string table;

  • instruction offset to line information mapping;

  • types table;

  • CO‐RE relocations table.

See llvm/DebugInfo/BTF/BTF.h for some details about binary format and links to Linux Kernel documentation.

Types

Name

Description

ParseOptions

Options that select which BTF subsections to load.

Member Functions

Name

Description

findFieldReloc

Find CO‐RE relocation information for an instruction address.

findLineInfo

Find line information for an exact instruction address.

findString

Look up a string in the .BTF section's string table.

findType

Look up the BTF type definition with identifier Id.

parse

parse overloads

symbolize

Write a human‐readable form of a CO‐RE relocation into Result.

typesCount

Count the BTF types stored in this parser.

Static Member Functions

Name

Description

hasBTFSections

Check whether Obj has both .BTF and .BTF.ext sections.

Created with MrDocs