lkml.org 
[lkml]   [2009]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [perf] Finding uninstalled modules Was Re: mailing list for trace users

* Avi Kivity <avi@redhat.com> wrote:

> On 09/22/2009 11:17 PM, Arnaldo Carvalho de Melo wrote:
>>
>>> $ perf annotate -v -v -k ~avi/kvm/linux-2.6/vmlinux -m vmx_vcpu_run |
>>>
>> Here is the problem, he is passing a vmlinux, that way we don't parse
>> /proc/kallsyms, so no module symbols, he uses -m to load the modules
>> symbols but mod_dso__load_module_paths only looks at /lib/modules/, i.e.
>> installed modules.
>>
>> I guess Avi hasn't installed modules, right? So the right fix for
>> this case is to figure out where modules are from the path given to
>> -k, i.e. we first use ~avi/kvm/linux-2.6/ as the modules path prefix
>> and then fallback to /lib/modules if we can't find modules there,
>> right?
>
> Modules were installed (I always load them with modprobe). It's
> possible that the installed modules were a later version than the
> loaded modules, but Mike's reply leads me to believe there was a real
> bug there.

Yes, definitely - 'perf annotate' not giving you what you expected is a
bug by definition - regardless of how you build your kernel, how you
loaded your modules and how the symbols and tables are distributed
across the system.

Ingo


\
 
 \ /
  Last update: 2009-09-23 11:19    [W:1.828 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site