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 <anton@samba.org> Signed-off-by:
Paul Mackerras <paulus@samba.org>
Showing
- arch/powerpc/Kconfig.debug 1 addition, 1 deletionarch/powerpc/Kconfig.debug
- arch/powerpc/include/asm/hvcall.h 2 additions, 0 deletionsarch/powerpc/include/asm/hvcall.h
- arch/powerpc/include/asm/trace.h 45 additions, 0 deletionsarch/powerpc/include/asm/trace.h
- arch/powerpc/platforms/pseries/hvCall.S 58 additions, 43 deletionsarch/powerpc/platforms/pseries/hvCall.S
- arch/powerpc/platforms/pseries/hvCall_inst.c 37 additions, 0 deletionsarch/powerpc/platforms/pseries/hvCall_inst.c
- arch/powerpc/platforms/pseries/lpar.c 32 additions, 0 deletionsarch/powerpc/platforms/pseries/lpar.c
Loading
Please register or sign in to comment