From: Will Schmidt Date: Wed, 25 Nov 2009 06:12:09 +0000 (+0000) Subject: powerpc/pseries: Hypervisor call tracepoints hcall_stats touchup X-Git-Tag: upstream/snapshot3+hdmi~15574^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25ef231de2678690198d95dca949c3caa67a76de;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git powerpc/pseries: Hypervisor call tracepoints hcall_stats touchup The tb_total and purr_total values reported via the hcall_stats code should be cumulative, rather than being replaced by the latest delta tb or purr value. Tested-by: Will Schmidt Signed-off-by: Will Schmidt Acked-by: Anton Blanchard Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/platforms/pseries/hvCall_inst.c b/arch/powerpc/platforms/pseries/hvCall_inst.c index 2f58c71..1fefae7 100644 --- a/arch/powerpc/platforms/pseries/hvCall_inst.c +++ b/arch/powerpc/platforms/pseries/hvCall_inst.c @@ -124,8 +124,8 @@ static void probe_hcall_exit(unsigned long opcode, unsigned long retval, h = &__get_cpu_var(hcall_stats)[opcode / 4]; h->num_calls++; - h->tb_total = mftb() - h->tb_start; - h->purr_total = mfspr(SPRN_PURR) - h->purr_start; + h->tb_total += mftb() - h->tb_start; + h->purr_total += mfspr(SPRN_PURR) - h->purr_start; put_cpu_var(hcall_stats); }