[CRIU] [PATCH 6/5] compel: Hide compel_execute_syscall() from uapi
Pavel Emelyanov
xemul at virtuozzo.com
Fri Nov 25 05:45:31 PST 2016
It uses regs caller doesn't always know and is actually a
core routine under the API compel_syscall() one.
Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
compel/include/infect-priv.h | 2 ++
compel/include/uapi/infect.h | 9 +++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/compel/include/infect-priv.h b/compel/include/infect-priv.h
index fde5548..8e7443b 100644
--- a/compel/include/infect-priv.h
+++ b/compel/include/infect-priv.h
@@ -72,4 +72,6 @@ extern int sigreturn_prep_regs_plain(struct rt_sigframe *sigframe,
user_fpregs_struct_t *fpregs);
extern int sigreturn_prep_fpu_frame_plain(struct rt_sigframe *sigframe,
struct rt_sigframe *rsigframe);
+extern int compel_execute_syscall(struct parasite_ctl *ctl,
+ user_regs_struct_t *regs, const char *code_syscall);
#endif
diff --git a/compel/include/uapi/infect.h b/compel/include/uapi/infect.h
index 142bef6..174c197 100644
--- a/compel/include/uapi/infect.h
+++ b/compel/include/uapi/infect.h
@@ -65,8 +65,13 @@ extern int compel_cure(struct parasite_ctl *ctl);
extern void *compel_parasite_args_p(struct parasite_ctl *ctl);
extern void *compel_parasite_args_s(struct parasite_ctl *ctl, int args_size);
-extern int compel_execute_syscall(struct parasite_ctl *ctl,
- user_regs_struct_t *regs, const char *code_syscall);
+extern int compel_syscall(struct parasite_ctl *ctl, int nr, unsigned long *ret,
+ unsigned long arg1,
+ unsigned long arg2,
+ unsigned long arg3,
+ unsigned long arg4,
+ unsigned long arg5,
+ unsigned long arg6);
extern int compel_run_in_thread(struct parasite_thread_ctl *tctl, unsigned int cmd);
/*
--
2.5.0
More information about the CRIU
mailing list