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]

[Bug kprobes/22772] missing kernel/module debuginfo for custom lt kernel


https://sourceware.org/bugzilla/show_bug.cgi?id=22772

--- Comment #23 from David Smith <dsmith at redhat dot com> ---
(In reply to ocket8888 from comment #22)
> (In reply to David Smith from comment #19)
> > (In reply to ocket8888 from comment #18)
> > > Created attachment 10776 [details]
> > > specfile used to build all kernel packages
> > 
> > A Fedora/RHEL kernel specfile is typically the most complicated spec file in
> > the distro (or at least in the top 10). Since the kernel isn't a typical ELF
> > executable, lots of semi-tricky things are done.
> > 
> > What would be more useful than the full specfile itself would be a diff
> > between your specfile and the specfile you started with. If you just added a
> > custom kernel patch for example or use a custom config file, that shouldn't
> > effect the debuginfo generation.
> > 
> > Another thing to try. If you have access to your kernel's rpm build tree,
> > you could look for a vmlinux or vmlinux.debug file and see if one exists
> > that didn't get packaged.
> 
> Sorry I took so long to respond; I work for Comcast and the Super Bowl is a
> very busy time here. I asked the guy who built the kernel what specs he
> modified, and he directed me to the "kernel-lt-4.4" and "kernel-ml-4.10"
> specfiles. He says the 4.9-lt (the one I'm having issues with) is a
> combination of the two, so I uploaded a diff with each of them. I'm not
> totally sure how helpful that is, so if you want a diff with a specific,
> standard kernel just let me know.

I took a look at where you got your 'kernel-lt' from:
<http://elrepo.org/tiki/kernel-lt>

I didn't realize kernel-lt wasn't from CentOS. Looking at
<http://elrepo.org/linux/kernel/el7/x86_64/RPMS/>, I see that they don't
produce debuginfo RPMs. They have an open bug to do so, but I don't see any
real activity on that bug: <http://elrepo.org/bugs/view.php?id=684>

So, since the spec file you started with didn't produce good debuginfo RPMs, it
isn't surprising that your modified kernel-lt spec file doesn't produce good
debuginfo RPMs.

So, to fix this, you are going to have to dig into the CentOS kernel specfile:

<https://git.centos.org/blob/rpms!kernel.git/6824b576c2a6102b57d66a9b9db39e6a11b9921d/SPECS!kernel.spec>

Look for the '%if %{with_debuginfo}' sections and copy them into your spec
file. When you are done, you might even submit those changes back to
elrepo.org.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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