public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Aaron Merey <amerey@redhat.com>
To: Mark Wielaard <mark@klomp.org>
Cc: elfutils-devel@sourceware.org, systemtap@sourceware.org
Subject: Re: debuginfo server progress update
Date: Fri, 05 Jul 2019 19:20:00 -0000	[thread overview]
Message-ID: <CAJDtP-T6u2DEo_kvnk+L2hN7SoA4z83Z4YTu8ya3s6EWyLKdMQ@mail.gmail.com> (raw)
In-Reply-To: <20190705160455.GH4777@wildebeest.org>

Hi Mark,

On Fri, Jul 5, 2019 at 12:46 PM Mark Wielaard <mark@klomp.org> wrote:
>
> Hi Aaron,
>
> On Wed, Jul 03, 2019 at 03:59:46PM -0400, Aaron Merey wrote:
> > The debuginfo server, a web service that offers lightweight on-demand lookups
> > of debuginfo-related data, along with its elfutils client have begun to take
> > shape so I want to provide an update on where we currently are in its
> > development and how to use it.
> >
> > We plan on shipping debuginfo server with elfutils and it is currently
> > available on the branch 'fche/dbgserver' of the elfutils git repo.
>
> And now also simply on 'dbgserver'.
> https://sourceware.org/git/?p=elfutils.git;a=shortlog;h=refs/heads/dbgserver
>
> > The
> > http web server itself is able to scan a directory tree for any debuginfo,
> > executable and source files and index them by build-id. The elfutils client
> > hooks into libdwfl and provides a fallback so that if the library is not able
> > to locate a debuginfo file, the client, if enabled, will attempt to query
> > debuginfo servers for debuginfo containing a particular build-id.
> > [...]
> > This time systemtap successfully acquires the debuginfo and begins running
> > the probe. Although in this example everything is running locally, the server
> > and the debuginfo could just as well be on a remote host.
> >
> > Debuginfo server development is ongoing. Some of the features we have planned
> > include a gdb client that could query debuginfo servers for debuginfo or source
> > code and the ability for the server to automatically search rpms for any of the
> > files requested by a client. We also are planning a talk/demo at GNU Cauldron
> > this September in Montréal, Canada (https://gcc.gnu.org/wiki/cauldron2019).
> >
> > Hopefully this helped give you a sense of how to use debuginfo server, where it
> > is in its development, and what is to come. Feedback is always appreciated!
>
> I think it would be nice if there was a dbgclient binary that could be
> reused by multiple clients.  It could do most of what you currently do
> in libdwfl/dbgserver-client.c. It would simply take a buildid and type
> (exec, dbg, src) and return a file path to the resulting file when
> found (or a well defined error number when not found).
>
> Such a dbgclient executable would make writing other clients
> easier. For example dbgserver_build_id_find would simply reduce to
> spawning dbgclient with the right arguments and opening the resulting
> file path. Other clients, like gdb, then also don't need to implement
> the caching and quering, but can also simply call dbgclient <build-id>
> <type> and just open the resulting file.

I really like this suggestion, even with just elfutils and gdb clients
there will
already be too much code duplication if we don't have the client code in its own
binary. This raises questions such as whether dbgclient should be a shared
library or a command line tool, but regardless of these implementation details
you bring up an issue that needs to be addressed as the client side of debuginfo
server grows. I appreciate the feedback!

Aaron

  reply	other threads:[~2019-07-05 19:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJDtP-R4UCWcAf_DFY_PuJJ5NbycbUNqA_=NYipCVcQW6VtRQA@mail.gmail.com>
2019-07-05 16:46 ` Mark Wielaard
2019-07-05 19:20   ` Aaron Merey [this message]
2019-07-03 20:12 Aaron Merey
  -- strict thread matches above, loose matches on Subject: below --
2019-07-03 19:29 Aaron Merey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJDtP-T6u2DEo_kvnk+L2hN7SoA4z83Z4YTu8ya3s6EWyLKdMQ@mail.gmail.com \
    --to=amerey@redhat.com \
    --cc=elfutils-devel@sourceware.org \
    --cc=mark@klomp.org \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).