Collecting hypervisor call stats

Arnd Bergmann arnd.bergmann at de.ibm.com
Fri Jun 2 04:14:20 EST 2006


On Thursday 01 June 2006 07:26, Benjamin Herrenschmidt wrote:
> 
> > We need to get a timestamp before and after the call.  mftb should do
> > the trick.  Also, I'd prefer to have the code that stuffs the values
> > into the array be C.  So, the decision is to have the assembly code
> > call out to the C routine -OR- create wrappers for the assembly routines.
> > I much prefer C wrappers to touching the assembly.
> 
> Argh... yet another use of mftb for which I'll need a cell specific
> workaround 

I guess for statistics, we should rather avoid that overhead (and
document the fact that we did on purpose).

How fast is mftb really? Would that be significant compared to the
time spent in a fast hcall?

	Arnd <><



More information about the Linuxppc-dev mailing list