diff options
author | Peter Zijlstra <[email protected]> | 2020-04-01 16:51:11 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2020-04-22 10:53:50 +0200 |
commit | 9f2dfd61dd022d4559d42a832fb03e76aad36c5f (patch) | |
tree | 911e5d0f266368063710de91316e4fef732d84c5 /fs/binfmt_script.c | |
parent | dc2745b61907cf6faeb72cc25f2cc4b38d4a3cac (diff) |
x86,ftrace: Shrink ftrace_regs_caller() by one byte
'Optimize' ftrace_regs_caller. Instead of comparing against an
immediate, the more natural way to test for zero on x86 is: 'test
%r,%r'.
48 83 f8 00 cmp $0x0,%rax
74 49 je 226 <ftrace_regs_call+0xa3>
48 85 c0 test %rax,%rax
74 49 je 225 <ftrace_regs_call+0xa2>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Miroslav Benes <[email protected]>
Reviewed-by: Alexandre Chartre <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/binfmt_script.c')
0 files changed, 0 insertions, 0 deletions