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 #15 from ocket8888 <ocket8888 at gmail dot com> ---
(In reply to David Smith from comment #14)
> (In reply to ocket8888 from comment #12)
> > (In reply to Frank Ch. Eigler from comment #9)
> > > (In reply to ocket8888 from comment #6)
> > > > Created attachment 10773 [details]
> > > > strace output after attempting to probe kernel
> > > 
> > > I meant
> > > 
> > > % strace stap -p4 -e 'probe kernel.function("sys_open") {}'
> > 
> > I uploaded the new output in 'strace.err' (output was only 62431 lines to
> > stderr, 0 on stdout)
> 
> So, let's see where systemtap looked for the kernel's debug file (which
> should be at /usr/lib/debug/lib/modules/`uname -r`/vmlinux on a RHEL-type
> system):
> 
> ====
> grep ^open strace_err.txt  | fgrep ENOENT | fgrep
> '"/usr/lib/debug/lib/modules/' | fgrep vmlinux
> open("/usr/lib/debug/lib/modules/4.9.70-1.el7.centos.x86_64/vmlinux.debug",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/debug/lib/modules/4.9.70-1.el7.centos.x86_64/vmlinux",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> ====
> 
> So, where is the vmlinux file provided by your kernel-lt-debuginfo package?

```
    $ ls -A /usr/lib/debug/lib/modules/`uname -r` 
    kernel
```

('kernel' is a directory) Also:

```
    $ repoquery -l kernel-lt-debuginfo.x86_64 | grep vmlin
   
/usr/src/debug/kernel-lt-4.9.70/linux-4.9.70-1.el7.centos.x86_64/tools/perf/tests/vmlinux-kallsyms.c
```

So it doesn't appear to be providing one. Just to be safe, I ran:

```
    $ find / -name '*vmlinux*'
    /usr/src/kernels/4.9.70-1.el7.centos.x86_64/scripts/gdb/vmlinux-gdb.pyc
    /usr/src/kernels/4.9.70-1.el7.centos.x86_64/scripts/gdb/vmlinux-gdb.py
    /usr/src/kernels/4.9.70-1.el7.centos.x86_64/scripts/gdb/vmlinux-gdb.pyo
    /usr/src/kernels/4.9.70-1.el7.centos.x86_64/scripts/link-vmlinux.sh
    /usr/src/kernels/4.9.70-1.el7.centos.x86_64/scripts/extract-vmlinux
   
/usr/src/kernels/4.9.70-1.el7.centos.x86_64/include/asm-generic/vmlinux.lds.h
```

and I'm not totally sure, but I don't think any of that helps... Could there be
something wrong with my spec file? Cuz it is generating the debuginfo package,
and I do have it installed, so the only thing I can think of is something weird
happening to its contents (disclaimer: I didn't write the spec file, a coworker
did).

-- 
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]