From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118257 invoked by alias); 2 Feb 2018 17:21:04 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 118169 invoked by uid 48); 2 Feb 2018 17:20:57 -0000 From: "ocket8888 at gmail dot com" To: systemtap@sourceware.org Subject: [Bug kprobes/22772] missing kernel/module debuginfo for custom lt kernel Date: Fri, 02 Feb 2018 17:21:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: kprobes X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ocket8888 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q1/txt/msg00034.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D22772 --- Comment #15 from ocket8888 --- (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 > > >=20 > > > I meant > > >=20 > > > % strace stap -p4 -e 'probe kernel.function("sys_open") {}' > >=20 > > I uploaded the new output in 'strace.err' (output was only 62431 lines = to > > stderr, 0 on stdout) >=20 > 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): >=20 > =3D=3D=3D=3D > 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) =3D -1 ENOENT (No such file or directory) > open("/usr/lib/debug/lib/modules/4.9.70-1.el7.centos.x86_64/vmlinux", > O_RDONLY) =3D -1 ENOENT (No such file or directory) > =3D=3D=3D=3D >=20 > So, where is the vmlinux file provided by your kernel-lt-debuginfo packag= e? ``` $ ls -A /usr/lib/debug/lib/modules/`uname -r`=20 kernel ``` ('kernel' is a directory) Also: ``` $ repoquery -l kernel-lt-debuginfo.x86_64 | grep vmlin =20=20=20 /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 =20=20=20 /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 ther= e be something wrong with my spec file? Cuz it is generating the debuginfo packa= ge, and I do have it installed, so the only thing I can think of is something w= eird happening to its contents (disclaimer: I didn't write the spec file, a cowo= rker did). --=20 You are receiving this mail because: You are the assignee for the bug.