This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]PR 4886: validate debuginfo based on build-id


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]