From: William C. <wc...@re...> - 2006-12-12 20:46:17
|
david hughes wrote: > I'm using oprofile with FC4 (2.6.17-1.2141FC4smp) and having trouble > profiling kernel modules. > > It seems like all the samples within the module are assigned to just > one function (usually the module initialization function), even when I > use --image-path to point oprofile to the module directory (if I don't > do this I get (no symbols) which makes sense). vmlinux symbols > samples are reported and appear to be correct. > > This happens with my own kernel module, as well as with others like > the standard e1000 module. > > I get the same behavior with the oprofile that comes as part of the > FC4 distribution (0.8) and with version 0.9.2 compiled from source. > > There must be something I'm doing wrong. Any pointers would be much > appreciated. > > Thanks, David This sounds like a problem reported earlier by John Levon. There is a bugzilla entry for it, "The kernel modules have bogus addresses for text (code) section". https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218563 -Will |