summaryrefslogtreecommitdiff
path: root/tools/include/asm/alternative-asm.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-07-11 12:36:41 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-23 08:44:37 +0100
commit7bc0cb4da25ea85a177451339637bfe08580f11d (patch)
tree15f908256889bbb90e61f57384af75b3e202017b /tools/include/asm/alternative-asm.h
parentfefcb294a459a43104993a20b7215cd14793805c (diff)
perf bench: Copy kernel files needed to build mem{cpy,set} x86_64 benchmarks
commit 7d7d1bf1d1dabe435ef50efb051724b8664749cb upstream. We can't access kernel files directly from tools/, so copy the required bits, and make sure that we detect when the original files, in the kernel, gets modified. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-z7e76274ch5j4nugv048qacb@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/include/asm/alternative-asm.h')
-rw-r--r--tools/include/asm/alternative-asm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/include/asm/alternative-asm.h b/tools/include/asm/alternative-asm.h
new file mode 100644
index 000000000000..2a4d1bfa2988
--- /dev/null
+++ b/tools/include/asm/alternative-asm.h
@@ -0,0 +1,9 @@
+#ifndef _TOOLS_ASM_ALTERNATIVE_ASM_H
+#define _TOOLS_ASM_ALTERNATIVE_ASM_H
+
+/* Just disable it so we can build arch/x86/lib/memcpy_64.S for perf bench: */
+
+#define altinstruction_entry #
+#define ALTERNATIVE_2 #
+
+#endif