Searched hist:cc1adb5f32557f10f48e8febbef7278a2db9d593 (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | jump_label.h | diff cc1adb5f32557f10f48e8febbef7278a2db9d593 Thu Jul 03 00:52:03 CDT 2014 Anton Blanchard <anton@samba.org> powerpc/pseries: Use jump labels for hcall tracepoints
hcall tracepoints add quite a few instructions to our hcall path:
plpar_hcall: mr r2,r2 mfcr r0 stw r0,8(r1) b 164 <---- start ld r12,0(r2) std r12,32(r1) cmpdi r12,0 beq 164 <---- end ...
We have an unconditional branch that gets noped out during boot and a load/compare/branch. We also store the tracepoint value to the stack for the hcall_exit path to use.
By using jump labels we can simplify this to just a single nop that gets replaced with a branch when the tracepoint is enabled:
plpar_hcall: mr r2,r2 mfcr r0 stw r0,8(r1) nop <---- ...
If jump labels are not enabled, we fall back to the old method.
Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | hvCall.S | diff cc1adb5f32557f10f48e8febbef7278a2db9d593 Thu Jul 03 00:52:03 CDT 2014 Anton Blanchard <anton@samba.org> powerpc/pseries: Use jump labels for hcall tracepoints
hcall tracepoints add quite a few instructions to our hcall path:
plpar_hcall: mr r2,r2 mfcr r0 stw r0,8(r1) b 164 <---- start ld r12,0(r2) std r12,32(r1) cmpdi r12,0 beq 164 <---- end ...
We have an unconditional branch that gets noped out during boot and a load/compare/branch. We also store the tracepoint value to the stack for the hcall_exit path to use.
By using jump labels we can simplify this to just a single nop that gets replaced with a branch when the tracepoint is enabled:
plpar_hcall: mr r2,r2 mfcr r0 stw r0,8(r1) nop <---- ...
If jump labels are not enabled, we fall back to the old method.
Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
H A D | lpar.c | diff cc1adb5f32557f10f48e8febbef7278a2db9d593 Thu Jul 03 00:52:03 CDT 2014 Anton Blanchard <anton@samba.org> powerpc/pseries: Use jump labels for hcall tracepoints
hcall tracepoints add quite a few instructions to our hcall path:
plpar_hcall: mr r2,r2 mfcr r0 stw r0,8(r1) b 164 <---- start ld r12,0(r2) std r12,32(r1) cmpdi r12,0 beq 164 <---- end ...
We have an unconditional branch that gets noped out during boot and a load/compare/branch. We also store the tracepoint value to the stack for the hcall_exit path to use.
By using jump labels we can simplify this to just a single nop that gets replaced with a branch when the tracepoint is enabled:
plpar_hcall: mr r2,r2 mfcr r0 stw r0,8(r1) nop <---- ...
If jump labels are not enabled, we fall back to the old method.
Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|