[PATCH]PR 4886: validate debuginfo based on build-id
David Smith
dsmith@redhat.com
Wed Jul 16 17:35:00 GMT 2008
Frank Ch. Eigler wrote:
> Wenji Huang <wenji.huang@oracle.com> writes:
>
>> The patch is to provide sanity check of debuginfo(PR 4886) based on
>> build-id [...]
>
> Thanks for giving this a try. Rather than put it into the
> systemtap_session struct, how about emitting it into the _stp_module[]
> data via translate.cxx? (runtime/sym.h would need a few more fields.)
> That should also immediately apply to user-space modules.
At some point we'll need to add the buildid to the hash we use to lookup
cached .c/.ko files. This way if we compile a script against user
program "foo", then if "foo" gets recompiled, the hash will get
automatically changed, which means we won't reused the cached module.
We'll need the buildid of the kernel, any modules used, and any
user-space programs/libraries used. It would be great if we grab the
buildid once for everything needed instead of twice.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
More information about the Systemtap
mailing list