Re: [PATCH 0/2] perf probe: Support debuginfod client

From: Frank Ch. Eigler
Date: Thu Sep 17 2020 - 10:12:28 EST


Hi -

> > > I need to support this in pahole...
> >
> > pahole/dwarves use elfutils, so it already has automatic support.
> > https://sourceware.org/elfutils/Debuginfod.html
>
> I'm still not sure that which interface of elfutils I should use
> for this "automatic" debuginfod support. Are there good documentation
> about it?

The libdwfl part of the elfutils API falls back to debuginfod lookups
internally, so e.g. systemtap had to do nothing to benefit.


> Since this series just for the kernel binary, I have to check we
> can do something on user-space binaries.

It should work identically & transparently. If you're using one of
a few key packages of a few mainstream distros, the public debuginfod
server may already have the material available.


- FChE