From: Anton Blanchard Date: Mon, 26 Oct 2009 18:50:29 +0000 (+0000) Subject: powerpc: tracing: Add hypervisor call tracepoints X-Git-Tag: v2.6.33-rc1~399^2~165^2~17^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8cd093a6e9f96ea6b871576fd4e46d7c818bb89;p=pandora-kernel.git powerpc: tracing: Add hypervisor call tracepoints Add hcall_entry and hcall_exit tracepoints. This replaces the inline assembly HCALL_STATS code and converts it to use the new tracepoints. To keep the disabled case as quick as possible, we embed a status word in the TOC so we can get at it with a single load. By doing so we keep the overhead at a minimum. Time taken for a null hcall: No tracepoint code: 135.79 cycles Disabled tracepoints: 137.95 cycles For reference, before this patch enabling HCALL_STATS resulted in a null hcall of 201.44 cycles! Signed-off-by: Anton Blanchard Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed