Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751801AbZIWNuD (ORCPT ); Wed, 23 Sep 2009 09:50:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751634AbZIWNuC (ORCPT ); Wed, 23 Sep 2009 09:50:02 -0400 Received: from mail.gmx.net ([213.165.64.20]:46614 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751620AbZIWNuB (ORCPT ); Wed, 23 Sep 2009 09:50:01 -0400 X-Authenticated: #14349625 X-Provags-ID: V01U2FsdGVkX18NTL0AcXQNgJs51rCpSbVPKWgCP/ykxZpxrk8r6H AzF1YSDZCijzCT Subject: Re: [patch] Re: [perf] Finding uninstalled modules Was Re: mailing list for trace users From: Mike Galbraith To: Avi Kivity Cc: Arnaldo Carvalho de Melo , rostedt@goodmis.org, LKML , Ingo Molnar , Mathieu Desnoyers , Peter Zijlstra , Frederic Weisbecker , Thomas Gleixner , Masami Hiramatsu In-Reply-To: <4ABA1E3B.40800@redhat.com> References: <1253132182.20020.242.camel@gandalf.stny.rr.com> <4AB89520.2050900@redhat.com> <1253618894.13917.18.camel@marge.simson.net> <4AB8B65F.7030602@redhat.com> <1253620041.13917.24.camel@marge.simson.net> <4AB8BA37.4010305@redhat.com> <20090922201746.GH5216@ghostprotocols.net> <4AB9DCC8.5050603@redhat.com> <1253697658.11461.36.camel@marge.simson.net> <4AB9F08E.1020106@redhat.com> <1253705515.7835.41.camel@marge.simson.net> <4ABA1B75.7040900@redhat.com> <4ABA1E3B.40800@redhat.com> Content-Type: text/plain Date: Wed, 23 Sep 2009 15:50:00 +0200 Message-Id: <1253713800.7816.15.camel@marge.simson.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.52 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1982 Lines: 67 On Wed, 2009-09-23 at 16:10 +0300, Avi Kivity wrote: > On 09/23/2009 03:58 PM, Avi Kivity wrote:On 09/23/2009 03:58 PM, Avi > Kivity wrote: > > Not for me. 'perf report', for example, shows > > > > 63.08% qemu-system-x86 > > [kernel] [k] packet_exit > > 4.71% qemu-system-x86 > > [kernel] [k] hpet_next_event > > 4.38% init > > [kernel] [k] > > mwait_idle_with_hints > > > > While 'perf top' still shows vmx_vcpu_run. > > > > strace says: > > getcwd("/home/avi/kvm/linux-2.6"..., 4096) = 24 > ... > [no chdir] > ... > open("kernel/arch/x86/kvm/kvm-intel.ko", O_RDONLY) = -1 ENOENT (No > such file or directory) *blink* > That "kernel/" looks like it was meant for /lib/modules, not a kernel > tree. If I run 'perf report' from /lib/modules/2.6.31 I see vmx_vcpu_run. So I need what's in your modules.dep to figure out where the rest of the path went. /lib/modules/2.6.32-tip-smp/kernel/arch/x86/kvm/kvm-intel.ko static int mod_dso__load_module_paths(struct mod_dso *self) { struct utsname uts; int count = 0, len; char *line = NULL; FILE *file; char *path; size_t n; if (uname(&uts) < 0) goto out_failure; len = strlen("/lib/modules/"); len += strlen(uts.release); len += strlen("/modules.dep"); path = calloc(1, len); if (path == NULL) goto out_failure; strcat(path, "/lib/modules/"); strcat(path, uts.release); strcat(path, "/modules.dep"); file = fopen(path, "r"); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/