Date: Fri, 25 Mar 2016 22:28:47 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 163602] pmcstat(8) doesn't search symbols under /boot/modules Message-ID: <bug-163602-8-KENlrgoRPE@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-163602-8@https.bugs.freebsd.org/bugzilla/> References: <bug-163602-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D163602 --- Comment #4 from John Baldwin <jhb@FreeBSD.org> --- To be clear, prior to r282643, pmcstat always used /boot/kernel/kernel no matter what you booted (/boot/foo/kernel, or /boot/kernel/kernel.gz). OTOH, it's not clear to me why pmcstat needs to do its own manual search in the module path to begin with. The kernel stores the full path to each module (it's output if you use kldstat -v). That is what kgdb uses to find module symbols rather than trying to guess by doing its own lookup. It would be very trivial to fix pmc to export the full path instead. Just change the hwpmc hook in sys/kern/kern_linker.c to use 'lf->pathname' inste= ad of 'lf->filename'. pmcstat could then use that path if it exists (or perha= ps accept a '--sysroot' type option similar to solib-prefix in gdb for use when doing offline analysis on another machine) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-163602-8-KENlrgoRPE>