Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bcc_elf: add support for debug information from libdebuginfod
This change adds debuginfod as a new source for debug information. By using libdebuginfod we can query a server for a file containing debug information for a given ELF binary. The environment variable DEBUGINFOD_URLS has to be defined to an URL for a debuginfod server providing debug information files for your distribution or the federating server provided by the elfutils project: For example, to use the Fedora server, you would need: $ export DEBUGINFOD_URLS="https://debuginfod.fedoraproject.org/" Or for the elfutils server which federates to servers for openSUSE, Void Linux, Debian and Fedora, among others: $ export DEBUGINFOD_URLS="https://debuginfod.elfutils.org/" Calls to the debuginfod_find_debuginfo function from libdebuginfod will fail if the environment variable is not set, otherwise the library will attempt to download debug information for a build ID extracted from the binary in question and store it in a local cache directory. Fixes bpftrace/bpftrace#1774 Signed-off-by: Andreas Ziegler <[email protected]>
- Loading branch information