[CRIU] [PATCH 35/78] infect: Introduce arch part

Cyrill Gorcunov gorcunov at openvz.org
Mon Nov 7 08:36:20 PST 2016


From: Pavel Emelyanov <xemul at virtuozzo.com>

Same split as was previously done with parasite-syscall.c now
with arch/*/crtools.c files.

Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
 criu/arch/aarch64/Makefile | 1 +
 criu/arch/aarch64/infect.c | 5 +++++
 criu/arch/arm/Makefile     | 1 +
 criu/arch/arm/infect.c     | 5 +++++
 criu/arch/ppc64/Makefile   | 1 +
 criu/arch/ppc64/infect.c   | 5 +++++
 criu/arch/x86/Makefile     | 1 +
 criu/arch/x86/infect.c     | 5 +++++
 8 files changed, 24 insertions(+)
 create mode 100644 criu/arch/aarch64/infect.c
 create mode 100644 criu/arch/arm/infect.c
 create mode 100644 criu/arch/ppc64/infect.c
 create mode 100644 criu/arch/x86/infect.c

diff --git a/criu/arch/aarch64/Makefile b/criu/arch/aarch64/Makefile
index e841049ff76f..3b2643442153 100644
--- a/criu/arch/aarch64/Makefile
+++ b/criu/arch/aarch64/Makefile
@@ -9,3 +9,4 @@ ccflags-y		+= -iquote $(SRC_DIR)/compel/include
 obj-y			+= cpu.o
 obj-y			+= crtools.o
 obj-y			+= sigframe.o
+obj-y			+= infect.o
diff --git a/criu/arch/aarch64/infect.c b/criu/arch/aarch64/infect.c
new file mode 100644
index 000000000000..c1c1174aaffa
--- /dev/null
+++ b/criu/arch/aarch64/infect.c
@@ -0,0 +1,5 @@
+#include <sys/types.h>
+#include "asm/types.h"
+#include "parasite-syscall.h"
+#include "infect.h"
+#include "infect-priv.h"
diff --git a/criu/arch/arm/Makefile b/criu/arch/arm/Makefile
index 697062d0ab32..bf26df0aad2b 100644
--- a/criu/arch/arm/Makefile
+++ b/criu/arch/arm/Makefile
@@ -9,3 +9,4 @@ ccflags-y		+= -iquote $(SRC_DIR)/compel/include
 obj-y			+= cpu.o
 obj-y			+= crtools.o
 obj-y			+= sigframe.o
+obj-y			+= infect.o
diff --git a/criu/arch/arm/infect.c b/criu/arch/arm/infect.c
new file mode 100644
index 000000000000..c1c1174aaffa
--- /dev/null
+++ b/criu/arch/arm/infect.c
@@ -0,0 +1,5 @@
+#include <sys/types.h>
+#include "asm/types.h"
+#include "parasite-syscall.h"
+#include "infect.h"
+#include "infect-priv.h"
diff --git a/criu/arch/ppc64/Makefile b/criu/arch/ppc64/Makefile
index fda94369dfdb..abbb7ce6691e 100644
--- a/criu/arch/ppc64/Makefile
+++ b/criu/arch/ppc64/Makefile
@@ -8,3 +8,4 @@ ccflags-y		+= -iquote $(SRC_DIR)/compel/include
 obj-y			+= cpu.o
 obj-y			+= crtools.o
 obj-y			+= sigframe.o
+obj-y			+= infect.o
diff --git a/criu/arch/ppc64/infect.c b/criu/arch/ppc64/infect.c
new file mode 100644
index 000000000000..c1c1174aaffa
--- /dev/null
+++ b/criu/arch/ppc64/infect.c
@@ -0,0 +1,5 @@
+#include <sys/types.h>
+#include "asm/types.h"
+#include "parasite-syscall.h"
+#include "infect.h"
+#include "infect-priv.h"
diff --git a/criu/arch/x86/Makefile b/criu/arch/x86/Makefile
index 04a0cb3d0aa9..bffa3f52a800 100644
--- a/criu/arch/x86/Makefile
+++ b/criu/arch/x86/Makefile
@@ -12,6 +12,7 @@ asflags-y		+= -iquote $(obj)/include
 obj-y			+= cpu.o
 obj-y			+= crtools.o
 obj-y			+= sigframe.o
+obj-y			+= infect.o
 ifeq ($(CONFIG_COMPAT),y)
         obj-y		+= sigaction_compat.o
         obj-y		+= call32.o
diff --git a/criu/arch/x86/infect.c b/criu/arch/x86/infect.c
new file mode 100644
index 000000000000..c1c1174aaffa
--- /dev/null
+++ b/criu/arch/x86/infect.c
@@ -0,0 +1,5 @@
+#include <sys/types.h>
+#include "asm/types.h"
+#include "parasite-syscall.h"
+#include "infect.h"
+#include "infect-priv.h"
-- 
2.7.4



More information about the CRIU mailing list