mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
This patch ports arch/x86/lib/memcpy_64.S to perf bench mem memcpy for benchmarking memcpy() in userland with tricky and dirty way. util/include/asm/cpufeature.h, util/include/asm/dwarf2.h, and util/include/linux/linkage.h are mostly dummy files with small wrappers, so that we are able to include memcpy_64.S unmodified. Signed-off-by: Hitoshi Mitake <[email protected]> Cc: [email protected] Cc: Miao Xie <[email protected]> Cc: Ma Ling <[email protected]> Cc: Zhao Yakui <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Andi Kleen <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
13 lines
173 B
C
13 lines
173 B
C
|
|
#ifdef ARCH_X86_64
|
|
|
|
#define MEMCPY_FN(fn, name, desc) \
|
|
extern void *fn(void *, const void *, size_t);
|
|
|
|
#include "mem-memcpy-x86-64-asm-def.h"
|
|
|
|
#undef MEMCPY_FN
|
|
|
|
#endif
|
|
|