From: Hollis Blanchard Date: Fri, 04 Apr 2008 13:46:21 +0000 Subject: Re: [kvm-ppc-devel] Oprofile kvmppc - mini howto and restrictions Message-Id: <200804040846.21697.hollisb@us.ibm.com> List-Id: References: <47F60A95.4030401@linux.vnet.ibm.com> In-Reply-To: <47F60A95.4030401@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org On Friday 04 April 2008 06:01:41 Christian Ehrhardt wrote: > Note the bad thing, atm oprofile on ppc440 seems not to have hw perf > counters available. Therefore it is covered with the fallback > timer-interrupt. But this has drawbacks: =>from the oprfile info page: > "In 2.6 kernels on CPUs without OProfile support for the hardware > performance counters, the driver falls back to using the timer interrupt > for profiling. Like the RTC mode in 2.4 kernels, this is not able to > profile code that has interrupts disabled. Note that there are no > configuration parameters for setting this, unlike the RTC and hardware > performance counter setup." > > So oprofile works but without real cpu perf counters it will be nearly > useless, because we have interrupts disabled in most code we want to > profile. I need to look out for some beta support (or write my own) for > ppc440 cpu perf counters to enable that for us :( I don't see any performance counters in the 440 user manuals. I think the KVM code run with interrupts disabled is mostly the interrupt handlers and context switching code. It would be nice to profile that, but we have other code too that would be good to analyze. By the way, when timer profiling is used on code with disabled interrupts, do all the events seem to occur on the subsequent instruction that re-enables interrupts? -- Hollis Blanchard IBM Linux Technology Center ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ kvm-ppc-devel mailing list kvm-ppc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel