1 From foo@baz Tue Jul 12 05:07:35 PM CEST 2022
2 From: Arnaldo Carvalho de Melo <acme@redhat.com>
3 Date: Sun, 9 May 2021 10:19:37 -0300
4 Subject: tools arch: Update arch/x86/lib/mem{cpy,set}_64.S copies used in 'perf bench mem memcpy'
6 From: Arnaldo Carvalho de Melo <acme@redhat.com>
8 commit 35cb8c713a496e8c114eed5e2a5a30b359876df2 upstream.
10 To bring in the change made in this cset:
12 f94909ceb1ed4bfd ("x86: Prepare asm files for straight-line-speculation")
14 It silences these perf tools build warnings, no change in the tools:
16 Warning: Kernel ABI header at 'tools/arch/x86/lib/memcpy_64.S' differs from latest version at 'arch/x86/lib/memcpy_64.S'
17 diff -u tools/arch/x86/lib/memcpy_64.S arch/x86/lib/memcpy_64.S
18 Warning: Kernel ABI header at 'tools/arch/x86/lib/memset_64.S' differs from latest version at 'arch/x86/lib/memset_64.S'
19 diff -u tools/arch/x86/lib/memset_64.S arch/x86/lib/memset_64.S
21 The code generated was checked before and after using 'objdump -d /tmp/build/perf/bench/mem-memcpy-x86-64-asm.o',
24 Cc: Borislav Petkov <bp@suse.de>
25 Cc: Peter Zijlstra <peterz@infradead.org>
26 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
27 Signed-off-by: Sasha Levin <sashal@kernel.org>
28 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
29 Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
30 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
32 tools/arch/x86/lib/memcpy_64.S | 12 ++++++------
33 tools/arch/x86/lib/memset_64.S | 6 +++---
34 2 files changed, 9 insertions(+), 9 deletions(-)
36 --- a/tools/arch/x86/lib/memcpy_64.S
37 +++ b/tools/arch/x86/lib/memcpy_64.S
38 @@ -39,7 +39,7 @@ SYM_FUNC_START_WEAK(memcpy)
45 SYM_FUNC_END_ALIAS(__memcpy)
47 @@ -53,7 +53,7 @@ SYM_FUNC_START_LOCAL(memcpy_erms)
53 SYM_FUNC_END(memcpy_erms)
55 SYM_FUNC_START_LOCAL(memcpy_orig)
56 @@ -137,7 +137,7 @@ SYM_FUNC_START_LOCAL(memcpy_orig)
58 movq %r10, -2*8(%rdi, %rdx)
59 movq %r11, -1*8(%rdi, %rdx)
65 @@ -149,7 +149,7 @@ SYM_FUNC_START_LOCAL(memcpy_orig)
66 movq -1*8(%rsi, %rdx), %r9
68 movq %r9, -1*8(%rdi, %rdx)
74 @@ -162,7 +162,7 @@ SYM_FUNC_START_LOCAL(memcpy_orig)
75 movl -4(%rsi, %rdx), %r8d
77 movl %r8d, -4(%rdi, %rdx)
83 @@ -180,7 +180,7 @@ SYM_FUNC_START_LOCAL(memcpy_orig)
89 SYM_FUNC_END(memcpy_orig)
92 --- a/tools/arch/x86/lib/memset_64.S
93 +++ b/tools/arch/x86/lib/memset_64.S
94 @@ -40,7 +40,7 @@ SYM_FUNC_START(__memset)
100 SYM_FUNC_END(__memset)
101 SYM_FUNC_END_ALIAS(memset)
102 EXPORT_SYMBOL(memset)
103 @@ -63,7 +63,7 @@ SYM_FUNC_START_LOCAL(memset_erms)
109 SYM_FUNC_END(memset_erms)
111 SYM_FUNC_START_LOCAL(memset_orig)
112 @@ -125,7 +125,7 @@ SYM_FUNC_START_LOCAL(memset_orig)