aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/lib/tracememcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/lib/tracememcpy.c')
-rw-r--r--arch/arm64/lib/tracememcpy.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm64/lib/tracememcpy.c b/arch/arm64/lib/tracememcpy.c
new file mode 100644
index 00000000000..0a951c4d9d9
--- /dev/null
+++ b/arch/arm64/lib/tracememcpy.c
@@ -0,0 +1,12 @@
+
+#define CREATE_TRACE_POINTS
+#include <asm/trace/events/string.h>
+
+extern void *memcpy_asm(void *dest, const void *src, size_t count);
+
+void *memcpy(void *dest, const void *src, size_t count)
+{
+ trace_memcpy(dest, src, count, __builtin_return_address(0));
+ return memcpy_asm(dest, src, count);
+}
+