Bug 4262 - debuginfo subsetting utility
Summary: debuginfo subsetting utility
Status: RESOLVED WONTFIX
Alias: None
Product: systemtap
Classification: Unclassified
Component: releng (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-22 18:08 UTC by Frank Ch. Eigler
Modified: 2009-09-08 15:45 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2007-03-22 18:08:25 UTC
It is sometimes desirable to package debugging information that is a subset of
the original data.  The subset would need to be just enough to run some
systemtap scripts.  One may want to ship just a subset because the full
debuginfo would be proprietary, or just too darn big.

Here's one way to do it:
- let the interesting part of the application be defined by a collection of
systemtap scripts (and the tapsets they use)
- extend systemtap / elfutils to be able to mark all parts of the debugging
files actually used - at as low as a DIE granularity
- develop a tool to take such markings, and excise all unmarked parts of the
debuginfo.  it may be simplest to zero-fill the unused parts, then compress the
resulting file.
- extent systemtap to look for such subsetted debuginfo files in another path,
using elfutils path settings already available
Comment 1 Frank Ch. Eigler 2009-09-08 15:45:37 UTC
We probably won't write something quite like this,
with the lossless compression work already in progress.