diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-04-01 17:51:11 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-04-22 11:53:50 +0300 |
commit | 9f2dfd61dd022d4559d42a832fb03e76aad36c5f (patch) | |
tree | 911e5d0f266368063710de91316e4fef732d84c5 /tools/arch/x86/include/asm/orc_types.h | |
parent | dc2745b61907cf6faeb72cc25f2cc4b38d4a3cac (diff) | |
download | linux-9f2dfd61dd022d4559d42a832fb03e76aad36c5f.tar.xz |
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) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20200416115118.867411350@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/arch/x86/include/asm/orc_types.h')
0 files changed, 0 insertions, 0 deletions