[CRIU] [PATCHv2 02/12] vdso/arm: Add vdso symbols from kernel

Dmitry Safonov dima at arista.com
Wed May 29 19:15:05 MSK 2019


Signed-off-by: Dmitry Safonov <dima at arista.com>
---
 criu/arch/arm/include/asm/vdso.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 criu/arch/arm/include/asm/vdso.h

diff --git a/criu/arch/arm/include/asm/vdso.h b/criu/arch/arm/include/asm/vdso.h
new file mode 100644
index 000000000000..cf9d500bec75
--- /dev/null
+++ b/criu/arch/arm/include/asm/vdso.h
@@ -0,0 +1,17 @@
+#ifndef __CR_ASM_VDSO_H__
+#define __CR_ASM_VDSO_H__
+
+#include "asm/int.h"
+#include "asm-generic/vdso.h"
+
+/* This definition is used in pie/util-vdso.c to initialize the vdso symbol
+ * name string table 'vdso_symbols'
+ *
+ * Poke from kernel file arch/arm/vdso/vdso.lds.S
+ */
+#define VDSO_SYMBOL_MAX		2
+#define ARCH_VDSO_SYMBOLS			\
+	"__vdso_clock_gettime",		\
+	"__vdso_gettimeofday"
+
+#endif /* __CR_ASM_VDSO_H__ */
-- 
2.21.0



More information about the CRIU mailing list