[CRIU] [PATCH 4/4] Add initial AArch64 VDSO definitions
Christopher Covington
cov at codeaurora.org
Wed Apr 9 08:13:13 PDT 2014
Based on the x86_64 definitions, filtered to just those functions
provided by the 3.13 arm64 Linux kernel port.
Signed-off-by: Christopher Covington <cov at codeaurora.org>
---
arch/aarch64/include/asm/vdso.h | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/arch/aarch64/include/asm/vdso.h b/arch/aarch64/include/asm/vdso.h
index a702471..83d4d1d 100644
--- a/arch/aarch64/include/asm/vdso.h
+++ b/arch/aarch64/include/asm/vdso.h
@@ -5,6 +5,35 @@
#include "protobuf/vma.pb-c.h"
+
+/*
+ * This is a minimal amount of symbols
+ * we should support at the moment.
+ */
+enum {
+ VDSO_SYMBOL_CLOCK_GETTIME,
+ VDSO_SYMBOL_GETTIMEOFDAY,
+
+ VDSO_SYMBOL_MAX
+};
+
+#define VDSO_SYMBOL_CLOCK_GETTIME_NAME "__kernel_clock_gettime"
+#define VDSO_SYMBOL_GETTIMEOFDAY_NAME "__kernel_gettimeofday"
+
+
+#define DECLARE_VDSO(ident_name, symtab_name) \
+ \
+char ident_name[] = { \
+ 0x7f, 0x45, 0x4c, 0x46, 0x02, 0x01, 0x01, 0x00, \
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
+}; \
+ \
+char *symtab_name[VDSO_SYMBOL_MAX] = { \
+ [VDSO_SYMBOL_CLOCK_GETTIME] = VDSO_SYMBOL_CLOCK_GETTIME_NAME, \
+ [VDSO_SYMBOL_GETTIMEOFDAY] = VDSO_SYMBOL_GETTIMEOFDAY_NAME, \
+};
+
+
struct vdso_symtable;
struct parasite_ctl;
struct vm_area_list;
--
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by the Linux Foundation.
More information about the CRIU
mailing list