perf bench, x86: Add alternatives-asm.h wrapper
Commit-ID: b313207286a78abac19f1dd2721292eae598b0f5 Gitweb: http://git.kernel.org/tip/b313207286a78abac19f1dd2721292eae598b0f5 Author: Ingo Molnar <[email protected]> AuthorDate: Wed, 18 May 2011 21:00:44 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Wed, 18 May 2011 21:00:44 +0200
perf bench, x86: Add alternatives-asm.h wrapper
perf bench needs this to build the kernel's memcpy routine:
In file included from bench/mem-memcpy-x86-64-asm.S:2:0:bench/../../../arch/x86/lib/memcpy_64.S:7:33: fatal error: asm/alternative-asm.h: No such file or directory
Cc Peter Zijlstra <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Steven Rostedt <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- tools/perf/util/include/asm/alternative-asm.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
tools/perf/util/include/asm/alternative-asm.h new file +8 -0
@@ -0,0 +1,8 @@ +#ifndef _PERF_ASM_ALTERNATIVE_ASM_H +#define _PERF_ASM_ALTERNATIVE_ASM_H + +/* Just disable it so we can build arch/x86/lib/memcpy_64.S for perf bench: */ + +#define altinstruction_entry # + +#endif