From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH] Enhance perf to collect KVM guest os statistics from host side Date: Tue, 23 Mar 2010 14:49:01 +0100 Message-ID: <878w9jdu7m.fsf@basil.nowhere.org> References: <1268717232.2813.36.camel@localhost> <1268969929.2813.184.camel@localhost> <20100319082122.GE12576@elte.hu> <20100319172903.GI13108@8bytes.org> <20100321184300.GB25922@elte.hu> <20100322101451.GK13108@8bytes.org> <20100322105927.GB3483@elte.hu> <20100322114744.GC1940@8bytes.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Joerg Roedel , Ingo Molnar , "Zhang, Yanmin" , Peter Zijlstra , Avi Kivity , Sheng Yang , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Marcelo Tosatti , Jes Sorensen , Gleb Natapov , Zachary Amsden , zhiteng.huang@intel.com, Fr??d??ric Weisbecker , Arnaldo Carvalho de Melo To: Soeren Sandmann Return-path: Received: from one.firstfloor.org ([213.235.205.2]:34164 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753418Ab0CWNtG (ORCPT ); Tue, 23 Mar 2010 09:49:06 -0400 In-Reply-To: (Soeren Sandmann's message of "23 Mar 2010 14:18:29 +0100") Sender: kvm-owner@vger.kernel.org List-ID: Soeren Sandmann writes: > > To fix that problem, it seems like we need some way to have python > export what is going on. Maybe the same mechanism could be used to > both access what is going on in qemu and python. oprofile already has an interface to let JITs export information about the JITed code. C Python is not a JIT, but presumably one of the python JITs could do it. http://oprofile.sourceforge.net/doc/devel/index.html I know it's not envogue anymore and you won't be a approved cool kid if you do, but you could just use oprofile? Ok presumably one would need to do a python interface for this first. I believe it's currently only implemented for Java and Mono. I presume it might work today with IronPython on Mono. IMHO it doesn't make sense to invent another interface for this, although I'm sure someone will propose just that. -Andi -- ak@linux.intel.com -- Speaking for myself only.