Skip to contentSkip to conversation

tools arch: Update arch/x86/lib/memcpy_64.S copy used in 'perf bench mem memcpy'

tip:perf/urgent tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Aug 23, 2018

lore
Share & tools
lore
#0 lore raw
Commit-ID:  78303650e4cd873c6c4276c6fe3e768ff0b46d22
Gitweb:     https://git.kernel.org/tip/78303650e4cd873c6c4276c6fe3e768ff0b46d22
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 20 Aug 2018 10:17:14 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Mon, 20 Aug 2018 10:17:14 -0300

tools arch: Update arch/x86/lib/memcpy_64.S copy used in 'perf bench mem memcpy'

To bring in the change made in this cset:

Fixes a7bea8308933 ("x86/asm/64: Use 32-bit XOR to zero registers")
  CC       /tmp/build/perf/bench/mem-memcpy-x86-64-asm.o
  LD       /tmp/build/perf/bench/perf-in.o
  LD       /tmp/build/perf/perf-in.o
  LINK     /tmp/build/perf/perf

Silencing this perf build warning:

Warning: Kernel ABI header at 'tools/arch/x86/lib/memcpy_64.S' differs from latest version at 'arch/x86/lib/memcpy_64.S' diff -u tools/arch/x86/lib/memcpy_64.S arch/x86/lib/memcpy_64.S

---
 tools/arch/x86/lib/memcpy_64.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/arch/x86/lib/memcpy_64.S +1 -1
index 298ef1479240..3b24dc05251c 100644
@@ -256,7 +256,7 @@ ENTRY(__memcpy_mcsafe)
 
 	/* Copy successful. Return zero */
 .L_done_memcpy_trap:
-	xorq %rax, %rax
+	xorl %eax, %eax
 	ret
 ENDPROC(__memcpy_mcsafe)
 EXPORT_SYMBOL_GPL(__memcpy_mcsafe)